在我的base.html中,导航栏上的链接因某些原因无效。我已经正确地写了它,但当我将鼠标悬停在链接上时它没有做任何事情。
<ul class="nav navbar-nav navbar-right">
<li class="active" role="presentation" data-aos="fade-down" data-aos-duration="900"><a href="{% url 'register' %}"><strong>Join Us?</strong></a></li>
<li class="active" role="presentation" data-aos="fade-down" data-aos-duration="900"><a href="{% url 'login'%}"><strong>Log In</strong></a></li>
Urls.py
url('^delta/$', aircraft_delta, name='aircraft_delta'),
#aircraft/detail/1
url('^aircraft/detail/(?P<id>\d+)/$', aircraft_detail, name='aircraft_detail'),
#aircraft/
url(r'^aircraft/$', list_aircraft, name='aircraft_home'),
#login/
url(r'^login/', login_view, name="login"),
#logout/
url(r'^logout/', logout_view, name="logout"),
#register/
url(r'^register/', register_view, name="register"),
#upload/aircraft
url(r'^upload/aircraft/$', aircraft_create),
Root urls.py
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^accounts/', include('accounts.urls')),
url(r'^', include('aircraft.urls')),]