Hugo LEVY-FALK 8 years ago
parent
commit
cb4d469787
  1. 1
      site_tps/urls.py
  2. 2
      templates/nav_bar.html
  3. 8
      vote/templates/vote/home.html
  4. 3
      vote/urls.py

1
site_tps/urls.py

@ -23,4 +23,5 @@ urlpatterns = [
path('', views.home),
path('content/', include('content.urls')),
path('settings/', include('settings.urls')),
path('vote/', include('vote.urls')),
]

2
templates/nav_bar.html

@ -25,7 +25,7 @@
<a href="{% url 'content:category-list' category_id=c.id %}">{{c.name}}
</a></li>
{% endfor %}
<li><a href="">Vote</a></li>
<li><a href="{% url 'vote:home' %}">Vote</a></li>
<li><a href="{% url 'settings:index' %}">Administration</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>

8
vote/templates/vote/home.html

@ -1,2 +1,6 @@
Lol
{% extends 'base.html' %}
{% block content %}
<div class="container">
<h2>Votes disponibles</h2>
</div>
{% endblock %}

3
vote/urls.py

@ -1,6 +1,7 @@
from django.urls import path
from . import views
app_name = 'vote'
urlpatterns = [
path('home', views.home)
path('home', views.home, name='home')
]

Loading…
Cancel
Save