From 1e613cfeb08796111848ff69c942a15756958f13 Mon Sep 17 00:00:00 2001 From: nikita Date: Fri, 26 Jan 2018 07:20:25 +0300 Subject: [PATCH] Added main page menu links highlighting --- .gitignore | 2 ++ project/settings.py | 3 +++ project/templates/lilcity/index.html | 10 ++++++---- project/urls.py | 4 ++-- requirements.txt | 3 ++- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 75721265..490a865c 100644 --- a/.gitignore +++ b/.gitignore @@ -106,3 +106,5 @@ venv.bak/ # PyCharm .idea/ + +db.sqlite3 \ No newline at end of file diff --git a/project/settings.py b/project/settings.py index 9ff20aea..10946d9e 100644 --- a/project/settings.py +++ b/project/settings.py @@ -39,6 +39,7 @@ INSTALLED_APPS = [ 'django.contrib.staticfiles', ] + [ 'anymail', + 'active_link', ] + [ 'apps.auth.apps', 'apps.user', @@ -154,3 +155,5 @@ DEFAULT_FROM_EMAIL = "postmaster@mail.9ev.ru" TWILIO_ACCOUNT = 'ACdf4a96b776cc764bc3ec0f0e136ba550' TWILIO_TOKEN = '559a6b1fce121759c9af2dcbb3f755ea' TWILIO_FROM_PHONE = '+37128914409' + +ACTIVE_LINK_STRICT = True \ No newline at end of file diff --git a/project/templates/lilcity/index.html b/project/templates/lilcity/index.html index 98b8cb21..ba56df91 100644 --- a/project/templates/lilcity/index.html +++ b/project/templates/lilcity/index.html @@ -1,4 +1,6 @@ {% load static %} +{% load active_link_tags %} + @@ -48,13 +50,13 @@
-
+