blob: c5ffc08a22185eb791a820771491b03ac16ca7d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# vim: set sw=4 sts=4 et :
# Copyright: 2008 Gentoo Foundation
# Author(s): Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
# License: GPL-2
#
# Immortal lh!
#
from django.conf.urls.defaults import *
from django.conf import settings
from views import *
urlpatterns = patterns('',
(r'^~([a-zA-Z0-9_]+)/$', user_page),
)
# Static media serving for development purposes
if settings.DEBUG:
urlpatterns += patterns('',
# [1:] to remove prefixed slash
(r'^%s(?P<path>.*)$' % settings.MEDIA_PREFIX[1:], 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
)
|