This repository has been archived on 2022-08-01. You can view files and clone it, but cannot push or open issues or pull requests.
DEMOS2/allauthdemo/urls.py

28 lines
1.3 KiB
Python
Raw Normal View History

from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic.base import TemplateView
from django.conf.urls.static import static
from django.conf import settings
import allauthdemo.views
import allauthdemo.auth.views
admin.autodiscover()
urlpatterns = [
url(r'^$', TemplateView.as_view(template_name='visitor/landing-index.html'), name='landing_index'),
url(r'^about$', TemplateView.as_view(template_name='visitor/landing-about.html'), name='landing_about'),
url(r'^terms/$', TemplateView.as_view(template_name='visitor/terms.html'), name='website_terms'),
url(r'^contact$', TemplateView.as_view(template_name='visitor/contact.html'), name='website_contact'),
url(r'^event/', include('allauthdemo.polls.urls', namespace="polls")),
url(r'^accounts/', include('allauth.urls')),
url(r'^accounts/profile/$', allauthdemo.auth.views.account_profile, name='account_profile'),
url(r'^member/$', allauthdemo.views.member_index, name='user_home'),
url(r'^member/events$', allauthdemo.views.MemberEvents.as_view(), name='account_events'),
url(r'^member/action$', allauthdemo.views.member_action, name='user_action'),
url(r'^admin/', include(admin.site.urls))
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)