2009-06-08 16:08:59 +00:00
|
|
|
from django.conf.urls.defaults import *
|
|
|
|
|
2009-08-16 12:23:29 +00:00
|
|
|
from django.conf import settings
|
|
|
|
|
2009-06-08 16:08:59 +00:00
|
|
|
# Uncomment the next two lines to enable the admin:
|
2009-08-16 12:23:29 +00:00
|
|
|
from django.contrib import admin
|
|
|
|
admin.autodiscover()
|
|
|
|
|
2009-06-08 16:08:59 +00:00
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
|
|
|
# Example:
|
2009-12-31 15:04:32 +00:00
|
|
|
(r'^ajax_filtered_fields/', include('ajax_filtered_fields.urls')),
|
2010-02-03 11:59:11 +00:00
|
|
|
(r'^api/', include('backend.urls')),
|
2010-02-08 10:26:25 +00:00
|
|
|
(r'^site.js$', 'app.views.site_js'),
|
2009-10-04 22:00:08 +00:00
|
|
|
(r'^$', 'app.views.index'),
|
2010-02-06 08:24:39 +00:00
|
|
|
(r'^r/(?P<key>.*)$', 'oxuser.views.recover'),
|
2009-06-08 16:08:59 +00:00
|
|
|
|
|
|
|
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
|
|
|
|
# to INSTALLED_APPS to enable admin documentation:
|
|
|
|
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
|
|
|
|
|
|
|
# Uncomment the next line to enable the admin:
|
2010-07-19 17:39:00 +00:00
|
|
|
(r'^admin/(.*)', include(admin.site.urls)),
|
2009-06-08 16:08:59 +00:00
|
|
|
)
|
2009-08-16 12:23:29 +00:00
|
|
|
|
|
|
|
if settings.DEBUG:
|
|
|
|
urlpatterns += patterns('',
|
|
|
|
(r'^media/(?P<path>.*)$', 'django.views.static.serve',
|
|
|
|
{'document_root': settings.MEDIA_ROOT}),
|
|
|
|
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
|
|
|
|
{'document_root': settings.STATIC_ROOT}),
|
2009-10-04 22:00:08 +00:00
|
|
|
(r'^tests/(?P<path>.*)$', 'django.views.static.serve',
|
|
|
|
{'document_root': settings.TESTS_ROOT}),
|
2009-08-16 12:23:29 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|