File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Provide basic libraries and resources like jQuery or semantic-ui in django appli
4
4
5
5
# Installation
6
6
7
- For the moment you can install the package with:
7
+ You can install the package with pip :
8
8
9
9
``` bash
10
10
pip install django-auto-static-libs
@@ -24,15 +24,15 @@ INSTALLED_APPS = (
24
24
25
25
# Usage
26
26
27
- In your templates add:
27
+ In your templates add depending on the library and how you named the folder :
28
28
``` html
29
29
{% load static %}
30
- <script src =" {% static 'latest_auto_static_libs/js/ jquery/jquery.min.js' %}" type =" text/javascript" ></script >
30
+ <script src =" {% static 'latest_auto_static_libs/jquery/jquery.min.js' %}" type =" text/javascript" ></script >
31
31
```
32
32
33
- You must run the downloading at the beginning (and to update again) :
33
+ You must run the downloading at the beginning (or to update). It will run automatically at migration :
34
34
``` python
35
- python manage.py static - libs - download
35
+ python manage.py migrate
36
36
# or as command
37
37
python manage.py static- libs- download
38
38
```
You can’t perform that action at this time.
0 commit comments