from profiles.views import (RegistrationView, LoginView, LogoutView, ProfileDetailView, ProfileUpdateView, ProfileChannelsGraphView, ProfileArgumentsView, ProfilePremisesView, ProfileFallaciesView) urlpatterns = patterns( '', url(r'^login/$', LoginView.as_view(template_name="auth/login.html"), name='auth_login'), url(r'^logout/$', LogoutView.as_view(), name='auth_logout'), url(r'^auth/profile$', ProfileUpdateView.as_view(template_name="auth/update.html"), name='auth_profile_update'), url(r'^register/$', RegistrationView.as_view(template_name="auth/register.html"), name='auth_registration'), url(r'^complete/$', TemplateView.as_view(template_name="auth/complete.html"), name='auth_registration_complete'), url(r'^users/(?P<username>[\w\._-]+)$', ProfileDetailView.as_view(template_name="auth/profile.html"), name='auth_profile'), url(r'^users/(?P<username>[\w\._-]+)/arguments$', ProfileArgumentsView.as_view(), name='auth_profile_arguments'), url(r'^users/(?P<username>[\w\._-]+)/premises$', ProfilePremisesView.as_view(), name='auth_profile_premises'), url(r'^users/(?P<username>[\w\._-]+)/fallacies$', ProfileFallaciesView.as_view(),
from profiles.views import LoginView, RegistrationView, RegistrationComplete, ActivationComplete, profile_update from profiles.forms import PimpUserRegistrationForm urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^$', HomepageView.as_view(), name="index"), url(r'^login/', LoginView.as_view(), name="login"), url(r'^contact/', ContactView.as_view(), name="contact"), url(r'^about/', AboutView.as_view(), name="about"), url(r'^meet-the-team', MeetTheTeam.as_view(), name="team"), url(r'^who-we-are/', WhoWeAre.as_view(), name="who_we_are"), url(r'^how-it-works/', HowItWorks.as_view(), name="how_it_works"), url(r'^partnerships/', Partnerships.as_view(), name="partenrships"), url(r'^become-a-partner/', BecomeAPartner.as_view(), name="become_a_partner"), url(r'^our-partners/', OurPartners.as_view(), name="our_partners"), url(r'^accounts/register/', RegistrationView.as_view(form_class=PimpUserRegistrationForm), name='registration_register'), url(r'^accounts/registration-complete/', RegistrationComplete.as_view(), name='registration_complete'), url(r'^accounts/activate/complete/', ActivationComplete.as_view(), name='activation_complete'), url(r'^accounts/', include('registration.backends.default.urls')), url(r'^s3direct/', include('s3direct.urls')), url(r'^accounts/profile/', profile_update, name='profile_update'), ]
from django.conf.urls import url from django.views.generic import TemplateView from django.contrib.auth import views from profiles.views import (RegistrationView, LoginView, LogoutView, ProfileDetailView, ProfileUpdateView, ProfileChannelsGraphView, ProfileResolutionsView, ProfileDeclarationsView, ProfileFallaciesView, SpeakerDetailView) urlpatterns = [ url(r'^login/$', LoginView.as_view(template_name="auth/login.html"), name='auth_login'), url(r'^logout/$', LogoutView.as_view(), name='auth_logout'), url(r'^auth/profile$', ProfileUpdateView.as_view( template_name="auth/update.html"), name='auth_profile_update'), url(r'^register/$', RegistrationView.as_view( template_name="auth/register.html"), name='auth_registration'), url(r'^complete/$', TemplateView.as_view( template_name="auth/complete.html"), name='auth_registration_complete'), url(r'^users/(?P<username>[\w\._-]+)$', ProfileDetailView.as_view( template_name="auth/profile.html"), name='auth_profile'), url(r'^users/(?P<username>[\w\._-]+)/resolutions$', ProfileResolutionsView.as_view(), name='auth_profile_resolutions'), url(r'^users/(?P<username>[\w\._-]+)/declarations$', ProfileDeclarationsView.as_view(), name='auth_profile_declarations'), url(r'^users/(?P<username>[\w\._-]+)/fallacies$', ProfileFallaciesView.as_view(), name='auth_profile_fallacies'), url(r'^users/(?P<username>[\w\._-]+)/channels.json$', ProfileChannelsGraphView.as_view(), name='auth_profile_channels'), url(r'^password_reset/$', views.password_reset, {'template_name': 'auth/password_reset_form.html', 'email_template_name': 'auth/password_reset_email.html'},
"""pimpmycause URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf.urls import url from django.contrib import admin from core.views import HomepageView, ContactView from profiles.views import LoginView, RegistrationView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^$', HomepageView.as_view(), name="index"), url(r'^login', LoginView.as_view(), name="login"), url(r'^register', RegistrationView.as_view(), name="register"), url(r'^contact', ContactView.as_view(), name="contact"), ]
), url( r'^logout/$', auth_views.logout, {'template_name': 'profiles/logout.html'}, name='logout', ), url( r'^accounts/login/$', auth_views.login, {'template_name': 'profiles/login.html'}, name='login', ), url( r'^accounts/register/$', RegistrationView.as_view(form_class=PimpUserRegistrationForm), name='registration_register' ), url( r'^accounts/registration/complete/$', TemplateView.as_view(template_name="registration/registration_complete.html"), name='registration_complete' ), url( r'^accounts/activate/complete/$', ActivationComplete.as_view(), name='activation_complete' ), url( r'^profile/', include('profiles.urls')
from django.conf.urls import url from profiles.views import SatFileUploadView, TextSatFilesView, TextSatFileView, MaxSatFileUploadView, TextMaxSatFilesView, TextMaxSatFileView, RegistrationView urlpatterns = [ url(r'^upload/sat/(?P<filename>[^/]+)/$', SatFileUploadView.as_view(), name='sat_file_upload'), url(r'^upload/maxsat/(?P<filename>[^/]+)/$', MaxSatFileUploadView.as_view(), name='maxsat_file_upload'), url(r'^files/sat/$', TextSatFilesView.as_view(), name='sat_files'), url(r'^files/maxsat/$', TextMaxSatFilesView.as_view(), name='maxsat_files'), url(r'^file/sat/(?P<pk>\d+)/(?P<vistype>\w+)/$', TextSatFileView.as_view(), name='sat_file'), url(r'^file/maxsat/(?P<pk>\d+)/(?P<vistype>\w+)/$', TextMaxSatFileView.as_view(), name='maxsat_file'), #url(r'^file/clustered/(?P<pk>\d+)/$', TextMaxSatFileView.as_view(), name='clustered_file'), url(r'^register/$', RegistrationView.as_view(), name='user'), ]
from django.conf.urls import url, include from django.contrib import admin from core.views import HomepageView, ContactView, AboutView, ActView, MeetTheTeam, TermsAndConditions, ThinkView from profiles.views import LoginView, RegistrationView, RegistrationComplete, ActivationComplete from profiles.forms import OCDActionUserRegistrationForm urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^$', HomepageView.as_view(), name="index"), url(r'^login', LoginView.as_view(), name="login"), url(r'^contact', ContactView.as_view(), name="contact"), url(r'^about', AboutView.as_view(), name="about"), url(r'^act', ActView.as_view(), name="act"), url(r'^meet-the-team', MeetTheTeam.as_view(), name="team"), url(r'^think', ThinkView.as_view(), name="think"), url(r'^terms-and-conditions', TermsAndConditions.as_view(), name="terms_and_conditions"), url(r'^accounts/register', RegistrationView.as_view(form_class=OCDActionUserRegistrationForm), name='registration_register'), url(r'^accounts/registration-complete/', RegistrationComplete.as_view(), name='registration_complete'), url(r'^accounts/activate/complete/', ActivationComplete.as_view(), name='activation_complete'), url(r'^accounts/', include('registration.backends.default.urls')), ]
from django.conf.urls import patterns, url from profiles.views import RegistrationView, LoginView, LogoutView, EditView, DetailView urlpatterns = patterns( "", url(r"^register/$", RegistrationView.as_view(), name="register"), url(r"^login/$", LoginView.as_view(), name="login"), url(r"^logout/$", LogoutView.as_view(), name="logout"), url(r"^edit/(?P<pk>\w+)/$", EditView.as_view(), name="edit"), url(r"^detail/(?P<publisher>\w+)/$", DetailView.as_view(), name="detail"), )
from django.conf.urls import url, include from django.contrib import admin from django.contrib.auth.views import LoginView, LogoutView from django.views.generic import TemplateView from profiles.views import ProfileFollowToggle, RegistrationView, activate_user_view from menus.views import HomeView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^$', HomeView.as_view(), name='home'), url(r'^registration/$', RegistrationView.as_view(), name='registration'), url(r'^activate/(?P<code>[a-z0-9].*)/$', activate_user_view, name='activate'), url(r'^login/$', LoginView.as_view(), name='login'), url(r'^logout/$', LogoutView.as_view(), name='logout'), url(r'^profile-follow/$', ProfileFollowToggle.as_view(), name='follow'), url(r'^restaurants/', include('restaurants.urls', namespace='restaurants')), url(r'^items/', include('menus.urls', namespace='menus')), url(r'^profiles/', include('profiles.urls', namespace='profiles')), url(r'^about/$', TemplateView.as_view(template_name='about.html'), name='about'), url(r'^contact/$', TemplateView.as_view(template_name='contact.html'), name='contact'), ]
1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import path, include from profiles.views import RegistrationView urlpatterns = [ path('admin/', admin.site.urls), path('', include('main.urls')), path('', include('django.contrib.auth.urls')), path('pages/', include('pages.urls')), path('registration/', RegistrationView.as_view(), name='registration'), path('subjects/', include('subjects.urls')), path('news/', include('news.urls')), path('profile/', include('profiles.urls')), path('orders/', include('orders.urls')), path('comments/', include('django_comments.urls')), ] urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
from django.conf.urls import patterns, url from django.views.generic import TemplateView from profiles.views import (RegistrationView, LoginView, LogoutView, ProfileDetailView, ProfileUpdateView) urlpatterns = patterns('', url(r'^login/$', LoginView.as_view(template_name="auth/login.html"), name='auth_login'), url(r'^logout/$', LogoutView.as_view(), name='auth_logout'), url(r'^auth/profile$',ProfileUpdateView.as_view( template_name="auth/update.html"), name='auth_profile_update'), url(r'^register/$', RegistrationView.as_view( template_name="auth/register.html"), name='auth_registration'), url(r'^complete/$', TemplateView.as_view( template_name="auth/complete.html"), name='auth_registration_complete'), url(r'^users/(?P<username>[\w\._-]+)$', ProfileDetailView.as_view( template_name="auth/profile.html"), name='auth_profile'), )