urbstudio/urbstudio/urls.py
2011-09-29 00:30:34 +05:30

32 lines
988 B
Python

from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
import settings
from os.path import join
urlpatterns = patterns('',
# Example:
# (r'^urbstudio/', include('urbstudio.foo.urls')),
(r'^home$', 'urb.views.home'),
(r'^profile$', 'urb.views.profile'),
(r'^projects$', 'urb.views.projects'),
(r'^jobs$', 'urb.views.jobs'),
(r'^contact$', 'urb.views.contact'),
(r'^links$', 'urb.views.links'),
(r'^noteworthy$', 'urb.views.noteworthy'),
# Uncomment the admin/doc line below to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
)
if settings.LOCAL_DEVELOPMENT:
#
urlpatterns += patterns('',
#
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': join(settings.PROJECT_ROOT, "static")}),
#
)