Add intranet app
This commit is contained in:
parent
c96bd0d0db
commit
9773957baf
11 changed files with 167 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ INSTALLED_APPS = [
|
|||
'django.contrib.staticfiles',
|
||||
'tinymce',
|
||||
'cms',
|
||||
'intranet',
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -32,9 +32,13 @@ urlpatterns = [
|
|||
path('upload/', views.UploadDocListView.as_view(), name='uploaddoc-list'),
|
||||
path('concept/<int:pk>/', views.ConceptDetailView.as_view(), name='concept-detail'),
|
||||
path('tinymce/', include('tinymce.urls'), name='tinymce-js'),
|
||||
path('intranet/', include('intranet.urls'), name='intranet'),
|
||||
|
||||
# Serve docs by Django to allow LoginRequiredMiddleware to apply
|
||||
path('media/doc/<path:path>', serve,
|
||||
{'document_root': os.path.join(settings.MEDIA_ROOT, 'doc'), 'show_indexes': False}
|
||||
),
|
||||
path('media/intranet/<path:path>', serve,
|
||||
{'document_root': os.path.join(settings.MEDIA_ROOT, 'intranet'), 'show_indexes': False}
|
||||
),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue