fix missing import in url patterns
This commit is contained in:
parent
6e4b52eb7f
commit
ca084825db
|
@ -9,6 +9,7 @@ from allauth.account.views import (
|
||||||
from django.conf.urls import include, url
|
from django.conf.urls import include, url
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.views.generic import TemplateView, RedirectView
|
from django.views.generic import TemplateView, RedirectView
|
||||||
|
from django.core.urlresolvers import reverse_lazy
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(
|
url(
|
||||||
|
@ -16,66 +17,81 @@ urlpatterns = [
|
||||||
TemplateView.as_view(template_name='frontpage.html'),
|
TemplateView.as_view(template_name='frontpage.html'),
|
||||||
name='frontpage'
|
name='frontpage'
|
||||||
),
|
),
|
||||||
|
|
||||||
url(
|
url(
|
||||||
r'info/',
|
r'info/',
|
||||||
TemplateView.as_view(template_name='info.html'),
|
TemplateView.as_view(template_name='info.html'),
|
||||||
name='info'
|
name='info'
|
||||||
),
|
),
|
||||||
|
|
||||||
url(
|
url(
|
||||||
r'contact/',
|
r'contact/',
|
||||||
TemplateView.as_view(template_name='contact.html'),
|
TemplateView.as_view(template_name='contact.html'),
|
||||||
name='contact'
|
name='contact'
|
||||||
),
|
),
|
||||||
|
|
||||||
url(
|
url(
|
||||||
r'conduct/',
|
r'conduct/',
|
||||||
TemplateView.as_view(template_name='coc.html'),
|
TemplateView.as_view(template_name='coc.html'),
|
||||||
name='conduct'
|
name='conduct'
|
||||||
),
|
),
|
||||||
|
|
||||||
url(
|
url(
|
||||||
r'call-for-sponsors/',
|
r'call-for-sponsors/',
|
||||||
TemplateView.as_view(template_name='sponsors.html'),
|
TemplateView.as_view(template_name='sponsors.html'),
|
||||||
name='call-for-sponsors'
|
name='call-for-sponsors'
|
||||||
),
|
),
|
||||||
url(r'^sponsors/$', RedirectView.as_view(url=reverse_lazy('call-for-sponsors'), permanent=True)),
|
url(r'^sponsors/$', RedirectView.as_view(url=reverse_lazy('call-for-sponsors'), permanent=True)),
|
||||||
|
url(r'^sponsor/$', RedirectView.as_view(url=reverse_lazy('call-for-sponsors'), permanent=True)),
|
||||||
|
|
||||||
url(
|
url(
|
||||||
r'call-for-speakers/',
|
r'call-for-speakers/',
|
||||||
TemplateView.as_view(template_name='speakers.html'),
|
TemplateView.as_view(template_name='speakers.html'),
|
||||||
name='call-for-speakers'
|
name='call-for-speakers'
|
||||||
),
|
),
|
||||||
url(r'^speakers/$', RedirectView.as_view(url=reverse_lazy('call-for-speakers'), permanent=True)),
|
url(r'^speakers/$', RedirectView.as_view(url=reverse_lazy('call-for-speakers'), permanent=True)),
|
||||||
|
url(r'^speaker/$', RedirectView.as_view(url=reverse_lazy('call-for-speakers'), permanent=True)),
|
||||||
|
|
||||||
url(
|
url(
|
||||||
r'^login/$',
|
r'^login/$',
|
||||||
LoginView.as_view(),
|
LoginView.as_view(),
|
||||||
name='account_login',
|
name='account_login',
|
||||||
),
|
),
|
||||||
|
|
||||||
url(
|
url(
|
||||||
r'^logout/$',
|
r'^logout/$',
|
||||||
LogoutView.as_view(),
|
LogoutView.as_view(),
|
||||||
name='account_logout',
|
name='account_logout',
|
||||||
),
|
),
|
||||||
|
|
||||||
url(
|
url(
|
||||||
r'privacy-policy/$',
|
r'privacy-policy/$',
|
||||||
TemplateView.as_view(template_name='legal/privacy_policy.html'),
|
TemplateView.as_view(template_name='legal/privacy_policy.html'),
|
||||||
name='privacy-policy'
|
name='privacy-policy'
|
||||||
),
|
),
|
||||||
|
|
||||||
url(
|
url(
|
||||||
r'general-terms-and-conditions/$',
|
r'general-terms-and-conditions/$',
|
||||||
TemplateView.as_view(template_name='legal/general_terms_and_conditions.html'),
|
TemplateView.as_view(template_name='legal/general_terms_and_conditions.html'),
|
||||||
name='general-terms'
|
name='general-terms'
|
||||||
),
|
),
|
||||||
|
|
||||||
url(
|
url(
|
||||||
r'^profile/',
|
r'^profile/',
|
||||||
include('profiles.urls', namespace='profiles')
|
include('profiles.urls', namespace='profiles')
|
||||||
),
|
),
|
||||||
|
|
||||||
url(
|
url(
|
||||||
r'^shop/',
|
r'^shop/',
|
||||||
include('shop.urls', namespace='shop')
|
include('shop.urls', namespace='shop')
|
||||||
),
|
),
|
||||||
|
|
||||||
url(
|
url(
|
||||||
r'^news/',
|
r'^news/',
|
||||||
include('news.urls', namespace='news')
|
include('news.urls', namespace='news')
|
||||||
),
|
),
|
||||||
url(r'^accounts/', include('allauth.urls')),
|
|
||||||
url(r'^admin/', include(admin.site.urls)),
|
|
||||||
|
|
||||||
|
url(r'^accounts/', include('allauth.urls')),
|
||||||
|
|
||||||
|
url(r'^admin/', include(admin.site.urls)),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue