dd649e1f908ae42445d3e1eba42407e0f1d8f7cd
[auf_skeleton_django.git] / project_name / urls.py
1 # -*- coding: utf-8 -*-
2
3 from django.conf.urls.defaults import patterns, include,\
4 handler500, handler404, url
5 from django.conf import settings
6
7 from django.contrib import admin
8 from django.contrib.staticfiles.urls import staticfiles_urlpatterns
9
10 admin.autodiscover()
11
12 handler404
13 handler500
14
15 urlpatterns = patterns(
16 '',
17 url(r'^api/pong/', include('auf.django.pong.urls')),
18 (r'^admin/', include(admin.site.urls)),
19 )
20
21 if settings.DEBUG:
22 urlpatterns += staticfiles_urlpatterns()
23 urlpatterns += patterns(
24 '',
25 url(r'^media/(?P<path>.*)$',
26 'django.views.static.serve',
27 {'document_root': settings.MEDIA_ROOT, }),
28 )