def read_pass(name):
fname = os.path.join(ROOT_DIR, 'private', name)
- with open(fname, 'r') as f:
- return f.readline().strip()
+ try:
+ with open(fname, 'r') as f:
+ return f.readline().strip()
+ except (OSError, IOError) as e:
+ print("Unable to read %s: %s" % (fname, e))
+ return ''
ADMINS = (
# ('Your Name', 'your_email@example.com'),
# Additional locations of static files
STATICFILES_DIRS = (
- os.path.join(ROOT_DIR, 'static'),
+ # os.path.join(ROOT_DIR, 'static'),
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.