2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-27 17:20:49 +00:00

Move static files into the app directory

- As it is written
- Look where properly reading the docs gets you!
- manage.py collectstatic now actually works...
This commit is contained in:
Oliver Walters
2019-07-11 23:47:46 +10:00
parent 07c95f2032
commit df6db38535
122 changed files with 3 additions and 1 deletions
InvenTree/InvenTree
settings.py
static
css
fonts
img
script

@ -213,8 +213,10 @@ USE_TZ = True
STATIC_URL = '/static/' STATIC_URL = '/static/'
STATIC_ROOT = CONFIG.get('static_root', os.path.join(BASE_DIR, 'static'))
STATICFILES_DIRS = [ STATICFILES_DIRS = [
CONFIG.get('static_root', os.path.join(BASE_DIR, 'static')), os.path.join(BASE_DIR, 'InvenTree', 'static'),
] ]
MEDIA_URL = '/media/' MEDIA_URL = '/media/'

Before

(image error) Size: 3.5 KiB

After

(image error) Size: 3.5 KiB

Before

Width: 16px  |  Height: 16px  |  Size: 1.1 KiB

After

Width: 16px  |  Height: 16px  |  Size: 1.1 KiB

Before

(image error) Size: 98 KiB

After

(image error) Size: 98 KiB

Some files were not shown because too many files have changed in this diff Show More