Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (16 sloc) 0.569 kb
5445bf29 »
2009-11-14 First commit. Export from svn.
1 from django.conf.urls.defaults import *
2 from django.conf import settings
3 from django.contrib import admin
4
5 admin.autodiscover()
6
7 from django.conf import settings
8 import os
9 dirname = os.path.dirname(globals()["__file__"])
10
11
12
13 urlpatterns = patterns('',
14 (r'^admin/(.*)',admin.site.root),
15 (r'^pystories/',include('pystories.urls')),
16
17 )
18
19 if settings.DEBUG:
20 media_dir = os.path.join(dirname, 'site_media')
21 urlpatterns += patterns('',
22 url(r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': media_dir}),
23 )
24
Something went wrong with that request. Please try again.