mofca/mofca/urls.py

35 lines
1.1 KiB
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'^$', 'organic.views.index'),
(r'^test/$', 'recipes.views.test'),
(r'^hbt/$', 'organic.views.hbt'),
(r'^pickup-delivery/$', 'organic.views.pickup'),
(r'^seasons-veggies/$', 'organic.views.season_veggies'),
(r'^meet-farmers/$', 'organic.views.meet_farmers'),
(r'^recipes/$', 'recipes.views.index'),
# (r'^events/$', 'organic.views.events'),
# (r'^resources/$', 'organic.views.resources'),
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")}),
#
)