Skip to content

OS Error: 2 no such file or directory ~/<djangoproj>/static on adding django-toolbar app #691

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SAnegondhi opened this issue Feb 26, 2015 · 1 comment

Comments

@SAnegondhi
Copy link

#127.0.01:8000

Django Version: 1.7.3
Exception Type: OSError
Exception Value: [Errno 2] No such file or directory: '~/proj/lask/static'
Exception Location: ~/proj/env/local/lib/python2.7/site-packages/django/core/files/storage.py in listdir, line 270
Python Executable: ~/proj/env/bin/python
Python Version: 2.7.6


Settings:

DEBUG_TOOLBAR_PATCH_SETTINGS = False

INSTALLED_APPS = (
'authentication',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'debug_toolbar',
'lask',
'ui',
)


URLConf
if DEBUG:
import debug_toolbar
urlpatterns += patterns('',
url(r'^debug/', include(debug_toolbar.urls)),
)

If I set

DEBUG_TOOLBAR_PATCH_SETTINGS = True

The OS Error disappears but the debug tool bar does not come on.

If I uninstall toolbar then everything works fine,

@SAnegondhi
Copy link
Author

making an empty 'static; dir at the app directory level (BASE_DIR/static) solved the problem. Django still uses BASE_DIR//static directory properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant