from django conf urls defaults import from django conf import settings

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from django.conf.urls.defaults import *
from django.conf import settings
urlpatterns = patterns('',
(r'^admin/', include('django.contrib.admin.urls')),
)
urlpatterns += patterns('itsm.views',
# ('', 'index'),
)
urlpatterns += patterns('incidents.views',
(r'^incidents/', 'index'),
)
urlpatterns += patterns('knowledgebase.views',
(r'^knowledgebase/', 'index'),
)
if settings.DEBUG:
urlpatterns += patterns('',
(r'^media/(.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
)