forked from girke-lab/chemminetools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
41 lines (35 loc) · 1.44 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
37
38
39
40
41
#!/usr/bin/python
# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
from django.views.generic.simple import direct_to_template
from django.views.generic import RedirectView
from django.contrib.auth.views import login, logout
# enable cron
import django_cron
django_cron.autodiscover()
admin.autodiscover()
urlpatterns = patterns(
r'',
url(r'^admin/', include(admin.site.urls)),
(r'^eisearch/', include('eisearch.urls')),
(r'^accounts/', include('userena.urls')),
(r'^compounds/', include(r'compounddb.urls')),
(r'^my[Cc]ompounds/', include('myCompounds.urls')),
(r'^tools/', include('tools.urls')),
(r'^search/?', RedirectView.as_view(url='/eisearch/query/')),
(r'^similarity/', include('similarityworkbench.urls')),
(r'^ChemmineR/', include('ChemmineR.urls')),
(r'^robots\.txt/?$', direct_to_template, {'template': 'robots.txt',
'mimetype': 'text/plain'}),
(r'^ei/?', RedirectView.as_view(url='/downloads/')),
url(r'^', include('cms.urls')),
)
if settings.DEBUG:
urlpatterns = patterns(r'', url(r'^working/(?P<path>.*)$',
r'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT,
'show_indexes': False}), url(r'',
include(r'django.contrib.staticfiles.urls'
))) + urlpatterns