forked from saketkc/scilab_cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
executable file
·35 lines (30 loc) · 1.22 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
from django.conf.urls.defaults import *
import os.path
from scilab_cloud import settings
from scilab_cloud.scilab_c.views import *
from scilab_cloud.login_manager.views import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
(r'^$',login),
(r'^login/$',login),
(r'^scilab_view',default_view),
(r'^logout/$',logout),
(r'^scilab_evaluate',scilab_new_evaluate),
(r'^get_chapters',get_chapters),
(r'^upload_file', upload_file),
(r'^upload', upload_file),
(r'^get_examples',get_examples),
(r'^get_code',get_code),
(r'^get_books',get_books),
(r'download/(?P<graphname>.*)/',download),
(r'^public/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT}),
(r'^graphs/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.GRAPH_ROOT}),
# url(r'^scilab_cloud/', include('scilab_cloud.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
# url(r'^admin/', include(admin.site.urls)),
)