mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
settings: minor cleanups
* Move import to the top * Adjust a few comments Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
c0d68848c7
commit
5db577b1c3
|
@ -3,6 +3,8 @@
|
||||||
# Based on settings.py from the Django project template
|
# Based on settings.py from the Django project template
|
||||||
# Copyright (c) Django Software Foundation and individual contributors.
|
# Copyright (c) Django Software Foundation and individual contributors.
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
|
|
||||||
ADMINS = (
|
ADMINS = (
|
||||||
|
@ -45,8 +47,7 @@ USE_I18N = True
|
||||||
# calendars according to the current locale
|
# calendars according to the current locale
|
||||||
USE_L10N = True
|
USE_L10N = True
|
||||||
|
|
||||||
# Avoid specific paths (added by paule)
|
# Avoid specific paths
|
||||||
import os
|
|
||||||
BASE_DIR = os.path.dirname(__file__)
|
BASE_DIR = os.path.dirname(__file__)
|
||||||
|
|
||||||
# Absolute filesystem path to the directory that will hold user-uploaded files.
|
# Absolute filesystem path to the directory that will hold user-uploaded files.
|
||||||
|
@ -143,7 +144,6 @@ INSTALLED_APPS = (
|
||||||
'django.contrib.sites',
|
'django.contrib.sites',
|
||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
# Uncomment the next line to enable the admin:
|
|
||||||
'django.contrib.admin',
|
'django.contrib.admin',
|
||||||
# Uncomment the next line to enable admin documentation:
|
# Uncomment the next line to enable admin documentation:
|
||||||
# 'django.contrib.admindocs',
|
# 'django.contrib.admindocs',
|
||||||
|
@ -187,6 +187,7 @@ LOGGING = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Set bootstrap alert CSS styles for each message level
|
||||||
from django.contrib.messages import constants as messages
|
from django.contrib.messages import constants as messages
|
||||||
MESSAGE_TAGS = {
|
MESSAGE_TAGS = {
|
||||||
messages.SUCCESS: 'alert-success',
|
messages.SUCCESS: 'alert-success',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user