Monday, September 21, 2020

static files

 managing static files:

https://docs.djangoproject.com/en/3.1/howto/static-files/


https://youtu.be/Tt3mgy2ECug

to move static files to another folder:

STATIC_URL = '/static/'

STATICFILES_DIRS=[

 os.path.join(BASE_DIR,'static')

]

STATIC_ROOT = os.path.join(BASE_DIR, 'assets')

No comments:

Post a Comment