~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to local_urls.py.sample

removed unmaintained sphinx-doc; added managemnt command to create sphinx source code documentation with some own css; serve pure html for documentation

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from django.conf.urls import *
2
2
from django.conf import settings
3
3
from django.views.static import serve
 
4
from os import path
 
5
 
 
6
# Don't use this file on the server!
4
7
 
5
8
local_urlpatterns = [
6
9
   url(r'^wlmedia/(?P<path>.*)$',
11
14
       serve,
12
15
       {'document_root': settings.STATIC_MEDIA_PATH},
13
16
       name='static_media_pybb'),
 
17
   url(r'^documentation/(?P<path>.*)$',
 
18
       serve,
 
19
       {'document_root': path.join(settings.STATIC_MEDIA_PATH, 'documentation/html')},
 
20
       name='documentation'),
14
21
]