programming:django
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| programming:django [2019/03/22 15:18] – clemix | programming:django [2019/04/24 16:22] (current) – [Static files] clemix | ||
|---|---|---|---|
| Line 133: | Line 133: | ||
| </ | </ | ||
| - | ==== Mixedin for django_tables2 ==== | + | Run this command to store static files in proper folder: |
| + | <code bash> | ||
| + | python manage.py collectstatic | ||
| + | </ | ||
| + | ==== django_tables2 ==== | ||
| + | === Mixedin | ||
| <code python> | <code python> | ||
| Line 153: | Line 158: | ||
| </ | </ | ||
| - | To make links of a value https:// | + | === Custom tables.Column === |
| - | + | ||
| - | ==== Custom tables.Column | + | |
| <code python> | <code python> | ||
| class AgeColumn(tables.Column): | class AgeColumn(tables.Column): | ||
| Line 176: | Line 179: | ||
| </ | </ | ||
| + | To make links of a value https:// | ||
| ==== Update database ==== | ==== Update database ==== | ||
| Change the model file accordingly. [[https:// | Change the model file accordingly. [[https:// | ||
| Line 182: | Line 186: | ||
| python manage.py migrate | python manage.py migrate | ||
| </ | </ | ||
| + | |||
| + | ==== Bootstrap ==== | ||
| + | https:// | ||
programming/django.1553264314.txt.gz · Last modified: by clemix
