diff options
Diffstat (limited to 'master/autotua/urls.py')
-rw-r--r-- | master/autotua/urls.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/master/autotua/urls.py b/master/autotua/urls.py new file mode 100644 index 0000000..c5ffc08 --- /dev/null +++ b/master/autotua/urls.py @@ -0,0 +1,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}), + ) |