예제 #1
0
from django.conf.urls import include
from django.conf.urls import url
from django.views.generic.base import TemplateView

#from accounts.views import AccountActivationView as ActivationView
from accounts.views import AccountRegistrationView as RegistrationView
from accounts.views import PGRAccountEditView, UserAccountEditView, PGRAccountDetailView, UserAccountDetailView, UploadView, UploadLists
from accounts import views
urlpatterns = patterns('',
						# the following 4 views are by registration module for handling activation and registration
						url(r'^activate/complete/$',
                           TemplateView.as_view(template_name='registration/activation_complete.html'),
                           name='registration_activation_complete'),
						   
						url(r'^register/$',
                           RegistrationView.as_view(),	# link to RegistrationView(alias of AccountRegistrationView) in accounts.views. it's a modified version of the django-registration module's RegistrationView
                           name='registration_register'),
						
						# templates for the following view's do not exist yet. they are only static pages. create them after design is decided.
						url(r'^register/complete/$',
                           TemplateView.as_view(template_name='registration/registration_complete.html'),
                           name='registration_complete'),
						   
						url(r'^register/closed/$',
                           TemplateView.as_view(template_name='registration/registration_closed.html'),
                           name='registration_disallowed'),
						   
						(r'', include('registration.auth_urls')),	# include auth_urls from the registration framework for handling login,logout and password change.
						
						url(r'^edit/$',	# link to the show_profile function. The show_profile function checks the user group(i.e. whether customer or photographer) and presents the user (or) photographer account details whichever applies.
                           views.show_profile,
예제 #2
0
from django.conf.urls import patterns, url, include
#from django.views.generic.base import RedirectView

from accounts.views import (
    AccountRegistrationView, BillingView,  DashboardView, FavoriteView,
    LoginView, SettingsView, UpdateBillingView)


urlpatterns = patterns(
    'accounts.views',
    url(r'', include('social.apps.django_app.urls', namespace='social')),
    url(r'^register/$', AccountRegistrationView.as_view(), name='register'),
    url(r'^login/$', LoginView.as_view(), name='login'),
    url(r'^logout/$', 'logout', name='logout'),

    url(r'^dashboard/$', DashboardView.as_view(), name="dashboard"),
    url(r'^settings/$', SettingsView.as_view(), name="settings"),
    url(
        r'^billing/update_card/$', UpdateBillingView.as_view(),
        name='update_card'),
    url(r'^favorites/$', FavoriteView.as_view(), name="favorites"),
    url(r'^billing/$', BillingView.as_view(), name="billing"),
)
예제 #3
0
from django.conf.urls import patterns, url, include
#from django.views.generic.base import RedirectView

from accounts.views import (AccountRegistrationView, BillingView,
                            DashboardView, FavoriteView, LoginView,
                            SettingsView, UpdateBillingView)

urlpatterns = patterns(
    'accounts.views',
    url(r'', include('social.apps.django_app.urls', namespace='social')),
    url(r'^register/$', AccountRegistrationView.as_view(), name='register'),
    url(r'^login/$', LoginView.as_view(), name='login'),
    url(r'^logout/$', 'logout', name='logout'),
    url(r'^dashboard/$', DashboardView.as_view(), name="dashboard"),
    url(r'^settings/$', SettingsView.as_view(), name="settings"),
    url(r'^billing/update_card/$',
        UpdateBillingView.as_view(),
        name='update_card'),
    url(r'^favorites/$', FavoriteView.as_view(), name="favorites"),
    url(r'^billing/$', BillingView.as_view(), name="billing"),
)
예제 #4
0
from django.urls import path
from django.contrib.auth import views as auth_views
from accounts.views import AccountRegistrationView, AccountEditView, PasswordsChangeView, EditProfileInfoView, \
    CreateProfileInfoView

urlpatterns = [
    path('accounts/register/', AccountRegistrationView.as_view(), name='register'),
    path('accounts/edit_profile/', AccountEditView.as_view(), name='edit profile'),
    path('accounts/password/', PasswordsChangeView.as_view(), name='change_password'),
    path('accounts/edit_profile_info/<int:pk>', EditProfileInfoView.as_view(), name='edit profile info'),
    path('accounts/create_profile_info/', CreateProfileInfoView.as_view(), name='create profile info'),
]
예제 #5
0
urlpatterns = patterns('',
                       url(r'^activate/complete/$',
                           TemplateView.as_view(template_name='registration/activation_complete.html'),
                           name='registration_activation_complete'),
                       # Activation keys get matched by \w+ instead of the more specific
                       # [a-fA-F0-9]{40} because a bad activation key should still get to the view;
                       # that way it can return a sensible "invalid key" message instead of a
                       # confusing 404.
					   
					   
                       url(r'^activate/(?P<activation_key>\w+)/$',
                           ActivationView.as_view(),
                           name='registration_activate'),
					   
                       url(r'^register/$',
                           RegistrationView.as_view(),
                           name='registration_register'),
                       url(r'^register/complete/$',
                           TemplateView.as_view(template_name='registration/registration_complete.html'),
                           name='registration_complete'),
                       url(r'^register/closed/$',
                           TemplateView.as_view(template_name='registration/registration_closed.html'),
                           name='registration_disallowed'),
                       (r'', include('registration.auth_urls')),
					   url(r'^register/X/$',
                           AccountEditView.as_view(template_name='registration/registration_form.html'),
                           name='registration_disallowed'),
                       )