1 from django
.conf
.urls
.defaults
import *
2 from django
.contrib
import admin
3 from django
.conf
import settings
9 urlpatterns
= patterns('',
10 # for django-registration app
11 (r
'^w/accounts/', include('registration.urls')),
13 # django_authopenid app
14 (r
'^w/accounts/', include('django_authopenid.urls')),
16 (r
'^w/admin/doc/', include('django.contrib.admindocs.urls')),
17 (r
'^w/admin/(.*)', admin
.site
.root
),
19 r
'^$', 'django.views.generic.simple.direct_to_template',
20 { 'template': 'website/index.html' }
23 r
'^w/static/(.*)$', 'django.views.static.serve',
25 'document_root': settings
.SETTINGS_FILE_FOLDER
.joinpath('static'),
30 r
'^media/(.*)$', 'django.views.static.serve',
32 'document_root': path(admin
.__file
__).parent
.joinpath("media"),
36 (r
'', include('worddb.words.urls')),