[291] | 1 | from django.conf.urls.defaults import patterns, include, url
|
---|
| 2 | from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
---|
| 3 |
|
---|
| 4 | # Uncomment the next two lines to enable the admin:
|
---|
| 5 | from django.contrib import admin
|
---|
| 6 | admin.autodiscover()
|
---|
| 7 |
|
---|
[302] | 8 | from django.contrib import databrowse
|
---|
| 9 | from running.models import User, Result
|
---|
| 10 | databrowse.site.register(User)
|
---|
| 11 | databrowse.site.register(Result)
|
---|
| 12 |
|
---|
[291] | 13 | urlpatterns = patterns('',
|
---|
| 14 | # Examples:
|
---|
| 15 | # url(r'^$', 'foobar.views.home', name='home'),
|
---|
[302] | 16 | url(r'^foobar/', include('django_apps.foobar.urls')),
|
---|
[294] | 17 | url(r'^running/', include('django_apps.running.urls')),
|
---|
[291] | 18 |
|
---|
| 19 | # Uncomment the admin/doc line below to enable admin documentation:
|
---|
| 20 | url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
---|
| 21 |
|
---|
| 22 | # Uncomment the next line to enable the admin:
|
---|
| 23 | url(r'^admin/', include(admin.site.urls)),
|
---|
[302] | 24 | (r'^accounts/login/$', 'django.contrib.auth.views.login'),
|
---|
| 25 | (r'^accounts/logout/$', 'django.contrib.auth.views.logout'),
|
---|
[291] | 26 | )
|
---|
| 27 |
|
---|
| 28 | urlpatterns += staticfiles_urlpatterns()
|
---|