equal
deleted
inserted
replaced
2 |
2 |
3 # Uncomment the next two lines to enable the admin: |
3 # Uncomment the next two lines to enable the admin: |
4 from django.contrib import admin |
4 from django.contrib import admin |
5 admin.autodiscover() |
5 admin.autodiscover() |
6 |
6 |
7 from pytask.taskapp.views.user import redirect_to_homepage, homepage, register, user_login, user_logout |
7 from pytask.taskapp.views.user import homepage, register, user_login, user_logout |
8 from pytask.taskapp.views.task import browse_tasks, view_task |
8 from pytask.taskapp.views.task import browse_tasks, view_task, create_task |
9 |
9 |
10 urlpatterns = patterns('', |
10 urlpatterns = patterns('', |
11 # Example: |
11 # Example: |
12 # (r'^pytask/', include('pytask.foo.urls')), |
12 # (r'^pytask/', include('pytask.foo.urls')), |
13 |
13 |
15 # to INSTALLED_APPS to enable admin documentation: |
15 # to INSTALLED_APPS to enable admin documentation: |
16 # (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
16 # (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
17 |
17 |
18 (r'^$', homepage), |
18 (r'^$', homepage), |
19 (r'^task/browse/$', browse_tasks), |
19 (r'^task/browse/$', browse_tasks), |
20 (r'^task/view/tid=(\d+)', view_task), |
20 (r'^task/view/tid=(\d+)$', view_task), |
|
21 (r'^task/create/$', create_task), |
21 |
22 |
22 (r'^admin/', include(admin.site.urls)), |
23 (r'^admin/', include(admin.site.urls)), |
23 |
24 |
24 (r'^accounts/register/$',register), |
25 (r'^accounts/register/$',register), |
25 (r'^accounts/login/$',user_login), |
26 (r'^accounts/login/$',user_login), |