-
Notifications
You must be signed in to change notification settings - Fork 1
/
urls.py
29 lines (20 loc) · 902 Bytes
/
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
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
from django.views.generic.simple import redirect_to
from django.views.static import serve
urlpatterns = patterns('',
('^$', redirect_to, {'url': 'http://getgauss.com'}),
(r'^admin/', include(admin.site.urls)),
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^help/?$', 'restapi.views.help'),
(r'^gausslog/?$', 'restapi.views.log'),
(r'^webclient/', include('gauss.webclient.urls')),
(r'^chat/', include('gauss.chat.urls')),
(r'^', include('gauss.restapi.urls')),
)
if settings.DEBUG:
urlpatterns += patterns('django.views.static',
(r'^static_media/(?P<path>.*)$', 'serve',
{ 'document_root': settings.MEDIA_ROOT, 'show_indexes': True }), )