embedded system,Arduino,Raspberry pi,ARM7,MM32,STM32,PIC and Python,Django,Datascience and web development
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