V
V
Vladimir Rodkin2014-11-10 17:04:50
Django
Vladimir Rodkin, 2014-11-10 17:04:50

How to package a pluggable Django application?

I am writing a Django application that can be connected to my project. It is displayed on the page in a separate interactive form.
There are no questions about the backend.
And in the front end, the application has dependencies in terms of styles and scripts: CSS
requires packages: The form is programmed by a JavaScript application that has dependencies:
"bootstrap": "~3.3.0"

"jquery": "~2.1.1",
"jquery.cookie": "~1.4.1",
"jquery-validation": "~1.13.1"

Styles are written in the preprocessor and are built by Gulp in Scripts are written by AMD modules and are built by r.js ( also Gulp ) in How to package this application? If you include in the package build all the styles and scripts that the application depends on, it will turn out that users will be given a lot of extra code. Indeed, in the project in which my application will be used, these modules (jquery, bootstrap ...) may already be connected. Or if only styles and application scripts are included in the package, then you need to somehow explain how to install dependencies, since Django itself will not install these packages through Bower , will not connect them properly and will not build them. built/style.css
built/script.js

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question