urls.py
changeset 62 db103856505e
parent 44 2b09336352b5
child 83 fd2e1bd7af82
equal deleted inserted replaced
61:708dd49d531b 62:db103856505e
    15     # (r'^pytask/', include('pytask.foo.urls')),
    15     # (r'^pytask/', include('pytask.foo.urls')),
    16 
    16 
    17     # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    17     # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    18     # to INSTALLED_APPS to enable admin documentation:
    18     # to INSTALLED_APPS to enable admin documentation:
    19     # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    19     # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    20     
    20 
       
    21     (r'^images/(?P<path>.*)$', 'django.views.static.serve',
       
    22             {'document_root': './images/'}),
       
    23 
    21     (r'^$', userViews.homepage),
    24     (r'^$', userViews.homepage),
    22     
    25     
    23     (r'^task/browse/$', taskViews.browse_tasks),
    26     (r'^task/browse/$', taskViews.browse_tasks),
    24     (r'^task/view/tid=(\d+)$', taskViews.view_task),
    27     (r'^task/view/tid=(\d+)$', taskViews.view_task),
    25     (r'^task/create/$', taskViews.create_task),
    28     (r'^task/create/$', taskViews.create_task),