bornhack-website/bornhack/urls.py

90 lines
2.2 KiB
Python
Raw Normal View History

from allauth.account.views import (
SignupView,
LoginView,
LogoutView,
ConfirmEmailView,
EmailVerificationSentView,
PasswordResetView
)
2015-10-03 01:07:05 +00:00
from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic import TemplateView, RedirectView
2016-06-06 19:47:37 +00:00
from django.core.urlresolvers import reverse_lazy
2016-08-30 11:21:44 +00:00
from program.views import ICSView
2015-10-03 01:07:05 +00:00
urlpatterns = [
2016-08-08 18:05:21 +00:00
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(
2016-02-21 01:04:51 +00:00
r'^$',
TemplateView.as_view(template_name='frontpage.html'),
name='frontpage'
),
2016-02-21 01:04:51 +00:00
url(
2016-08-08 18:07:28 +00:00
r'^info/',
TemplateView.as_view(template_name='info.html'),
name='info'
2016-02-21 01:04:51 +00:00
),
2016-05-19 09:19:51 +00:00
url(
2016-08-08 18:07:28 +00:00
r'^contact/',
2016-05-19 09:19:51 +00:00
TemplateView.as_view(template_name='contact.html'),
name='contact'
),
2016-06-06 15:33:25 +00:00
url(
2016-08-08 18:07:28 +00:00
r'^conduct/',
2016-06-06 15:33:25 +00:00
TemplateView.as_view(template_name='coc.html'),
name='conduct'
),
url(
2016-08-08 18:07:28 +00:00
r'^sponsors/',
TemplateView.as_view(template_name='sponsors.html'),
name='call-for-sponsors'
),
url(
2016-08-08 18:07:28 +00:00
r'^speakers/',
TemplateView.as_view(template_name='speakers.html'),
name='call-for-speakers'
),
2016-02-20 22:39:02 +00:00
url(
r'^login/$',
LoginView.as_view(),
name='account_login',
),
url(
r'^logout/$',
LogoutView.as_view(),
name='account_logout',
),
2016-06-01 12:08:24 +00:00
url(
2016-08-08 18:07:28 +00:00
r'^privacy-policy/$',
2016-06-01 12:08:24 +00:00
TemplateView.as_view(template_name='legal/privacy_policy.html'),
name='privacy-policy'
),
url(
2016-08-08 18:07:28 +00:00
r'^general-terms-and-conditions/$',
2016-06-01 12:08:24 +00:00
TemplateView.as_view(template_name='legal/general_terms_and_conditions.html'),
name='general-terms'
),
url(r'^accounts/', include('allauth.urls')),
2016-06-06 19:47:37 +00:00
url(r'^admin/', include(admin.site.urls)),
2016-08-30 11:21:44 +00:00
url(r'^calendar/', ICSView.as_view()),
2015-10-03 01:07:05 +00:00
]