90 lines
2.2 KiB
Python
90 lines
2.2 KiB
Python
from allauth.account.views import (
|
|
SignupView,
|
|
LoginView,
|
|
LogoutView,
|
|
ConfirmEmailView,
|
|
EmailVerificationSentView,
|
|
PasswordResetView
|
|
)
|
|
from django.conf.urls import include, url
|
|
from django.contrib import admin
|
|
from django.views.generic import TemplateView, RedirectView
|
|
from django.core.urlresolvers import reverse_lazy
|
|
from program.views import ICSView
|
|
|
|
urlpatterns = [
|
|
url(
|
|
r'^profile/',
|
|
include('profiles.urls', namespace='profiles')
|
|
),
|
|
url(
|
|
r'^shop/',
|
|
include('shop.urls', namespace='shop')
|
|
),
|
|
url(
|
|
r'^news/',
|
|
include('news.urls', namespace='news')
|
|
),
|
|
url(
|
|
r'^villages/',
|
|
include('villages.urls', namespace='villages')
|
|
),
|
|
url(
|
|
r'^schedule/',
|
|
include('program.urls', namespace='schedule')
|
|
),
|
|
url(
|
|
r'^$',
|
|
TemplateView.as_view(template_name='frontpage.html'),
|
|
name='frontpage'
|
|
),
|
|
url(
|
|
r'^info/',
|
|
TemplateView.as_view(template_name='info.html'),
|
|
name='info'
|
|
),
|
|
url(
|
|
r'^contact/',
|
|
TemplateView.as_view(template_name='contact.html'),
|
|
name='contact'
|
|
),
|
|
url(
|
|
r'^conduct/',
|
|
TemplateView.as_view(template_name='coc.html'),
|
|
name='conduct'
|
|
),
|
|
url(
|
|
r'^sponsors/',
|
|
TemplateView.as_view(template_name='sponsors.html'),
|
|
name='call-for-sponsors'
|
|
),
|
|
url(
|
|
r'^speakers/',
|
|
TemplateView.as_view(template_name='speakers.html'),
|
|
name='call-for-speakers'
|
|
),
|
|
url(
|
|
r'^login/$',
|
|
LoginView.as_view(),
|
|
name='account_login',
|
|
),
|
|
url(
|
|
r'^logout/$',
|
|
LogoutView.as_view(),
|
|
name='account_logout',
|
|
),
|
|
url(
|
|
r'^privacy-policy/$',
|
|
TemplateView.as_view(template_name='legal/privacy_policy.html'),
|
|
name='privacy-policy'
|
|
),
|
|
url(
|
|
r'^general-terms-and-conditions/$',
|
|
TemplateView.as_view(template_name='legal/general_terms_and_conditions.html'),
|
|
name='general-terms'
|
|
),
|
|
url(r'^accounts/', include('allauth.urls')),
|
|
url(r'^admin/', include(admin.site.urls)),
|
|
url(r'^calendar/', ICSView.as_view()),
|
|
]
|