webfaction and repo.or.cz deployment done
[worddb.git] / urls.py
blob5fe51283d0dbc19a3d21c955dc4847ecc484833e
1 from django.conf.urls.defaults import *
2 from django.contrib import admin
3 from django.conf import settings
5 from path import path
7 admin.autodiscover()
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'),
26 'show_indexes': True
30 r'^media/(.*)$', 'django.views.static.serve',
32 'document_root': path(admin.__file__).parent.joinpath("media"),
33 'show_indexes': True
36 (r'', include('worddb.words.urls')),