N
N
Nikita2022-03-06 22:48:50
Django
Nikita, 2022-03-06 22:48:50

Can you please explain what is wrong with static files in Django 3?

Help to parse when starting the server, a WARNINGS error pops up:

?: (staticfiles.W004) The directory '/Users/noitra/Documents/Python/Project/web/static' in the STATICFILES_DIRS setting does not exist.

The settings.py file contains this:

STATIC_URL = '/static/'

STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static')
]

Either I'm wrong or the error is badly googled. Tell me what the error is connected with, I'm new to django, if it's not difficult, write in more detail

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question