gazetteer/gazetteer/urls.py

31 lines
924 B
Python

from django.conf.urls.defaults import *
from os.path import join
import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^gazetteer/', include('gazetteer.foo.urls')),
('^search$', 'places.views.search'),
('^search_json$', 'places.views.search_json'),
('^search_related$', 'places.views.search_related'),
('^search_related_json$', 'places.views.search_related.json'),
# 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")}),
#
)