TinyMCE
This commit is contained in:
parent
ff091dc3e7
commit
1484d6cc6d
1582 changed files with 46295 additions and 15 deletions
|
|
@ -38,6 +38,7 @@ INSTALLED_APPS = [
|
|||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'chartjs',
|
||||
'tinymce',
|
||||
'cms',
|
||||
]
|
||||
|
||||
|
|
@ -132,6 +133,16 @@ STUDENT_IMPORT_MAPPING = {
|
|||
|
||||
DOMAINE_COULEURS = {'D1':'#fcaf3e', 'D2': '#cc0000', 'D3': '#ef896b', 'D4': '#ad7fa8', 'D5': '#729fcf', 'D6':'#73d216', 'D7':'#ffffff', 'D8':'#babdb6' }
|
||||
|
||||
TINYMCE_JS_URL = STATIC_URL + 'js/tiny_mce/tiny_mce.js'
|
||||
TINYMCE_DEFAULT_CONFIG = {
|
||||
'plugins': "table,spellchecker,paste,searchreplace",
|
||||
'theme': "advanced",
|
||||
'cleanup_on_startup': True,
|
||||
'custom_undo_redo_levels': 10,
|
||||
}
|
||||
TINYMCE_SPELLCHECKER = True
|
||||
TINYMCE_COMPRESSOR = True
|
||||
|
||||
from .local_settings import *
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ Including another URLconf
|
|||
1. Import the include() function: from django.conf.urls import url, include
|
||||
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
|
||||
"""
|
||||
from django.conf.urls import url
|
||||
from django.conf.urls import url, include
|
||||
from django.contrib import admin
|
||||
from cms import views
|
||||
from django.conf import settings
|
||||
|
|
@ -21,7 +21,7 @@ from django.conf.urls.static import static
|
|||
|
||||
urlpatterns = [
|
||||
url(r'^$', views.HomeView.as_view(), name='home'),
|
||||
url(r'^plan_pdf/$', views.HomwPDFView.as_view(), name='plan-pdf'),
|
||||
url(r'^plan_pdf/$', views.HomePDFView.as_view(), name='plan-pdf'),
|
||||
url(r'^admin/', admin.site.urls),
|
||||
url(r'^domaine/(?P<pk>\d+)$', views.DomaineDetailView.as_view(), name='domaine-detail'),
|
||||
url(r'^domaines/$', views.DomaineListView.as_view(), name='domaine-list'),
|
||||
|
|
@ -35,6 +35,9 @@ urlpatterns = [
|
|||
url(r'^upload/$', views.AddDocument.as_view(), name='upload'),
|
||||
url(r'^download/(?P<file_name>.+)$', views.Download, name='download'),
|
||||
url(r'^calendrier/$', views.pdf_view, name='pdf-view'),
|
||||
url(r'^module_pdf/(?P<pk>\d+)$', views.ModulePDF.as_view(), name='module-pdf'),
|
||||
url(r'^module_pdf/(?P<pk>\d+)$', views.ModulePDF.as_view(), name='module-pdf'),
|
||||
url(r'^documents/$', views.DocumentListView.as_view(), name='document-list'),
|
||||
url(r'^document/(?P<pk>\d+)$', views.DocumentDetailView.as_view(), name='document-detail'),
|
||||
url(r'^import/$', views.import_xls_file),
|
||||
url(r'^tinymce/', include('tinymce.urls'), name='tinymce-js'),
|
||||
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue