mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 14:44:29 -04:00
Update settings.py
This commit is contained in:
parent
ae5c8f2bf8
commit
375ba9d135
1 changed files with 4 additions and 3 deletions
|
@ -19,7 +19,7 @@ from ..config import (
|
||||||
SQL_INDEX_FILENAME,
|
SQL_INDEX_FILENAME,
|
||||||
OUTPUT_DIR,
|
OUTPUT_DIR,
|
||||||
LOGS_DIR,
|
LOGS_DIR,
|
||||||
TIME_ZONE,
|
TIMEZONE,
|
||||||
)
|
)
|
||||||
|
|
||||||
IS_MIGRATING = 'makemigrations' in sys.argv[:3] or 'migrate' in sys.argv[:3]
|
IS_MIGRATING = 'makemigrations' in sys.argv[:3] or 'migrate' in sys.argv[:3]
|
||||||
|
@ -154,7 +154,7 @@ DATABASES = {
|
||||||
'timeout': 60,
|
'timeout': 60,
|
||||||
'check_same_thread': False,
|
'check_same_thread': False,
|
||||||
},
|
},
|
||||||
'TIME_ZONE': 'UTC',
|
'TIME_ZONE': TIMEZONE,
|
||||||
# DB setup is sometimes modified at runtime by setup_django() in config.py
|
# DB setup is sometimes modified at runtime by setup_django() in config.py
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -224,7 +224,8 @@ USE_L10N = True
|
||||||
USE_TZ = True
|
USE_TZ = True
|
||||||
DATETIME_FORMAT = 'Y-m-d g:iA'
|
DATETIME_FORMAT = 'Y-m-d g:iA'
|
||||||
SHORT_DATETIME_FORMAT = 'Y-m-d h:iA'
|
SHORT_DATETIME_FORMAT = 'Y-m-d h:iA'
|
||||||
TIME_ZONE = TIME_ZONE # noqa
|
TIME_ZONE = TIMEZONE # django convention is TIME_ZONE, archivebox config uses TIMEZONE, they are equivalent
|
||||||
|
|
||||||
|
|
||||||
from django.conf.locale.en import formats as en_formats
|
from django.conf.locale.en import formats as en_formats
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue