7
I found what was the problem. Instead of /dev/log
my version of OS X has /var/run/syslog
. So:
if DEBUG or not os.path.exists('/dev/log'):
LOGGING['handlers']['syslog']['address'] = '/var/run/syslog'
0
Try to set DEFAULT_LOG in your settings.py
if DEBUG or not os.path.exists('/dev/log'):
DEFAULT_LOG = 'console'
else:
DEFAULT_LOG = 'syslog'
- [Django]-What's your favorite way to test the javascript in your djangoapp?
- [Django]-How can I limit http method to a Django REST api
- [Django]-Django DB Design – Maintaining common and historical data
- [Django]-Many to many relationship in django database model
- [Django]-Virtualenv, sys.path and site-packages
0
I have also seen this error when syslog service itself is not running.
Running sudo service syslog-ng start
for me solved the problem.
- [Django]-Django admin custom list view
- [Django]-Django-like frameworks?
- [Django]-Looking for read-write lock in Django using PostgreSQL, e.g., SELECT FOR SHARE
- [Django]-Django-pipeline throwing ValueError: the file could not be found
Source:stackexchange.com