Commit 0cbf5d52 authored by Patrick's avatar Patrick

Use ManifestStaticFilesStorage

parent 99412898
......@@ -30,12 +30,13 @@ def get_allowed_mail_extension():
return allowed_mail_extension
# os.path.realpath resolves symlinks and os.path.abspath doesn't.
PROJECT_PATH = os.path.split(os.path.realpath(os.path.dirname(__file__)))[0]
PROJECT_DIR = os.path.realpath(os.path.dirname(__file__))
PROJECT_PATH = os.path.split(PROJECT_DIR)[0]
os.sys.path.insert(0, PROJECT_PATH)
MEDIA_ROOT = os.path.join(PROJECT_DIR, "media", "public")
MEDIA_URL = "%s%s%s" % (os.sep, "media", os.sep)
STATIC_ROOT = os.path.join(PROJECT_DIR, "collect-static")
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
# STATICFILES_DIRS = (
# os.path.join(PROJECT_PATH, "repanier", "static"),
......@@ -188,7 +189,6 @@ INSTALLED_APPS = (
'filer',
'easy_thumbnails',
'easy_thumbnails.optimize',
# 'sass_processor',
'sekizai',
'mptt',
'django_mptt_admin',
......@@ -380,15 +380,33 @@ LOGIN_URL = "/repanier/go_repanier/"
LOGIN_REDIRECT_URL = "/"
LOGOUT_URL = "/repanier/leave_repanier/"
################# Django_compressor
INSTALLED_APPS += (
'compressor',
)
##### From : django/conf/global_settings.py
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
)
################# Django_sass_compressor
# INSTALLED_APPS += (
# 'sass_processor',
# )
# STATICFILES_FINDERS += (
# 'sass_processor.finders.CssFinder',
# )
# SASS_PROCESSOR_AUTO_INCLUDE = False
# SASS_PRECISION = 8
# SASS_PROCESSOR_INCLUDE_DIRS = [
# os.path.join(PROJECT_PATH, "bootstrap-sass-3.3.7", "assets", "stylesheets"),
# ]
################# Django_compressor
INSTALLED_APPS += (
'compressor',
)
STATICFILES_FINDERS += (
......@@ -401,6 +419,10 @@ COMPRESS_STORAGE = 'compressor.storage.GzipCompressorFileStorage'
COMPRESS_PARSER = "compressor.parser.HtmlParser"
COMPRESS_OFFLINE = False
# COMPRESS_PRECOMPILERS = (
# ('text/x-scss', 'django_libsass.SassCompiler'),
# )
###################### Django : Cache setup (https://docs.djangoproject.com/en/dev/topics/cache/)
CACHE_MIDDLEWARE_ALIAS = 'default'
......
{% load cms_tags sekizai_tags menu_tags compress i18n l10n repanier_tags %}{% spaceless %}
{% addtoblock "css" %}<link rel="stylesheet" href="{{ STATIC_URL}}bootstrap/css/bootstrap.css">{% endaddtoblock %}
{% addtoblock "css" %}<link rel="stylesheet" href="{{ STATIC_URL}}css/custom.css">{% endaddtoblock %}
{% load cms_tags sekizai_tags menu_tags compress i18n l10n static repanier_tags %}{% spaceless %}
{% addtoblock "css" %}<link rel="stylesheet" href={% static "bootstrap/css/bootstrap.css" %}>{% endaddtoblock %}
{% addtoblock "css" %}<link rel="stylesheet" href={% static "css/custom.css" %}>{% endaddtoblock %}
{% addtoblock "jshead" %}<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.4.min.js"></script>{% endaddtoblock %}
{% addtoblock "jshead" %}<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src="{{ STATIC_URL}}fluidvids/fluidvids.js"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src={% static "fluidvids/fluidvids.js" %}></script>{% endaddtoblock %}
{% addtoblock "lastjs" %}{% spaceless %}
<script>
fluidvids.init({
......
{#{% load cms_tags sekizai_tags menu_tags compress i18n l10n repanier_tags sass_tags %}{% spaceless %}#}
{% load cms_tags sekizai_tags menu_tags compress i18n l10n repanier_tags %}{% spaceless %}
{% addtoblock "css" %}<link rel="stylesheet" href="{{ STATIC_URL}}bootstrap/css/bootstrap.css">{% endaddtoblock %}
{% addtoblock "css" %}<link rel="stylesheet" href="{{ STATIC_URL}}css/custom.css">{% endaddtoblock %}
{% load cms_tags sekizai_tags menu_tags compress i18n l10n static repanier_tags %}{% spaceless %}
{% addtoblock "css" %}<link rel="stylesheet" href={% static "bootstrap/css/bootstrap.css" %}>{% endaddtoblock %}
{% addtoblock "css" %}<link rel="stylesheet" href={% static "css/custom.css" %}>{% endaddtoblock %}
{#{% addtoblock "css" %}<link href="{% sass_src '_bootstrap.scss' %}" rel="stylesheet" type="text/css" />{% endaddtoblock %}#}
{% addtoblock "jshead" %}<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.4.min.js"></script>{% endaddtoblock %}
{% addtoblock "jshead" %}<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src="{{ STATIC_URL}}fluidvids/fluidvids.js"></script>{% endaddtoblock %}
{% addtoblock "js" %}<script src={% static "fluidvids/fluidvids.js" %}></script>{% endaddtoblock %}
{% addtoblock "lastjs" %}{% spaceless %}
<script>
fluidvids.init({
......
{% extends "admin/base_site.html" %}
{% load cms_tags menu_tags compress i18n l10n %}
{% load cms_tags menu_tags compress i18n l10n static %}
{% block content %}
<link rel="stylesheet" href="{{ STATIC_URL}}bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="{{ STATIC_URL}}css/custom.css">
<link rel="stylesheet" href={% static "bootstrap/css/bootstrap.css" %}>
<link rel="stylesheet" href={% static "css/custom.css" %}>
<h4>{{ sub_title }}</h4>
<p></p>
<form action="" method="post">{% csrf_token %}
......
{% extends "admin/base_site.html" %}
{% load cms_tags menu_tags compress i18n l10n %}
{% load cms_tags menu_tags compress i18n l10n static %}
{% block content %}
<link rel="stylesheet" href="{{ STATIC_URL}}bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="{{ STATIC_URL}}css/custom.css">
<link rel="stylesheet" href={% static "bootstrap/css/bootstrap.css" %}>
<link rel="stylesheet" href={% static "css/custom.css" %}>
<h4>{{ sub_title }}</h4>
<p></p>
<form action="" method="post">{% csrf_token %}
......
{% extends "admin/base_site.html" %}
{% load cms_tags menu_tags i18n l10n %}
{% load cms_tags menu_tags compress i18n l10n static %}
{% block content %}
<link rel="stylesheet" href="{{ STATIC_URL}}bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="{{ STATIC_URL}}css/custom.css">
<link rel="stylesheet" href={% static "bootstrap/css/bootstrap.css" %}>
<link rel="stylesheet" href={% static "css/custom.css" %}>
<style type="text/css">
.form-group input[type="checkbox"] {
display: none;
......
{% extends "admin/base_site.html" %}
{% load cms_tags menu_tags compress i18n l10n %}
{% load cms_tags menu_tags compress i18n l10n static %}
{% block content %}
<link rel="stylesheet" href="{{ STATIC_URL}}bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="{{ STATIC_URL}}css/custom.css">
<link rel="stylesheet" href={% static "bootstrap/css/bootstrap.css" %}>
<link rel="stylesheet" href={% static "css/custom.css" %}>
<h4>{{ sub_title }}</h4>
<p></p>
<form action="" method="post">{% csrf_token %}
......
{% extends "admin/base_site.html" %}
{% load cms_tags menu_tags compress i18n l10n %}
{% load cms_tags menu_tags compress i18n l10n static %}
{% block content %}
<link rel="stylesheet" href="{{ STATIC_URL}}bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="{{ STATIC_URL}}css/custom.css">
<link rel="stylesheet" href={% static "bootstrap/css/bootstrap.css" %}>
<link rel="stylesheet" href={% static "css/custom.css" %}>
<h4>{{ sub_title }}</h4>
<p></p>
<form action="" method="post">{% csrf_token %}
......
{% extends "admin/base_site.html" %}
{% load cms_tags menu_tags compress i18n l10n %}
{% load cms_tags menu_tags compress i18n l10n static %}
{% block content %}
<link rel="stylesheet" href="{{ STATIC_URL}}bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="{{ STATIC_URL}}css/custom.css">
<link rel="stylesheet" href={% static "bootstrap/css/bootstrap.css" %}>
<link rel="stylesheet" href={% static "css/custom.css" %}>
<style type="text/css">
.form-group input[type="checkbox"] {
display: none;
......
{% extends "admin/base_site.html" %}
{% load cms_tags menu_tags compress i18n l10n %}
{% load cms_tags menu_tags compress i18n l10n static %}
{% block content %}
<link rel="stylesheet" href="{{ STATIC_URL}}bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="{{ STATIC_URL}}css/custom.css">
<link rel="stylesheet" href={% static "bootstrap/css/bootstrap.css" %}>
<link rel="stylesheet" href={% static "css/custom.css" %}>
<h4>{{ sub_title }}</h4>
<p></p>
<form action="" method="post">{% csrf_token %}
......
{% extends "admin/base_site.html" %}
{% load cms_tags menu_tags i18n l10n %}
{% load cms_tags menu_tags compress i18n l10n static %}
{% block content %}
<link rel="stylesheet" href="{{STATIC_URL}}bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="{{STATIC_URL}}css/custom.css">
<link rel="stylesheet" href={% static "bootstrap/css/bootstrap.css" %}>
<link rel="stylesheet" href={% static "css/custom.css" %}>
{#<script type="text/javascript" src="/fr/coordi/jsi18n/"></script>#}
{#<script type="text/javascript" src="/static_001/admin/js/core.js"></script>#}
{#<script type="text/javascript" src="/static_001/admin/js/vendor/jquery/jquery.js"></script>#}
......
{% extends "admin/base_site.html" %}
{% load cms_tags menu_tags compress i18n l10n %}
{% load cms_tags menu_tags compress i18n l10n static %}
{% block content %}
<link rel="stylesheet" href="{{ STATIC_URL}}bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="{{ STATIC_URL}}css/custom.css">
<link rel="stylesheet" href={% static "bootstrap/css/bootstrap.css" %}>
<link rel="stylesheet" href={% static "css/custom.css" %}>
<h4>{% if pre_open %}{% trans "Pre-opening of orders" %}{% else %}{% trans "Opening of orders" %}{% endif %} : {{ permanence }}</h4>
<p></p>
<form action="" method="post">{% csrf_token %}
......@@ -26,7 +26,7 @@
<textarea class="CMS_CKEditor texteditorwidget form-control" id="{{ id_for_label }}"
name="template_offer_customer_mail">{{ form.template_offer_customer_mail.value }}</textarea>
<script>window.CKEDITOR_BASEPATH = "{{ STATIC_URL}}djangocms_text_ckeditor/ckeditor/";</script>
<script src="{{ STATIC_URL}}djangocms_text_ckeditor/ckeditor/ckeditor.js"></script>
<script src={% static "djangocms_text_ckeditor/ckeditor/ckeditor.js" %}></script>
<script>
CKEDITOR.replace("{{ id_for_label }}", {
language: 'fr',
......@@ -34,7 +34,7 @@
toolbar: [
['Preview', 'Image', 'Source']
],
contentsCss: "{{ STATIC_URL}}bootstrap/css/bootstrap.css",
contentsCss: {% static "bootstrap/css/bootstrap.css" %},
width: '100%',
height: '24em',
removePlugins: 'elementspath',
......@@ -54,7 +54,7 @@
<textarea class="CMS_CKEditor texteditorwidget form-control" id="{{ id_for_label }}"
name="template_offer_customer_mail">{{ form.template_cancel_order_customer_mail.value }}</textarea>
<script>window.CKEDITOR_BASEPATH = "{{ STATIC_URL}}djangocms_text_ckeditor/ckeditor/";</script>
<script src="{{ STATIC_URL}}djangocms_text_ckeditor/ckeditor/ckeditor.js"></script>
<script src={% static "djangocms_text_ckeditor/ckeditor/ckeditor.js" %}></script>
<script>
CKEDITOR.replace("{{ id_for_label }}", {
language: 'fr',
......@@ -62,7 +62,7 @@
toolbar: [
['Preview', 'Image', 'Source']
],
contentsCss: "{{ STATIC_URL}}bootstrap/css/bootstrap.css",
contentsCss: {% static "bootstrap/css/bootstrap.css" %},
width: '100%',
height: '24em',
removePlugins: 'elementspath',
......
{% extends "admin/base_site.html" %}
{% load cms_tags menu_tags compress i18n l10n %}
{% load cms_tags menu_tags compress i18n l10n static %}
{% block content %}
<link rel="stylesheet" href="{{ STATIC_URL}}bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="{{ STATIC_URL}}css/custom.css">
<link rel="stylesheet" href={% static "bootstrap/css/bootstrap.css" %}>
<link rel="stylesheet" href={% static "css/custom.css" %}>
<h4>{{ sub_title }}</h4>
<p></p>
<form action="" method="post">{% csrf_token %}
......@@ -27,7 +27,7 @@
<textarea class="CMS_CKEditor texteditorwidget form-control" id="{{ id_for_label }}"
name="template_invoice_customer_mail">{{ form.template_invoice_customer_mail.value }}</textarea>
<script>window.CKEDITOR_BASEPATH = "{{ STATIC_URL}}djangocms_text_ckeditor/ckeditor/";</script>
<script src="{{ STATIC_URL}}djangocms_text_ckeditor/ckeditor/ckeditor.js"></script>
<script src={% static "djangocms_text_ckeditor/ckeditor/ckeditor.js" %}></script>
<script>
CKEDITOR.replace("{{ id_for_label }}", {
language: 'fr',
......@@ -35,7 +35,7 @@
toolbar: [
['Preview', 'Image', 'Source']
],
contentsCss: "{{ STATIC_URL}}bootstrap/css/bootstrap.css",
contentsCss: {% static "bootstrap/css/bootstrap.css" %},
width: '100%',
height: '24em',
removePlugins: 'elementspath',
......@@ -65,7 +65,7 @@
<textarea class="CMS_CKEditor texteditorwidget form-control" id="{{ id_for_label }}"
name="template_invoice_producer_mail">{{ form.template_invoice_producer_mail.value }}</textarea>
<script>window.CKEDITOR_BASEPATH = "{{ STATIC_URL}}djangocms_text_ckeditor/ckeditor/";</script>
<script src="{{ STATIC_URL}}djangocms_text_ckeditor/ckeditor/ckeditor.js"></script>
<script src={% static "djangocms_text_ckeditor/ckeditor/ckeditor.js" %}></script>
<script>
CKEDITOR.replace("{{ id_for_label }}", {
language: 'fr',
......@@ -73,7 +73,7 @@
toolbar: [
['Preview', 'Image', 'Source']
],
contentsCss: "{{ STATIC_URL}}bootstrap/css/bootstrap.css",
contentsCss: {% static "bootstrap/css/bootstrap.css" %},
width: '100%',
height: '24em',
removePlugins: 'elementspath',
......
{% extends "admin/base_site.html" %}
{% load cms_tags menu_tags compress i18n l10n %}
{% load cms_tags menu_tags compress i18n l10n static %}
{% block content %}
<link rel="stylesheet" href="{{ STATIC_URL}}bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="{{ STATIC_URL}}css/custom.css">
<link rel="stylesheet" href={% static "bootstrap/css/bootstrap.css" %}>
<link rel="stylesheet" href={% static "css/custom.css" %}>
<style type="text/css">
.form-group input[type="checkbox"] {
display: none;
......@@ -129,7 +129,7 @@
<textarea class="CMS_CKEditor texteditorwidget form-control" id="{{ id_for_label }}"
name="template_order_customer_mail">{{ form.template_order_customer_mail.value }}</textarea>
<script>window.CKEDITOR_BASEPATH = "{{ STATIC_URL}}djangocms_text_ckeditor/ckeditor/";</script>
<script src="{{ STATIC_URL}}djangocms_text_ckeditor/ckeditor/ckeditor.js"></script>
<script src={% static "djangocms_text_ckeditor/ckeditor/ckeditor.js" %}></script>
<script>
CKEDITOR.replace("{{ id_for_label }}", {
language: 'fr',
......@@ -137,7 +137,7 @@
toolbar: [
['Preview', 'Image', 'Source']
],
contentsCss: "{{ STATIC_URL}}bootstrap/css/bootstrap.css",
contentsCss: {% static "bootstrap/css/bootstrap.css" %},
width: '100%',
height: '24em',
removePlugins: 'elementspath',
......@@ -168,7 +168,7 @@
<textarea class="CMS_CKEditor texteditorwidget form-control" id="{{ id_for_label }}"
name="template_order_producer_mail">{{ form.template_order_producer_mail.value }}</textarea>
<script>window.CKEDITOR_BASEPATH = "{{ STATIC_URL}}djangocms_text_ckeditor/ckeditor/";</script>
<script src="{{ STATIC_URL}}djangocms_text_ckeditor/ckeditor/ckeditor.js"></script>
<script src={% static "djangocms_text_ckeditor/ckeditor/ckeditor.js" %}></script>
<script>
CKEDITOR.replace("{{ id_for_label }}", {
language: 'fr',
......@@ -176,7 +176,7 @@
toolbar: [
['Preview', 'Image', 'Source']
],
contentsCss: "{{ STATIC_URL}}bootstrap/css/bootstrap.css",
contentsCss: {% static "bootstrap/css/bootstrap.css" %},
width: '100%',
height: '24em',
removePlugins: 'elementspath',
......@@ -207,7 +207,7 @@
<textarea class="CMS_CKEditor texteditorwidget form-control" id="{{ id_for_label }}"
name="template_order_staff_mail">{{ form.template_order_staff_mail.value }}</textarea>
<script>window.CKEDITOR_BASEPATH = "{{ STATIC_URL}}djangocms_text_ckeditor/ckeditor/";</script>
<script src="{{ STATIC_URL}}djangocms_text_ckeditor/ckeditor/ckeditor.js"></script>
<script src={% static "djangocms_text_ckeditor/ckeditor/ckeditor.js" %}></script>
<script>
CKEDITOR.replace("{{ id_for_label }}", {
language: 'fr',
......@@ -215,7 +215,7 @@
toolbar: [
['Preview', 'Image', 'Source']
],
contentsCss: "{{ STATIC_URL}}bootstrap/css/bootstrap.css",
contentsCss: {% static "bootstrap/css/bootstrap.css" %},
width: '100%',
height: '24em',
removePlugins: 'elementspath',
......
{% extends "admin/base_site.html" %}
{% load cms_tags sekizai_tags menu_tags compress i18n l10n %}
{% load cms_tags sekizai_tags menu_tags compress i18n l10n static %}
{% block content %}
{% addtoblock "jshead" %}<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>{% endaddtoblock %}
{% addtoblock "css" %}<link rel="stylesheet" href="{{ STATIC_URL}}bootstrap/css/bootstrap.css">{% endaddtoblock %}
{% addtoblock "css" %}<link rel="stylesheet" href="{{ STATIC_URL}}css/custom.css">{% endaddtoblock %}
{% addtoblock "css" %}<link rel="stylesheet" href={% static "bootstrap/css/bootstrap.css" %}>{% endaddtoblock %}
{% addtoblock "css" %}<link rel="stylesheet" href={% static "css/custom.css" %}>{% endaddtoblock %}
<h4>{{ sub_title }}</h4>
<p></p>
<form enctype="multipart/form-data" action="" method="post">{% csrf_token %}
......
{% load cms_tags sekizai_tags i18n l10n %}
{% load cms_tags sekizai_tags i18n l10n static %}
{% if offer_item %}{# Update ok #}
<script>
$('#preOrderTable').prepend('<tr class="active" data-toggle="modal" data-id="{{ offer_item.id|unlocalize }}" data-target="#productModal"><td>{{ offer_item.producer }}</td><td><span id="get_long_name">{{ offer_item.get_long_name | safe }}{% if offer_item.picture2 %}<img class="img-responsive img-rounded" style="float:right; margin:5px; min-height:32px; min-width:32px; max-height:48px; max-width:48px;" src="{{ MEDIA_URL }}{{ offer_item.picture2 }}"/>{% endif %}</span></td><td align="right"><span id="producer_unit_price_wo_tax">{{ offer_item.producer_unit_price_wo_tax }}{% if offer_item.order_unit == '140' %}&nbsp;/&nbsp;({% trans "kg" %}){% endif %}{% if offer_item.unit_deposit > 0 %}<br/><span class="glyphicon glyphicon-plus"></span>{{ offer_item.unit_deposit }}<span class="glyphicon glyphicon-leaf"></span>{% endif %}</span></td><td> <span id="get_vat_level_display">{{ offer_item.get_vat_level_display }}</span></td><td align="right"><span id="stock">{% if offer_item.stock == 0 %}--{% else %}{{ offer_item.stock|floatformat:-2 }}{% endif %}</span></td></tr>');
......@@ -193,7 +193,7 @@
<textarea class="CMS_CKEditor texteditorwidget form-control" id="{{ id_for_label }}"
name="offer_description">{{ form.offer_description.value }}</textarea>
<script>window.CKEDITOR_BASEPATH = "{{ STATIC_URL}}djangocms_text_ckeditor/ckeditor/";</script>
<script src="{{ STATIC_URL}}djangocms_text_ckeditor/ckeditor/ckeditor.js"></script>
<script src={% static "djangocms_text_ckeditor/ckeditor/ckeditor.js" %}></script>
<script>
CKEDITOR.replace("{{ id_for_label }}", {
language: 'fr',
......@@ -221,7 +221,7 @@
"attributes": {"class": "glyphicon glyphicon-pushpin"},
"element": "span"
},
contentsCss: "{{ STATIC_URL}}bootstrap/css/bootstrap.css",
contentsCss: {% static "bootstrap/css/bootstrap.css" %},
width: '100%',
height: '8em',
removePlugins: 'elementspath'
......
{% extends 'base.html' %}
{% load cms_tags sekizai_tags i18n l10n repanier_tags %}
{% load cms_tags sekizai_tags i18n l10n static repanier_tags %}
{% block base_content %}
{% addtoblock "css" %}
<link href="{{ STATIC_URL}}djangocms_text_ckeditor/css/cms.ckeditor.css" rel="stylesheet">
<link href={% static "djangocms_text_ckeditor/css/cms.ckeditor.css" %} rel="stylesheet">
{% endaddtoblock %}
<div class="container-repanier">
<div class="container">
......
{% load cms_tags sekizai_tags i18n l10n %}
{% load cms_tags sekizai_tags i18n l10n static %}
<form id="producer_product_description_form" class="form-horizontal">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
......@@ -189,7 +189,7 @@
<textarea class="CMS_CKEditor texteditorwidget form-control" id="{{ id_for_label }}"
name="offer_description">{{ form.offer_description.value }}</textarea>
<script>window.CKEDITOR_BASEPATH = "{{ STATIC_URL}}djangocms_text_ckeditor/ckeditor/";</script>
<script src="{{ STATIC_URL}}djangocms_text_ckeditor/ckeditor/ckeditor.js"></script>
<script src={% static "djangocms_text_ckeditor/ckeditor/ckeditor.js" %}></script>
<script>
CKEDITOR.replace("{{ id_for_label }}", {
language: 'fr',
......@@ -217,7 +217,7 @@
"attributes": {"class": "glyphicon glyphicon-pushpin"},
"element": "span"
},
contentsCss: "{{ STATIC_URL}}bootstrap/css/bootstrap.css",
contentsCss: {% static "bootstrap/css/bootstrap.css" %},
width: '100%',
height: '8em',
removePlugins: 'elementspath'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment