| author | Nishanth Amuluru <nishanth@fossee.in> |
| Fri, 07 Jan 2011 12:58:39 +0530 | |
| changeset 284 | 72db9563fae1 |
| parent 275 | c701e68f8d35 |
| child 292 | b3f4888a78a1 |
| permissions | -rwxr-xr-x |
| 238 | 1 |
from django.conf.urls.defaults import * |
2 |
||
|
259
3efb40900b87
added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents:
256
diff
changeset
|
3 |
from registration.views import register |
|
3efb40900b87
added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents:
256
diff
changeset
|
4 |
from pytask.profile.forms import CustomRegistrationForm |
|
3efb40900b87
added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents:
256
diff
changeset
|
5 |
|
|
265
1ce8241a9628
Removed the site url since it is the wrong way to use
Nishanth Amuluru <nishanth@fossee.in>
parents:
264
diff
changeset
|
6 |
from django.shortcuts import redirect |
|
1ce8241a9628
Removed the site url since it is the wrong way to use
Nishanth Amuluru <nishanth@fossee.in>
parents:
264
diff
changeset
|
7 |
|
| 238 | 8 |
# Uncomment the next two lines to enable the admin: |
| 272 | 9 |
from django.contrib import admin |
10 |
admin.autodiscover() |
|
| 238 | 11 |
|
12 |
urlpatterns = patterns('',
|
|
13 |
# Example: |
|
14 |
# (r'^pytask/', include('pytask.foo.urls')),
|
|
15 |
||
16 |
# Uncomment the admin/doc line below to enable admin documentation: |
|
17 |
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
|
18 |
||
19 |
# Uncomment the next line to enable the admin: |
|
| 272 | 20 |
(r'^admin/', include(admin.site.urls)), |
|
259
3efb40900b87
added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents:
256
diff
changeset
|
21 |
|
|
3efb40900b87
added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents:
256
diff
changeset
|
22 |
url(r'^accounts/register/$', register, |
|
3efb40900b87
added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents:
256
diff
changeset
|
23 |
{'form_class': CustomRegistrationForm},
|
|
3efb40900b87
added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents:
256
diff
changeset
|
24 |
name='registration_register'), |
|
264
8c2376baee94
Added csrf_token and included the urls
Nishanth Amuluru <nishanth@fossee.in>
parents:
259
diff
changeset
|
25 |
(r'^accounts/', include('registration.urls')),
|
|
275
c701e68f8d35
fixed a typo and browse notifications works fine
Nishanth Amuluru <nishanth@fossee.in>
parents:
272
diff
changeset
|
26 |
(r'^profile/', include('pytask.profile.urls')),
|
| 238 | 27 |
) |