mofca/mofca/urls.py

28 lines
774 B
Python
Raw Normal View History

2011-08-15 19:24:24 +05:30
from django.conf.urls.defaults import *
2011-08-21 01:03:51 +05:30
import settings
from os.path import join
2011-08-15 19:24:24 +05:30
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
2011-08-21 01:03:51 +05:30
2011-08-15 19:24:24 +05:30
urlpatterns = patterns('',
# Example:
# (r'^mofca/', include('mofca.foo.urls')),
(r'^$', 'recipes.views.index'),
2011-08-21 01:03:51 +05:30
(r'^test$', 'recipes.views.test'),
2011-08-15 19:24:24 +05:30
# 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)),
)
2011-08-21 01:03:51 +05:30
if settings.LOCAL_DEVELOPMENT:
#
urlpatterns += patterns('',
#
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': join(settings.PROJECT_ROOT, "static")}),
#
)