forked from Garison/django-inventory-post
-
Notifications
You must be signed in to change notification settings - Fork 2
/
urls.py
executable file
·33 lines (27 loc) · 1.07 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
#----Django
#(r'^orig_admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/', include(admin.site.urls)),
#(r'^i18n/', include('django.conf.urls.i18n')),
#----Project
(r'^', include('common.urls')),
(r'^', include('main.urls')),
(r'^inventory/', include('inventory.urls')),
(r'^assets/', include('assets.urls')),
(r'^search/', include('dynamic_search.urls')),
(r'^import/', include('importer.urls')),
(r'^movements/', include('movements.urls')),
(r'^generic_photos/', include('photos.urls')),
)
if settings.DEVELOPMENT:
urlpatterns += patterns('',
(r'^django-inventory-site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'site_media', 'show_indexes': True}),
)
if 'rosetta' in settings.INSTALLED_APPS:
urlpatterns += patterns('',
url(r'^rosetta/', include('rosetta.urls'), name = "rosetta"),
)