From ed56def4ea6fd91aca9b2d81d3fb1c947ce7b948 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 2 Mar 2019 15:36:52 +0100 Subject: [PATCH] Add navbar --- friends_map/urls.py | 1 + map/templates/map/base.html | 2 +- map/templates/map/navbar.html | 37 +++++++++++++++++++++++++++++++++++ map/urls.py | 2 +- 4 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 map/templates/map/navbar.html diff --git a/friends_map/urls.py b/friends_map/urls.py index 4ba1503..572fe37 100644 --- a/friends_map/urls.py +++ b/friends_map/urls.py @@ -18,5 +18,6 @@ from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), + path('accounts/', include('django.contrib.auth.urls')), path('', include('map.urls')), ] diff --git a/map/templates/map/base.html b/map/templates/map/base.html index 81e58da..6623205 100644 --- a/map/templates/map/base.html +++ b/map/templates/map/base.html @@ -22,7 +22,7 @@ {{ app.site.name }} · {% block title %}Home{% endblock %} -{#{% include 'map/navbar.html' %}#} +{% include 'map/navbar.html' %}
{% for message in messages %} diff --git a/map/templates/map/navbar.html b/map/templates/map/navbar.html new file mode 100644 index 0000000..c605dc1 --- /dev/null +++ b/map/templates/map/navbar.html @@ -0,0 +1,37 @@ + diff --git a/map/urls.py b/map/urls.py index da3fc9a..8cf724b 100644 --- a/map/urls.py +++ b/map/urls.py @@ -2,5 +2,5 @@ from django.urls import path from map import views urlpatterns = [ - path('map/', views.MapView.as_view()), + path('', views.MapView.as_view(), name='map'), ]