Created
July 26, 2017 15:11
-
-
Save nix010/6d11f3a248e4e67bf7d24f7ddc8348e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSTALLED_APPS = [ | |
'wpadmin', | |
'core.apps.CoreConfig', | |
'news.apps.NewsConfig', | |
'django.contrib.admin', | |
'django.contrib.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', | |
'django.contrib.messages', | |
'django.contrib.staticfiles', | |
'import_export', | |
'controlcenter', | |
'tinymce', | |
'django.contrib.humanize', | |
'constance', | |
] | |
CONSTANCE_CONFIG = { | |
'CREATED_DATE' : (10, 'Weight number of latest articles ',int), | |
'VIEW_COUNT' : (10, 'Weight number of view count',int), | |
'COMMENT_COUNT' : (10, 'Weight number of comment count',int), | |
'FOLLOWER_INTERACTON' : (10, 'Weight number of comment count',int), | |
'CATEGORY' : (10, 'Weight number of comment count',int), | |
'APPEARED_COUNT' : (10, 'Weight number of comment count',int), | |
} | |
CONSTANCE_CONFIG_FIELDSETS = { | |
'ARTICLES ORDER WEIGHT': ('CREATED_DATE', 'VIEW_COUNT','COMMENT_COUNT','FOLLOWER_INTERACTON','CATEGORY','APPEARED_COUNT'), | |
} | |
CONSTANCE_REDIS_CONNECTION = { | |
'host': 'localhost', | |
'port': 6379, | |
'db': 0, | |
} | |
MIDDLEWARE_CLASSES = [ | |
'django.middleware.security.SecurityMiddleware', | |
'django.contrib.sessions.middleware.SessionMiddleware', | |
'django.middleware.common.CommonMiddleware', | |
'django.middleware.csrf.CsrfViewMiddleware', | |
'django.contrib.auth.middleware.AuthenticationMiddleware', | |
'django.contrib.auth.middleware.SessionAuthenticationMiddleware', | |
'django.contrib.messages.middleware.MessageMiddleware', | |
'django.middleware.clickjacking.XFrameOptionsMiddleware', | |
// logging sql to console | |
'abesoc.middleware.SQLPrintingMiddleware', | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment