Wednesday, March 4, 2020

Static files adding in django

in setting.py file add this lines STATICFILES_DIRS = [ OS.path.join(BASE_DIR,'static') ] STATIC_ROOT = os.path.join(BASE_DIR,'assets') create "static" foldername first then give the command in python manage.py collectstatic

No comments:

Post a Comment

python class topic video