Exemple #1
0
from django.conf.urls.defaults import patterns, include, url
from registration.views import LoginUserView, LogoutUserView, RegistrationFormView, WelcomeView

urlpatterns = patterns('',
    url(r'^login/$',(LoginUserView.as_view())),
    url(r'^logout/$',(LogoutUserView.as_view())),
    url(r'^newuser/$',(RegistrationFormView.as_view())),	
 	url(r'^newuser/welcome/$',(WelcomeView.as_view())),	
	)


Exemple #2
0
from django.conf.urls import url
from registration.views import RegistrationFormView, WelcomeView, RegisterStaffFormView

urlpatterns = [
    url(r'^newuser/$',RegistrationFormView.as_view(), name='registration-view'),
    url(r'^newstaff/$',RegisterStaffFormView.as_view(), name='registration-staff-view'),   	
  	url(r'^welcome/$',WelcomeView.as_view(), name='welcome-view'),	
 	]