I'm trying to install django debug toolbar to track ORM queries to the database. Got this erorr
WARNINGS:
?: (debug_toolbar.staticfiles.W001) debug_toolbar requires the STATICFILES_DIRS directories to exist.
HINT: Running manage.py collectstatic may help uncover the issue.
Decided to run python manage.py collectstatic and getting the error Here's the settings files.
settings.py
INSTALLED_APPS = [
#...
'django.contrib.staticfiles',
#..
'debug_toolbar',
]
MIDDLEWARE = [
#...
'debug_toolbar.middleware.DebugToolbarMiddleware',
]
# ...
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': str(os.path.join(BASE_DIR, "db.sqlite3")),
}
}
# ....
STATIC_URL='/static/'
STATICFILES_DIRS =[
os.path.join(BASE_DIR,'static').replace("\\", "/"),
]