'I am getting a error of STATICFILE DIR in python
WARNINGS: ?: (staticfiles.W004) The directory 'E:\Python Practice\Django\userproject\static' in the STATICFILES_DIRS setting does not exist.
System check identified 1 issue (0 silenced).
Solution 1:[1]
You need to write static files directory to serve the static content in settings.py file as :
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
Hope it will work for you.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Rohit_VE |
