-
Alice Heaton authored
Remove untested djangojs url directive, which is not needed and does not work (mistakenly added following instructions)
Alice Heaton authoredRemove untested djangojs url directive, which is not needed and does not work (mistakenly added following instructions)
urls.py 1.30 KiB
from __future__ import unicode_literals, absolute_import
from django.conf.urls import patterns, include, url
from django.conf.urls.i18n import i18n_patterns
from django.views.generic.base import RedirectView
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
urlpatterns = patterns(
'',
# Examples:
# url(r'^$', 'myapp.views.home', name='home'),
# url(r'^myapp/', include('myapp.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
url(r'^accounts/', include('users.urls')),
url(r'^api/', include('rest_api.urls')),
url(r'^dashboard/', include('dashboard.urls')),
url(r'^', include('hid.urls'))
)
if settings.DEBUG:
urlpatterns = patterns(
'',
url(
r'^uploads/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}
),
url(r'', include('django.contrib.staticfiles.urls')),
url(r'^favicon.ico$', RedirectView.as_view(
url='{0}images/favicon.ico'.format(settings.STATIC_URL),
permanent=True
))
) + urlpatterns