System check identified some issues:
WARNINGS
?: (staticfiles.W004) The directory '/static/' in the STATICFILES_DIRS setting does not exist.
How should I solve this issue?
Thanks in advance.
So What you need to do here to make it easier for you is to navigate to the location where you have your project created and create a FOLDER called "static".
Dont try to do it for your IDE editor as you might end up getting confused. I am assuming you are trying to link up files such as CSS to your django project. do this and your problem is solved.
Also, remember to load your static statement at the header of your html page.
As an example:
{% load static %}
It just says that you create STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
in your settings.py but you didn't have any static folder in your project.
It is not a big issue right now because you might not be using external css or js. But if you want to solve the issue, you can just create a static
folder in your project.
I know that this is late but I hope this helps because I also faced the same warning just right now but get rid of it.
Related Query
ERROR: CANT_REREAD: The directory named as part of the path /home/app/logs/celery.log does not exist
The directory '/static/' in the STATICFILES_DIRS setting does not exist. (Visual Studio)
How do I get the object if it exists, or None if it does not exist in Django?
Aptana Configuration : The interpreter configured does not exist in the filesystem
ERROR: pull access denied for postgress, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
"ProgrammingError: column "genre_id" of relation "music_album" does not exist" while the column does exist
NGINX does not serve the collected static files
The symbolic link /env/.Python targets a file which does not exist within your site's repository
Python PIP : package directory does not exist
Static file "debug_toolbar/css/print.css" does not exist when starting Kiwi Tcms
Setting the variable 'db_table' does not include the app prefix to table names
Django renders a template that does not exist in specified directory
The CSV script in Django does not see the path of the file - [Errno 2] No such file or directory
I tried updating django_site row to change the name but I have gotten ERROR: column "alt native" does not exist
Django: after I render a template from a view with dynamic data the template stays static and does not change when data is added to the database
Elastic Beanstalk does not load the Django admin static files
Django django.db.utils.ProgrammingError. The relation <<Pages_account>> does not exist
Why does DEBUG=False setting make my django Static Files Access fail?
Django error - matching query does not exist
Django: ImproperlyConfigured: The SECRET_KEY setting must not be empty
What is the difference between {% load staticfiles %} and {% load static %}
Cannot apply DjangoModelPermissions on a view that does not have `.queryset` property or overrides the `.get_queryset()` method
matching query does not exist Error in Django
django's timezone.now does not show the right time
Getting Site Matching Query Does Not Exist Error after creating django admin
Django column "name" of relation "django_content_type" does not exist
Django: SocialApp matching query does not exist
Why does django ORM's `save` method not return the saved object?
PyCharm can't find the right paths if I open a directory that is not the Django root
ProgrammingError: relation "django_session" does not exist error after installing Psycopg2
More Query from same tag
Django : Fetch API redirects to wrong URL
Is it possible to disable django related_name for a specific field?
NoReverseMatch at/ something wrong with url with slug
Django QuerySet .count() is 0 and .exists() is false, even though there's an object in the QuerySet (Django Rest Framework)
Redirect django 3.0 with parameters
Django admin runs query multiple times
Testing Python Decorators?
Django prefetch_related query not working as required, troubleshooting needed
Django cant load static files
How to check Django version
Options for maintaining MySQL databases for a django development team
DRF/Multi-tenant - How to specify tenant host (domain) in unit tests?
Django ImportError No module named 'catalog.context_processors'
How to fetch a matching record from an array in python?
How do I require an inline in the Django Admin?
new line (\n) is appending in between file path strings while I trying to read the file path location through argparse
Scrapy - What to do when no downloadable file is found?
Seaborn axis y values
How to read large sas file with pandas and export to parquet using multiprocessing?
Unban a user in a specific discord server (python)
How to add custom commands/programs to run from windows File Explorer?
How do I make an input() detect if the user input is something other than a string?