-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathurls.py
36 lines (28 loc) · 1.12 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
34
35
36
#!/usr/bin/python
# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from django.conf import settings
# from views import cm_login, cm_logout
import logging
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns(
r'',
(r'^app/', include(r'chemmineng.cmplatform.urls')),
(r'^admin/(.*)', admin.site.root),
(r'^accounts/', include('chemmineng.accounts.urls')),
(r'^myCompounds/', include('chemmineng.myCompounds.urls')),
(r'^compounds/', include('chemmineng.compounddb.urls')),
(r'^screens/', include('chemmineng.screendb.urls')),
(r'^tree/', include('chemmineng.treeviewer.urls')),
(r'^similarity/', include('chemmineng.similarityworkbench.urls')),
)
if settings.DEBUG:
logging.basicConfig(level=logging.DEBUG)
import os
root = os.path.dirname(__file__)
urlpatterns += patterns(r'', (r'^static/(?P<path>.*)$',
r'django.views.static.serve',
{'document_root': root + '/static'}))
urlpatterns += patterns(r'', (r'', include(r'cms.urls')))