1
|
1 |
from django.conf.urls.defaults import *
|
|
2 |
|
|
3 |
# Uncomment the next two lines to enable the admin:
|
|
4 |
from django.contrib import admin
|
|
5 |
admin.autodiscover()
|
|
6 |
|
|
7 |
from pytask.taskapp.seed_db import seed_db
|
|
8 |
from pytask.taskapp import views
|
|
9 |
|
|
10 |
urlpatterns = patterns('',
|
|
11 |
# Example:
|
|
12 |
# (r'^pytask/', include('pytask.foo.urls')),
|
|
13 |
|
|
14 |
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
|
|
15 |
# to INSTALLED_APPS to enable admin documentation:
|
|
16 |
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
|
17 |
|
|
18 |
(r'^$', views.homepage),
|
|
19 |
(r'^accounts/logout/?$', views.logout_user),
|
|
20 |
(r'^accounts/login/?$', views.login_user),
|
|
21 |
(r'^accounts/register/?$', views.register_user),
|
|
22 |
#(r'^user/view?uid=(\d+)$', views.view_profile),
|
|
23 |
#(r'^user/edit/?$', views.edit_profile),
|
|
24 |
#(r'^user/view/?$', views.browse_users),
|
|
25 |
|
|
26 |
(r'^admin/', include(admin.site.urls)),
|
|
27 |
|
|
28 |
(r'^seed_db/?$',seed_db),
|
|
29 |
)
|