blob: e3df80151f7b9497094db18ffc1b9635781d2480 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# 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),
(r'^~([a-zA-Z0-9_]+)/jobs/$', jobs_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}),
)
|