joel goldstick
joel goldstick

Reputation: 4493

django-debug-toolbar installation causes: No such file or directory: '/var/www/static'

I am trying to install django-debug toolbar. Using django 1.6.5 and toolbar 1.3.2

I did the pip install and added this line to my settings file INSTALLED_APPS:

...
django_toolbar,

Also in settings:

STATIC_URL = '/static/' 

Upvotes: 1

Views: 661

Answers (1)

rishi kant
rishi kant

Reputation: 1255

You should declare STATIC_ROOT and STATICFILES_DIRS in your setting file. Your setting file will look like

STATIC_ROOT = ' '

STATIC_URL = '/static/'

STATICFILES_DIRS = ( ('assets', '/home/...../...../static'), )

where '/home/...../...../static' is path of your static directory.

Upvotes: 6

Related Questions