· 5 years ago · Feb 13, 2020, 02:14 PM
1ResponseError at /api/v2/kout/koutprofile/89/.json Error running script (call to f_048fa48d9e6abac5a5684569a248f41b3e5384f6): @user_script:9: @user_script: 9: -MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error. Request Method: GET Request URL: http://api-staging.diwaniyalabs.com/api/v2/kout/koutprofile/89/.json?version=6.14 Django Version: 1.10.8 Python Executable: /home/ubuntu/.virtualenvs/dlap/bin/python Python Version: 2.7.6 Python Path: [u'/home/ubuntu/webapps/dlap/plugins', u'/home/ubuntu/webapps/dlap/apps', '/home/ubuntu/webapps/dlap', '/home/ubuntu/.virtualenvs/dlap/bin', '/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/newrelic/bootstrap', '/home/ubuntu/.virtualenvs/dlap/lib/python2.7', '/home/ubuntu/.virtualenvs/dlap/lib/python2.7/plat-x86_64-linux-gnu', '/home/ubuntu/.virtualenvs/dlap/lib/python2.7/lib-tk', '/home/ubuntu/.virtualenvs/dlap/lib/python2.7/lib-old', '/home/ubuntu/.virtualenvs/dlap/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages'] Server time: Thu, 13 Feb 2020 17:10:15 +0300 Installed Applications: (u'django.contrib.auth', u'django.contrib.contenttypes', u'django.contrib.sessions', u'django.contrib.sites', u'django.contrib.messages', u'django.contrib.staticfiles', u'django.contrib.admindocs', u'suit', u'django.contrib.admin.apps.SimpleAdminConfig', u'storages', u'rest_framework', u'mptt', u'reversion', u'djcelery', u'modeltranslation', u'social.apps.django_app.default', u'constance', u'django_extensions', u'debug_toolbar', u'redis_cache', u'corsheaders', u'cacheops', u'django_filters', u'extras', u'account', u'ad', u'balot', u'trix', u'kout', u'sibeeta', u'rank', u'discussion', u'store', u'inbox', u'guard', u'flatpage', u'django_object_actions', u'tap') Installed Middleware: (u'django.contrib.sessions.middleware.SessionMiddleware', u'django.middleware.locale.LocaleMiddleware', u'apps.extras.middleware.DlapCorsMiddleware', u'django.middleware.common.CommonMiddleware', u'django.middleware.csrf.CsrfViewMiddleware', u'django.contrib.auth.middleware.AuthenticationMiddleware', u'django.contrib.messages.middleware.MessageMiddleware', u'django.middleware.clickjacking.XFrameOptionsMiddleware', u'debug_toolbar.middleware.DebugToolbarMiddleware', u'account.middleware.AccountSocialAuthExceptionMiddleware', u'account.middleware.AccountLastSeenMiddleware', u'extras.middleware.APILogMiddleware') Traceback: File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner 42. response = get_response(request) File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _legacy_get_response 249. response = self._get_response(request) File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response 187. response = self.process_exception_by_middleware(e, request) File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response 185. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/django/views/decorators/csrf.py" in wrapped_view 58. return view_func(*args, **kwargs) File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/rest_framework/viewsets.py" in view 90. return self.dispatch(request, *args, **kwargs) File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/rest_framework/views.py" in dispatch 489. response = self.handle_exception(exc) File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/rest_framework/views.py" in handle_exception 449. self.raise_uncaught_exception(exc) File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/rest_framework/views.py" in dispatch 486. response = handler(request, *args, **kwargs) File "/home/ubuntu/webapps/dlap/apps/extras/utils.py" in retrieve 79. instance = self.get_object() File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/rest_framework/generics.py" in get_object 98. obj = get_object_or_404(queryset, **filter_kwargs) File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/rest_framework/generics.py" in get_object_or_404 21. return _get_object_or_404(queryset, *filter_args, **filter_kwargs) File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/django/shortcuts.py" in get_object_or_404 85. return queryset.get(*args, **kwargs) File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/cacheops/query.py" in get 354. return qs._no_monkey.get(qs, *args, **kwargs) File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/django/db/models/query.py" in get 379. num = len(clone) File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/django/db/models/query.py" in __len__ 238. self._fetch_all() File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/cacheops/query.py" in _fetch_all 291. self._cache_results(cache_key, self._result_cache) File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/cacheops/query.py" in _cache_results 180. self._cond_dnfs, self._cacheprofile['timeout'], dbs=[self.db]) File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/cacheops/query.py" in cache_thing 46. timeout File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/redis/client.py" in __call__ 2694. return client.evalsha(self.sha, len(keys), *args) File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/redis/client.py" in evalsha 1944. return self.execute_command('EVALSHA', sha, numkeys, *keys_and_args) File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/redis/client.py" in execute_command 573. return self.parse_response(connection, command_name, **options) File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/redis/client.py" in parse_response 585. response = connection.read_response() File "/home/ubuntu/.virtualenvs/dlap/local/lib/python2.7/site-packages/redis/connection.py" in read_response 582. raise response Exception Type: ResponseError at /api/v2/kout/koutprofile/89/.json Exception Value: Error running script (call to f_048fa48d9e6abac5a5684569a248f41b3e5384f6): @user_script:9: @user_script: 9: -MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error. Request information: USER: admin GET: version = u'6.14' POST: No POST data FILES: No FILES data COOKIES: csrftoken = 'r4hfUfzacxIbKQuQLzsaZuXupJXcGzeUjZ2Kmtrlgi4SbrljY7ToZuaL1xA3fcTi' sessionid = 'qk2rzd3z2tz8y6jdtsytxdzbwy35vvms' _ga = 'GA1.2.818325307.1551697868' djdt = 'hide' META: CSRF_COOKIE = 'r4hfUfzacxIbKQuQLzsaZuXupJXcGzeUjZ2Kmtrlgi4SbrljY7ToZuaL1xA3fcTi' HTTP_ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' HTTP_ACCEPT_ENCODING = 'gzip, deflate' HTTP_ACCEPT_LANGUAGE = 'en-US,en;q=0.9' HTTP_CONNECTION = 'close' HTTP_COOKIE = '_ga=GA1.2.818325307.1551697868; csrftoken=r4hfUfzacxIbKQuQLzsaZuXupJXcGzeUjZ2Kmtrlgi4SbrljY7ToZuaL1xA3fcTi; sessionid=qk2rzd3z2tz8y6jdtsytxdzbwy35vvms; djdt=hide' HTTP_HOST = 'api-staging.diwaniyalabs.com' HTTP_UPGRADE_INSECURE_REQUESTS = '1' HTTP_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36' HTTP_X_FORWARDED_FOR = '37.37.16.101, 10.141.1.49' HTTP_X_FORWARDED_PORT = '80' HTTP_X_FORWARDED_PROTO = 'http' PATH_INFO = u'/api/v2/kout/koutprofile/89/.json' QUERY_STRING = 'version=6.14' RAW_URI = '/api/v2/kout/koutprofile/89/.json?version=6.14' REMOTE_ADDR = '10.141.1.49' REMOTE_PORT = '80' REQUEST_METHOD = 'GET' SCRIPT_NAME = u'' SERVER_NAME = 'api-staging.diwaniyalabs.com' SERVER_PORT = '80' SERVER_PROTOCOL = 'HTTP/1.0' SERVER_SOFTWARE = 'gunicorn/18.0' gunicorn.socket = wsgi.errors = ', mode 'w' at 0x7fc0d50381e0> wsgi.file_wrapper = '' wsgi.input = wsgi.multiprocess = True wsgi.multithread = False wsgi.run_once = False wsgi.url_scheme = 'http' wsgi.version = Settings: Using settings module settings.sites.api ABSOLUTE_URL_OVERRIDES = {} ACTIVATION_CODE_KEY = u'********************' ADMINS = ALLOWED_HOSTS = [u'*'] APPEND_SLASH = True APPS = AUTHENTICATION_BACKENDS = AUTH_PASSWORD_VALIDATORS = u'********************' AUTH_USER_MODEL = u'account.User' AWS_ACCESS_KEY_ID = u'********************' AWS_SECRET_ACCESS_KEY = u'********************' BASE_DIR = '/home/ubuntu/webapps/dlap' CACHEOPS = {'sibeeta.level': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count', 'exists')}, 'sibeeta.ranksetup': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'kout.ranksetup': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'kout.koutseasonleaderboard': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'store.store': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.sibeetaproduct': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'kout.koutdiwaniyaseasonleaderboard': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'kout.level': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count', 'exists')}, 'sibeeta.package': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'store.package': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'inbox.messagetype': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.sibeetaprofile': {'db_agnostic': True, 'timeout': 3600, 'ops': ('get', 'count')}, 'kout.venue': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.ranksetupversion': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.minigame': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.diwaniyaranksetup': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'kout.setmission': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.diwaniyamember': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.gemtocoin': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'kout.challenge': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'store.producttype': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'extras.gameserver': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.challenge': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'kout.levelbracket': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'kout.minigame': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'kout.diwaniyamember': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.diwaniya': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'auth.permission': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'account.friend': {'timeout': 3600, 'ops': ('get', 'count')}, 'sibeeta.sibeetadiwaniyaseasonleaderboard': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.season': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'kout.mission': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.venue': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'kout.gemtocoin': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.diwaniyarole': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'kout.userset': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'kout.settype': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'kout.koutproduct': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'kout.usermission': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'kout.koutprofile': {'db_agnostic': True, 'timeout': 3600, 'ops': ('get', 'count')}, 'kout.season': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.diwaniyamessagetype': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'account.token': u'********************', 'kout.diwaniyaproduct': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'guard.punishmenthistory': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.diwaniyarolepermission': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'kout.diwaniyaranksetup': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.diwaniyamessage': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.sibeetaseasonleaderboard': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.levelbracket': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'auth.group': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.userset': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.setmission': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'kout.diwaniyamessage': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'kout.set': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'inbox.message': {'timeout': 3600, 'ops': ('get', 'count')}, 'kout.koutchallenge': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.mission': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.seasonreward': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.settype': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'account.user': {'timeout': 3600, 'ops': ('get', 'count')}, 'kout.ranksetupversion': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'kout.package': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'kout.diwaniyamessagetype': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'extras.device': {'timeout': 3600, 'ops': ('get', 'count')}, 'guard.punishment': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'kout.diwaniya': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'account.blacklist': {'timeout': 3600, 'ops': ('get', 'count')}, 'sibeeta.set': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.usermission': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.sibeetachallenge': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'kout.diwaniyarole': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'sibeeta.diwaniyaproduct': {'timeout': 3600, 'ops': ('fetch', 'get', 'count')}, 'kout.diwaniyarolepermission': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'account.userdevice': {'timeout': 3600, 'ops': ('get', 'count')}, 'guard.reporttype': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}, 'kout.seasonreward': {'timeout': 2592000, 'ops': ('fetch', 'get', 'count')}} CACHEOPS_REDIS = {u'socket_timeout': 3, u'host': u'localhost', u'db': 3, u'port': 6379} CACHES = {u'default': {u'BACKEND': u'redis_cache.cache.RedisCache', u'OPTIONS': {u'DB': 1, u'CLIENT_CLASS': u'redis_cache.client.DefaultClient', u'SOCKET_TIMEOUT': 10}, u'LOCATION': u'redis://127.0.0.1:6379:1'}} CACHE_MIDDLEWARE_ALIAS = u'default' CACHE_MIDDLEWARE_KEY_PREFIX = u'********************' CACHE_MIDDLEWARE_SECONDS = 600 CONSTANCE_BACKEND = u'constance.backends.redisd.RedisBackend' CONSTANCE_CONFIG = {'SIBEETA_DIWANIYA_REQUEST_LIMIT': (20, 'Max amount of request a diwaniya is allowed to have'), 'BALOT_MAX_REPORT': (1, 'Max limit on the number of times a user can report another if no punishment was applied yet'), 'TRIX_MAX_REPORT': (1, 'Max limit on the number of times a user can report another if no punishment was applied yet'), 'KOUT_SETUP_VERSION_REPORT_TYPES': (0, 'current version of kout report types'), 'VIDEO_REWARD_AMOUNT': (50, 'video Reward Amount'), 'SIBEETA_DIWANIYA_PLAYER_INVITE_LIMIT': (20, 'Max amount of invites a player is allowed to have'), 'MAX_XP_TRIX': (799334, 'TrixProfile.xp Maximum value'), 'KOUT_SETUP_VERSION_SEASONS': (69, 'current version of kout seasons'), 'KOUT_SETUP_VERSION_RANKS': (564, 'current version of kout ranks'), 'KOUT_SETUP_VERSION_VENUES': (72, 'current version of kout venues'), 'DAILY_REWARD_AMOUNT': (250, 'daily Reward Amount'), 'KOUT_SETUP_VERSION_LEVELS': (62, 'current version of kout levels'), 'SIBEETA_SETUP_VERSION_VENUES': (0, 'current version of sibeeta venues'), 'SIBEETA_DIRECT_PAYMENT': (False, 'Target should claim payment when purchasing for other users if this is set to False'), 'VOICE': (8, 'KoutProfile.voice default value'), 'TRIX_DAILY_MAX_REPORT': (1, 'Max limit on the number of reports a user can submit in a day'), 'SIBEETA_DIWANIYA_PLAYER_LIMIT': (20, 'Max amount of players allowed in a Diwaniya'), 'BALANCE_COINS_SIBEETA': (100, 'SibeetaProfile.balance_coins default value'), 'SIBEETA_MISSION_AUTO_COLLECT_REWARD': (False, 'Auto collect the rewards of sets missions'), 'SIBEETA_DAILY_REWARD_AMOUNT': (200, 'Trix daily Reward Amount'), 'VIDEO_REWARD_WAITING_MINUTES': (60, 'video Reward WaitIn Minutes'), 'SIBEETA_SETUP_VERSION_PACKAGES': (0, 'current version of sibeeta packages'), 'DAILY_REWARD_WAITING_HOURS': (24, 'daily Reward WaitIn Hours'), 'INTERSTITIAL_AD_NETWORKS_IOS': ('[0]', 'Interstitial Ad Networks (iOS)'), 'MAX_XP': (24323961, 'KoutProfile.xp Maximum value'), 'SIBEETA_DIWANIYA_DISCOVER_LIMIT': (20, 'The number of Diwaniya(s) to return in the discover API'), 'SIBEETA_SETUP_VERSION_DIWANIYA_ROLES': (0, 'current version of sibeeta diwaniya roles'), 'INTERSTITIAL_AD_NETWORKS_ANDROID': ('[0]', 'Interstitial Ad Networks (Android)'), 'KOUT_SETUP_VERSION_PRODUCTS': (101, 'current version of kout products'), 'DAILY_REWARD_WAITING_HOURS_TRIX': (24, 'Trix daily Reward WaitIn Hours'), 'VIDEO_AD_NETWORKS_ANDROID': ('[1, 0, 2]', 'Video Ad Networks (Android)'), 'VOICE_SIBEETA': (8, 'SibeetaProfile.voice default value'), 'KOUT_MAX_REPORT': (1, 'Max limit on the number of times a user can report another if no punishment was applied yet'), 'KOUT_SETUP_VERSION_DIWANIYA_ROLES': (20, 'current version of kout diwaniya roles'), 'KOUT_DIRECT_PAYMENT': (False, 'Target should claim payment when purchasing for other users if this is set to False'), 'DIWANIYA_PLAYER_LIMIT': (20, 'Max amount of players allowed in a Diwaniya'), 'BALOT_DIRECT_PAYMENT': (True, 'Target should claim payment when purchasing for other users if this is set to False'), 'SIBEETA_DIWANIYA_COST': (30, 'Amount of gems to create a Diwaniya'), 'KOUT_SETUP_VERSION_DIWANIYA_MESSAGE_TYPES': (11, 'current version of kout diwaniya message types'), 'DIWANIYA_DISCOVER_LIMIT': (20, 'The number of Diwaniya(s) to return in the discover API'), 'SIBEETA_MAX_REPORT': (1, 'Max limit on the number of times a user can report another if no punishment was applied yet'), 'DIWANIYA_PLAYER_REQUEST_LIMIT': (1, 'Max amount of request a player is allowed to have'), 'VIDEO_AD_NETWORKS_IOS': ('[1, 0, 2]', 'Video Ad Networks (iOS)'), 'SIBEETA_DAILY_MAX_REPORT': (5, 'Max limit on the number of reports a user can submit in a day'), 'DIWANIYA_REQUEST_LIMIT': (20, 'Max amount of request a diwaniya is allowed to have'), 'KOUT_MISSION_SET_COST_IN_GEMS': (10, 'Cost in gems of generating a new set selection'), 'SIBEETA_VIDEO_REWARD_AMOUNT': (50, 'video Reward Amount'), 'DIWANIYA_COST': (30, 'Amount of gems to create a Diwaniya'), 'COUNTDOWN': (60, 'Number of seconds before to check for bounced emails'), 'DAILY_REWARD_AMOUNT_TRIX': (200, 'Trix daily Reward Amount'), 'KOUT_SETUP_VERSION_CHALLENGES': (0, 'current version of kout challenges'), 'SIBEETA_MAX_XP': (799334, 'SibeetaProfile.xp Maximum value'), 'BALANCE_COINS': (120, 'KoutProfile.balance_coins default value'), 'BALOT_BALANCE_COINS': (100, 'BalotProfile.balance_coins default value'), 'KOUT_SETUP_VERSION_PACKAGES': (9, 'current version of kout packages'), 'DAILY_REWARD_AMOUNT_BALOT': (200, 'Balot daily Reward Amount'), 'TRIX_DIRECT_PAYMENT': (False, 'Target should claim payment when purchasing for other users if this is set to False'), 'TRIX_BALANCE_COINS': (100, 'TrixProfile.balance_coins default value'), 'SIBEETA_SETUP_VERSION_PRODUCTS': (0, 'current version of sibeeta products'), 'KOUT_SETUP_VERSION_GEM_TO_COIN': (5, 'current version of kout gem to coin conversions'), 'SIBEETA_SETUP_VERSION_SEASONS': (0, 'current version of sibeeta seasons'), 'KOUT_SETUP_VERSION_MINI_GAMES': (0, 'current version of kout mini games'), 'SIBEETA_SETUP_VERSION_CHALLENGES': (0, 'current version of sibeeta challenges'), 'SIBEETA_DAILY_REWARD_WAITING_HOURS': (24, 'Trix daily Reward WaitIn Hours'), 'SIBEETA_SETUP_VERSION_GEM_TO_COIN': (0, 'current version of sibeeta gem to coin conversions'), 'DIWANIYA_PLAYER_INVITE_LIMIT': (20, 'Max amount of invites a player is allowed to have'), 'BALOT_DAILY_MAX_REPORT': (1, 'Max limit on the number of reports a user can submit in a day'), 'SIBEETA_VIDEO_REWARD_WAITING_MINUTES': (60, 'video Reward WaitIn Minutes'), 'SIBEETA_DIWANIYA_PLAYER_REQUEST_LIMIT': (1, 'Max amount of request a player is allowed to have'), 'SIBEETA_SETUP_VERSION_REPORT_TYPES': (0, 'current version of sibeeta report types'), 'SIBEETA_SETUP_VERSION_DIWANIYA_MESSAGE_TYPES': (0, 'current version of sibeeta diwaniya message types'), 'KOUT_DAILY_MAX_REPORT': (5, 'Max limit on the number of reports a user can submit in a day'), 'AVATAR': (0, 'KoutProfile.avatar default value'), 'SIBEETA_MISSION_SET_COST_IN_GEMS': (10, 'Cost in gems of generating a new set selection'), 'MAX_XP_BALOT': (293761, 'BalotProfile.xp Maximum value'), 'SIBEETA_SETUP_VERSION_RANKS': (0, 'current version of sibeeta ranks'), 'SIBEETA_SETUP_VERSION_LEVELS': (0, 'current version of sibeeta levels'), 'KOUT_MISSION_AUTO_COLLECT_REWARD': (False, 'Auto collect the rewards of sets missions'), 'DAILY_REWARD_WAITING_HOURS_BALOT': (24, 'Balot daily Reward WaitIn Hours'), 'TRIX_MISSIONS_SET': (3, 'Number of missions that are assigned to a user')} CONSTANCE_CONFIG_FIELDSETS = {'Trix Settings': ('DAILY_REWARD_AMOUNT_TRIX', 'DAILY_REWARD_WAITING_HOURS_TRIX', 'MAX_XP_TRIX', 'TRIX_BALANCE_COINS', 'TRIX_DIRECT_PAYMENT', 'TRIX_DAILY_MAX_REPORT', 'TRIX_MAX_REPORT', 'TRIX_MISSIONS_SET'), 'Kout Caching Settings': ('KOUT_SETUP_VERSION_CHALLENGES', 'KOUT_SETUP_VERSION_MINI_GAMES', 'KOUT_SETUP_VERSION_VENUES', 'KOUT_SETUP_VERSION_DIWANIYA_ROLES', 'KOUT_SETUP_VERSION_DIWANIYA_MESSAGE_TYPES', 'KOUT_SETUP_VERSION_PACKAGES', 'KOUT_SETUP_VERSION_PRODUCTS', 'KOUT_SETUP_VERSION_RANKS', 'KOUT_SETUP_VERSION_LEVELS', 'KOUT_SETUP_VERSION_SEASONS', 'KOUT_SETUP_VERSION_REPORT_TYPES', 'KOUT_SETUP_VERSION_GEM_TO_COIN'), 'General Settings': ('COUNTDOWN', 'VIDEO_AD_NETWORKS_IOS', 'VIDEO_AD_NETWORKS_ANDROID', 'VIDEO_REWARD_WAITING_MINUTES', 'VIDEO_REWARD_AMOUNT', 'INTERSTITIAL_AD_NETWORKS_IOS', 'INTERSTITIAL_AD_NETWORKS_ANDROID'), 'Sibeeta Settings': ('BALANCE_COINS_SIBEETA', 'VOICE_SIBEETA', 'SIBEETA_MAX_XP', 'SIBEETA_DAILY_REWARD_AMOUNT', 'SIBEETA_DAILY_REWARD_WAITING_HOURS', 'SIBEETA_VIDEO_REWARD_AMOUNT', 'SIBEETA_VIDEO_REWARD_WAITING_MINUTES', 'SIBEETA_DIWANIYA_COST', 'SIBEETA_DIWANIYA_PLAYER_LIMIT', 'SIBEETA_DIWANIYA_PLAYER_INVITE_LIMIT', 'SIBEETA_DIWANIYA_PLAYER_REQUEST_LIMIT', 'SIBEETA_DIWANIYA_REQUEST_LIMIT', 'SIBEETA_DIWANIYA_DISCOVER_LIMIT', 'SIBEETA_DIRECT_PAYMENT', 'SIBEETA_DAILY_MAX_REPORT', 'SIBEETA_MAX_REPORT', 'SIBEETA_MISSION_SET_COST_IN_GEMS', 'SIBEETA_MISSION_AUTO_COLLECT_REWARD'), 'Sibeeta Caching Settings': ('SIBEETA_SETUP_VERSION_CHALLENGES', 'SIBEETA_SETUP_VERSION_VENUES', 'SIBEETA_SETUP_VERSION_DIWANIYA_ROLES', 'SIBEETA_SETUP_VERSION_DIWANIYA_MESSAGE_TYPES', 'SIBEETA_SETUP_VERSION_PACKAGES', 'SIBEETA_SETUP_VERSION_PRODUCTS', 'SIBEETA_SETUP_VERSION_RANKS', 'SIBEETA_SETUP_VERSION_LEVELS', 'SIBEETA_SETUP_VERSION_SEASONS', 'SIBEETA_SETUP_VERSION_REPORT_TYPES', 'SIBEETA_SETUP_VERSION_GEM_TO_COIN'), 'Kout Settings': ('AVATAR', 'BALANCE_COINS', 'DAILY_REWARD_WAITING_HOURS', 'DAILY_REWARD_AMOUNT', 'MAX_XP', 'VOICE', 'KOUT_DIRECT_PAYMENT', 'KOUT_DAILY_MAX_REPORT', 'KOUT_MAX_REPORT', 'DIWANIYA_COST', 'DIWANIYA_PLAYER_LIMIT', 'DIWANIYA_PLAYER_INVITE_LIMIT', 'DIWANIYA_PLAYER_REQUEST_LIMIT', 'DIWANIYA_REQUEST_LIMIT', 'DIWANIYA_DISCOVER_LIMIT', 'KOUT_MISSION_SET_COST_IN_GEMS', 'KOUT_MISSION_AUTO_COLLECT_REWARD'), 'Balot Settings': ('DAILY_REWARD_AMOUNT_BALOT', 'DAILY_REWARD_WAITING_HOURS_BALOT', 'MAX_XP_BALOT', 'BALOT_BALANCE_COINS', 'BALOT_DIRECT_PAYMENT', 'BALOT_DAILY_MAX_REPORT', 'BALOT_MAX_REPORT')} CONSTANCE_REDIS_CONNECTION = u'redis://localhost:6379/0' CORS_ALLOW_CREDENTIALS = True CORS_ALLOW_HEADERS = CORS_ALLOW_METHODS = CORS_ALLOW_ORIGIN = u'*' CORS_ORIGIN_ALLOW_ALL = True CORS_ORIGIN_WHITELIST = CSRF_COOKIE_AGE = 31449600 CSRF_COOKIE_DOMAIN = None CSRF_COOKIE_HTTPONLY = False CSRF_COOKIE_NAME = u'csrftoken' CSRF_COOKIE_PATH = u'/' CSRF_COOKIE_SECURE = False CSRF_FAILURE_VIEW = u'django.views.csrf.csrf_failure' CSRF_HEADER_NAME = u'HTTP_X_CSRFTOKEN' CSRF_TRUSTED_ORIGINS = [] DATABASES = {u'default': {u'ENGINE': u'django.db.backends.postgresql_psycopg2', 'AUTOCOMMIT': True, 'ATOMIC_REQUESTS': False, u'NAME': u'dlap', 'CONN_MAX_AGE': 0, 'TIME_ZONE': None, u'PORT': u'5432', u'HOST': u'stage-dlap-rds.cypujmmjpinm.us-east-1.rds.amazonaws.com', u'USER': u'dlapuser', 'TEST': {'COLLATION': None, 'CHARSET': None, 'NAME': None, 'MIRROR': None}, u'PASSWORD': u'********************', 'OPTIONS': {}}} DATABASE_ROUTERS = [u'extras.routers.DefaultMasterRouter'] DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440 DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000 DATETIME_FORMAT = u'N j, Y, P' DATETIME_INPUT_FORMATS = [u'%Y-%m-%d %H:%M:%S', u'%Y-%m-%d %H:%M:%S.%f', u'%Y-%m-%d %H:%M', u'%Y-%m-%d', u'%m/%d/%Y %H:%M:%S', u'%m/%d/%Y %H:%M:%S.%f', u'%m/%d/%Y %H:%M', u'%m/%d/%Y', u'%m/%d/%y %H:%M:%S', u'%m/%d/%y %H:%M:%S.%f', u'%m/%d/%y %H:%M', u'%m/%d/%y'] DATE_FORMAT = u'N j, Y' DATE_INPUT_FORMATS = [u'%Y-%m-%d', u'%m/%d/%Y', u'%m/%d/%y', u'%b %d %Y', u'%b %d, %Y', u'%d %b %Y', u'%d %b, %Y', u'%B %d %Y', u'%B %d, %Y', u'%d %B %Y', u'%d %B, %Y'] DB_READ_ONLY_USER = u'readonly_dlapuser' DEBUG = True DEBUG_PROPAGATE_EXCEPTIONS = False DEBUG_TOOLBAR_PATCH_SETTINGS = False DECIMAL_SEPARATOR = u'.' DEFAULT_CHARSET = u'utf-8' DEFAULT_CONTENT_TYPE = u'text/html' DEFAULT_EXCEPTION_REPORTER_FILTER = u'django.views.debug.SafeExceptionReporterFilter' DEFAULT_FILE_STORAGE = u'extras.storage.S3MediaBucket' DEFAULT_FROM_EMAIL = u'Diwaniya Labs ' DEFAULT_INDEX_TABLESPACE = u'' DEFAULT_TABLESPACE = u'' DISALLOWED_USER_AGENTS = [] DJANGO_REDIS_IGNORE_EXCEPTIONS = True EMAIL_BACKEND = u'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = u'smtp.sendgrid.net' EMAIL_HOST_PASSWORD = u'********************' EMAIL_HOST_USER = u'diwaniyalabs' EMAIL_PORT = 587 EMAIL_SSL_CERTFILE = None EMAIL_SSL_KEYFILE = u'********************' EMAIL_SUBJECT_PREFIX = u'[Django] ' EMAIL_TIMEOUT = None EMAIL_USE_SSL = False EMAIL_USE_TLS = False ENVIRONMENT = u'S' FILE_CHARSET = u'utf-8' FILE_UPLOAD_DIRECTORY_PERMISSIONS = None FILE_UPLOAD_HANDLERS = [u'django.core.files.uploadhandler.MemoryFileUploadHandler', u'django.core.files.uploadhandler.TemporaryFileUploadHandler'] FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440 FILE_UPLOAD_PERMISSIONS = None FILE_UPLOAD_TEMP_DIR = None FIRST_DAY_OF_WEEK = 0 FIXTURE_DIRS = [] FORCE_SCRIPT_NAME = None FORMAT_MODULE_PATH = None GAME_SERVER_PASSWD = u'********************' GAME_SERVER_USERNAME = u'gamesrv' GEOIP_PATH = u'/home/ubuntu/webapps/dlap/settings/geoip/' GUEST_PASSWORD_APPEND_KEY = u'********************' IGNORABLE_404_URLS = [] INSTALLED_APPS = INTERNAL_IPS = [] KNET_HOST = u'www.knetpaytest.com.kw' LANGUAGES = LANGUAGES_BIDI = [u'he', u'ar', u'fa', u'ur'] LANGUAGE_CODE = u'en' LANGUAGE_COOKIE_AGE = None LANGUAGE_COOKIE_DOMAIN = None LANGUAGE_COOKIE_NAME = u'django_language' LANGUAGE_COOKIE_PATH = u'/' LOCALE_PATHS = u'/home/ubuntu/webapps/dlap/locale' LOGGING = {} LOGGING_CONFIG = u'logging.config.dictConfig' LOGIN_ERROR_URL = u'/account/social-auth-failed/' LOGIN_REDIRECT_URL = u'/accounts/profile/' LOGIN_URL = u'/accounts/login/' LOGOUT_REDIRECT_URL = None MANAGERS = MEDIA_ROOT = u'/home/ubuntu/webapps/dlap/tmp/public_media' MEDIA_URL = u'https://s3.amazonaws.com/media.diwaniyalabs.com/' MESSAGE_STORAGE = u'django.contrib.messages.storage.fallback.FallbackStorage' MIDDLEWARE = None MIDDLEWARE_CLASSES = MIGRATION_MODULES = {} MONTH_DAY_FORMAT = u'F j' MULTIPLE_DB = False NUMBER_GROUPING = 0 PACKAGE_NAMESPACE = u'dlap' PASSWORD_HASHERS = u'********************' PASSWORD_RESET_TIMEOUT_DAYS = u'********************' PASS_PHRASE_EXPIRY = u'********************' PASS_PHRASE_KEY = u'********************' PREPEND_WWW = False PUSH_WHOOSH_APPLICATION_CODE = {u'balot': u'8EFCA-F6ECF', u'trix': u'C6848-E299F', u'sibeeta': u'BA67B-22F0B', u'kout': u'4EBD0-6339E'} PUSH_WHOOSH_URL = u'https://cp.pushwoosh.com/json/1.3/createMessage' REDIS_LOCKS_CONFIG = {u'host': u'127.0.0.1', u'db': 2, u'port': 6379} REST_FRAMEWORK = {u'DEFAULT_AUTHENTICATION_CLASSES': (u'account.authentication.CustomTokenAuthentication', u'rest_framework.authentication.SessionAuthentication'), u'DEFAULT_RENDERER_CLASSES': (u'rest_framework.renderers.BrowsableAPIRenderer', u'rest_framework.renderers.JSONRenderer'), u'DEFAULT_FILTER_BACKENDS': (u'django_filters.rest_framework.DjangoFilterBackend',), u'DEFAULT_PAGINATION_CLASS': u'extras.pagination.CustomPagination'} ROOT_URLCONF = u'settings.urls.api' S3_MEDIA_BUCKET_STORAGE = 'media.diwaniyalabs.com' S3_STATIC_BUCKET_STORAGE = 'assets.diwaniyalabs.com' SECRET_KEY = u'********************' SECURE_BROWSER_XSS_FILTER = False SECURE_CONTENT_TYPE_NOSNIFF = False SECURE_HSTS_INCLUDE_SUBDOMAINS = False SECURE_HSTS_SECONDS = 0 SECURE_PROXY_SSL_HEADER = None SECURE_REDIRECT_EXEMPT = [] SECURE_SSL_HOST = None SECURE_SSL_REDIRECT = False SERVER_EMAIL = u'root@localhost' SESSION_CACHE_ALIAS = u'default' SESSION_COOKIE_AGE = 1209600 SESSION_COOKIE_DOMAIN = None SESSION_COOKIE_HTTPONLY = True SESSION_COOKIE_NAME = u'sessionid' SESSION_COOKIE_PATH = u'/' SESSION_COOKIE_SECURE = False SESSION_ENGINE = u'django.contrib.sessions.backends.db' SESSION_EXPIRE_AT_BROWSER_CLOSE = False SESSION_FILE_PATH = None SESSION_SAVE_EVERY_REQUEST = False SESSION_SERIALIZER = u'django.contrib.sessions.serializers.JSONSerializer' SETTINGS_MODULE = 'settings.sites.api' SHORT_DATETIME_FORMAT = u'm/d/Y P' SHORT_DATE_FORMAT = u'm/d/Y' SIGNING_BACKEND = u'django.core.signing.TimestampSigner' SILENCED_SYSTEM_CHECKS = [u'admin.W342', u'fields.W342'] SITE_ID = 1 SOCIAL_AUTH_ENABLED_BACKENDS = SOCIAL_AUTH_FACEBOOK_KEY = u'********************' SOCIAL_AUTH_FACEBOOK_SCOPE = [u'email'] SOCIAL_AUTH_FACEBOOK_SECRET = u'********************' SOCIAL_AUTH_FIELDS_STORED_IN_SESSION = [u'device', u'app'] SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = u'********************' SOCIAL_AUTH_GOOGLE_OAUTH2_SCOPE = [u'https://www.googleapis.com/auth/userinfo.email', u'https://www.googleapis.com/auth/userinfo.profile', u'https://www.googleapis.com/auth/plus.me'] SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = u'********************' SOCIAL_AUTH_PARTIAL_PIPELINE_KEY = u'********************' SOCIAL_AUTH_PIPELINE = SOCIAL_AUTH_PROTECTED_USER_FIELDS = [u'email', u'username', u'first_name', u'last_name'] SOCIAL_AUTH_STORAGE = u'social.apps.django_app.default.models.DjangoStorage' SOCIAL_AUTH_STRATEGY = u'social.strategies.django_strategy.DjangoStrategy' SOCIAL_AUTH_TWITTER_KEY = u'********************' SOCIAL_AUTH_TWITTER_SECRET = u'********************' STATICFILES_DIRS = u'/home/ubuntu/webapps/dlap/assets' STATICFILES_FINDERS = [u'django.contrib.staticfiles.finders.FileSystemFinder', u'django.contrib.staticfiles.finders.AppDirectoriesFinder'] STATICFILES_STORAGE = u'extras.storage.S3StaticBucket' STATIC_ROOT = u'/home/ubuntu/webapps/dlap/tmp/public_assets' STATIC_URL = u'https://s3.amazonaws.com/assets.diwaniyalabs.com/' SUIT_CONFIG = {'MENU': ('-', '-', {'icon': 'icon-folder-open', 'label': 'Game Configs'}, 'constance', {'models': ('extras.gameserver',), 'label': 'Game Servers'}, '-', '-', {'icon': 'icon-folder-open', 'label': 'DL Network'}, 'account', {'app': 'auth', 'icon': 'icon-chevron-right'}, '-', '-', {'icon': 'icon-folder-open', 'label': 'Kout'}, {'models': ('kout.koutprofile', 'kout.gemshistory', 'kout.coinshistory', 'kout.payment', 'kout.userset', 'kout.usermission', 'kout.koutseasonreward'), 'label': 'Profile Data'}, {'models': ('kout.diwaniya', 'kout.diwaniyamember', 'kout.diwaniyamessage'), 'label': 'Diwaniya'}, {'models': ('kout.venue', 'kout.koutleaderboard', 'kout.minigame'), 'label': 'Venues and MiniGames'}, {'models': ('kout.season', 'kout.seasonreward', 'kout.KoutSeasonLeaderBoard', 'kout.KoutDiwaniyaSeasonLeaderBoard'), 'label': 'Seasons'}, {'models': ('kout.level', 'kout.levelbracket', {'model': 'kout.ranksetupversion', 'label': 'Ranks'}), 'label': 'Levels and Rank'}, {'models': ('kout.diwaniyarole', 'kout.diwaniyarolepermission', 'kout.diwaniyamessagetype'), 'label': 'Diwaniya Setup'}, {'models': ('kout.challenge', 'kout.mission', 'kout.settype', 'kout.set', 'kout.setmission'), 'label': 'Quests Setup'}, {'models': ('kout.gemtocoin',), 'label': 'Gems To Coins'}, '-', '-', {'icon': 'icon-folder-open', 'label': 'Sibeeta'}, {'models': ('sibeeta.sibeetaprofile', 'sibeeta.gemshistory', 'sibeeta.coinshistory', 'sibeeta.payment', 'sibeeta.userset', 'sibeeta.usermission', 'sibeeta.sibeetaseasonreward'), 'label': 'Profile Data'}, {'models': ('sibeeta.diwaniya', 'sibeeta.diwaniyamember', 'sibeeta.diwaniyamessage'), 'label': 'Diwaniya'}, {'models': ('sibeeta.venue', 'sibeeta.sibeetaleaderboard'), 'label': 'Venues and MiniGames'}, {'models': ('sibeeta.season', 'sibeeta.seasonreward', 'sibeeta.SibeetaSeasonLeaderBoard', 'sibeeta.SibeetaDiwaniyaSeasonLeaderBoard'), 'label': 'Seasons'}, {'models': ('sibeeta.level', 'sibeeta.levelbracket', {'model': 'sibeeta.ranksetupversion', 'label': 'Ranks'}), 'label': 'Levels and Rank'}, {'models': ('sibeeta.diwaniyarole', 'sibeeta.diwaniyarolepermission', 'sibeeta.diwaniyamessagetype'), 'label': 'Diwaniya Setup'}, {'models': ('sibeeta.challenge', 'sibeeta.mission', 'sibeeta.settype', 'sibeeta.set', 'sibeeta.setmission'), 'label': 'Quests Setup'}, {'models': ('sibeeta.gemtocoin',), 'label': 'Gems To Coins'}, '-', '-', {'app': 'trix', 'icon': 'icon-folder-open'}, '-', '-', {'app': 'balot', 'icon': 'icon-folder-open'}, '-', '-', {'icon': 'icon-folder-open', 'label': 'Cross Game Modules'}, 'ad', 'discussion', 'guard', 'inbox', 'store', 'tap', '-', '-', {'icon': 'icon-folder-open', 'label': 'Back Ends'}, {'models': ('extras.device', 'extras.dwhapilog'), 'app': 'extras'}, {'app': 'sites', 'icon': 'icon-chevron-right'}, 'default', 'djcelery', '-', '-'), 'CONFIRM_UNSAVED_CHANGES': False, 'ADMIN_NAME': 'DL admin', 'SEARCH_URL': '/admin/account/user/'} TAP_ACCOUNT_HOST = u'www.gotapnow.com' TAP_BASE_URL = u'https://api-staging.diwaniyalabs.com/' TAP_CHARGE_API = u'********************' TAP_HOST = u'api.tap.company' TAP_SECRET_KEY = u'********************' TEMPLATES = [{u'DIRS': [u'/home/ubuntu/webapps/dlap/templates'], u'APP_DIRS': True, u'OPTIONS': {u'debug': True, u'context_processors': [u'django.contrib.auth.context_processors.auth', u'django.template.context_processors.debug', u'django.template.context_processors.request', u'django.template.context_processors.i18n', u'django.template.context_processors.media', u'django.template.context_processors.static', u'django.template.context_processors.tz', u'django.contrib.messages.context_processors.messages', u'social.apps.django_app.context_processors.backends', u'social.apps.django_app.context_processors.login_redirect']}, u'BACKEND': u'django.template.backends.django.DjangoTemplates'}] TEST_NON_SERIALIZED_APPS = [] TEST_RUNNER = u'django.test.runner.DiscoverRunner' THOUSAND_SEPARATOR = u',' TIME_FORMAT = u'P' TIME_INPUT_FORMATS = [u'%H:%M:%S', u'%H:%M:%S.%f', u'%H:%M'] TIME_ZONE = u'Asia/Kuwait' USE_ETAGS = False USE_I18N = True USE_L10N = True USE_THOUSAND_SEPARATOR = False USE_TZ = True USE_X_FORWARDED_HOST = False USE_X_FORWARDED_PORT = False WSGI_APPLICATION = u'wsgi.application' X_FRAME_OPTIONS = u'SAMEORIGIN' YEAR_MONTH_FORMAT = u'F Y' You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard page generated by the handler for this status code.