Checking through the documents I found the following reference:
https://docs.djangoproject.com/en/2.0/topics/forms/media/#order-of-assets
Changed in Django 2.0:
In older versions, the assets of Media objects are concatenated rather than
merged in a way that tries to preserve the relative orderin
because they are specific to only a few models, particularly the loading
scripts, and options, etc. this worked great in Django 1.11
On Sunday, 10 December 2017 09:36:56 UTC-5, Etienne Robillard wrote:
>
> Why don't you simply put the javascripts into your base template without
> using Python ?
Why don't you simply put the javascripts into your base template without
using Python ?
Etienne
Le 2017-12-10 à 09:30, Marc R a écrit :
I have this in my model:
class Media:
js = (
*'/static/plugins/codemirror/lib/codemirror.js',*
'/static/plugins/codemirror/mode/htmlmixed/htmlmixed.
I have this in my model:
class Media:
js = (
* '/static/plugins/codemirror/lib/codemirror.js',*
'/static/plugins/codemirror/mode/htmlmixed/htmlmixed.js',
'/static/plugins/codemirror/addon/fold/foldcode.js',
'/static/plugins/codemirror/addon/fo
4 matches
Mail list logo