diff -r 5ff1fc726848 -r c6bca38c1cbf pytask/urls.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pytask/urls.py Sat Jan 08 11:20:57 2011 +0530 @@ -0,0 +1,33 @@ +from django.conf.urls.defaults import * + +from registration.views import register +from registration.backends.default import DefaultBackend +from pytask.profile.forms import CustomRegistrationForm + +from django.shortcuts import redirect + +# Uncomment the next two lines to enable the admin: +from django.contrib import admin +admin.autodiscover() + +urlpatterns = patterns('', + # Example: + # (r'^pytask/', include('pytask.foo.urls')), + + # Uncomment the admin/doc line below to enable admin documentation: + # (r'^admin/doc/', include('django.contrib.admindocs.urls')), + + # Uncomment the next line to enable the admin: + (r'^admin/', include(admin.site.urls)), + + (r'^static/(?P.*)$', 'django.views.static.serve', + {'document_root': './pytask/static/'}), + + url(r'^accounts/register/$', register, + {'form_class': CustomRegistrationForm, + 'backend': 'registration.backends.default.DefaultBackend'}, + name='registration_register'), + + (r'^accounts/', include('registration.urls')), + (r'^profile/', include('pytask.profile.urls')), +)