SHARE
TWEET

Untitled

a guest Jun 12th, 2019 156 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ProgrammingError at /api/drivers/
  2. column drivers_privacypolicystatus.last_notified_at does not exist
  3. LINE 1: ...ed", "drivers_privacypolicystatus"."accepted_at", "drivers_p...
  4.                                                              ^
  5.  
  6.  
  7. Request Method: GET
  8. Request URL: https://ops4-backend-demo.herokuapp.com/api/drivers/?ordering=-modified_at&limit=25&offset=0
  9. Django Version: 2.1.9
  10. Python Executable: /app/.heroku/python/bin/python
  11. Python Version: 3.6.8
  12. Python Path: ['/app/.heroku/python/bin', '/app/.heroku/python/lib/python3.6/site-packages/newrelic/bootstrap', '/app', '/app/.heroku/python/lib/python36.zip', '/app/.heroku/python/lib/python3.6', '/app/.heroku/python/lib/python3.6/lib-dynload', '/app/.heroku/python/lib/python3.6/site-packages', '/app']
  13. Server time: Wed, 12 Jun 2019 15:07:33 +0000
  14. Installed Applications:
  15. ['authentication.apps.AuthenticationConfig',
  16.  'django.contrib.admin',
  17.  'django.contrib.auth',
  18.  'django.contrib.contenttypes',
  19.  'django.contrib.sessions',
  20.  'django.contrib.messages',
  21.  'django.contrib.staticfiles',
  22.  'django.contrib.gis',
  23.  'rest_framework',
  24.  'rest_framework.authtoken',
  25.  'rest_auth',
  26.  'rest_framework_jwt',
  27.  'debug_toolbar',
  28.  'corsheaders',
  29.  'raven.contrib.django.raven_compat',
  30.  'algoliasearch_django',
  31.  'django_celery_results',
  32.  'django_celery_beat',
  33.  'storages',
  34.  'django_filters',
  35.  'core',
  36.  'documents.apps.DocumentsConfig',
  37.  'drivers.apps.DriversConfig',
  38.  'invoice_generation.apps.InvoiceGenerationConfig',
  39.  'maintenance',
  40.  'payments.apps.PaymentConfig',
  41.  'rentals.apps.RentalsConfig',
  42.  'reports.apps.ReportsConfig',
  43.  'elastic.apps.ElasticConfig',
  44.  'tickets',
  45.  'vehicles.apps.VehiclesConfig',
  46.  'alerts',
  47.  'notifications',
  48.  'health_check',
  49.  'health_check.db',
  50.  'health_check.contrib.celery',
  51.  'health_check.contrib.s3boto3_storage',
  52.  'elasticapm.contrib.django']
  53. Installed Middleware:
  54. ['raven.contrib.django.middleware.DjangoRestFrameworkCompatMiddleware',
  55.  'raven.contrib.django.middleware.SentryMiddleware',
  56.  'elasticapm.contrib.django.middleware.TracingMiddleware',
  57.  'django.middleware.security.SecurityMiddleware',
  58.  'whitenoise.middleware.WhiteNoiseMiddleware',
  59.  'raven.contrib.django.raven_compat.middleware.SentryResponseErrorIdMiddleware',
  60.  'django.middleware.locale.LocaleMiddleware',
  61.  'corsheaders.middleware.CorsMiddleware',
  62.  'debug_toolbar.middleware.DebugToolbarMiddleware',
  63.  'django.contrib.sessions.middleware.SessionMiddleware',
  64.  'django.middleware.common.CommonMiddleware',
  65.  'django.middleware.csrf.CsrfViewMiddleware',
  66.  'django.contrib.auth.middleware.AuthenticationMiddleware',
  67.  'django.contrib.messages.middleware.MessageMiddleware',
  68.  'django.middleware.clickjacking.XFrameOptionsMiddleware']
  69.  
  70.  
  71. Traceback:
  72.  
  73. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py" in _execute
  74.   85.                 return self.cursor.execute(sql, params)
  75.  
  76. File "/app/.heroku/python/lib/python3.6/site-packages/elasticapm/instrumentation/packages/dbapi2.py" in execute
  77.   200.         return self._trace_sql(self.__wrapped__.execute, sql, params)
  78.  
  79. File "/app/.heroku/python/lib/python3.6/site-packages/elasticapm/instrumentation/packages/dbapi2.py" in _trace_sql
  80.   220.                 return method(sql, params)
  81.  
  82. The above exception (column drivers_privacypolicystatus.last_notified_at does not exist
  83. LINE 1: ...ed", "drivers_privacypolicystatus"."accepted_at", "drivers_p...
  84.                                                              ^
  85. ) was the direct cause of the following exception:
  86.  
  87. File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  88.   34.             response = get_response(request)
  89.  
  90. File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  91.   126.                 response = self.process_exception_by_middleware(e, request)
  92.  
  93. File "/app/.heroku/python/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  94.   124.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
  95.  
  96. File "/app/.heroku/python/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
  97.   54.         return view_func(*args, **kwargs)
  98.  
  99. File "/app/.heroku/python/lib/python3.6/site-packages/django/views/generic/base.py" in view
  100.   68.             return self.dispatch(request, *args, **kwargs)
  101.  
  102. File "/app/.heroku/python/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  103.   495.             response = self.handle_exception(exc)
  104.  
  105. File "/app/.heroku/python/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
  106.   455.             self.raise_uncaught_exception(exc)
  107.  
  108. File "/app/.heroku/python/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  109.   492.             response = handler(request, *args, **kwargs)
  110.  
  111. File "/app/.heroku/python/lib/python3.6/site-packages/rest_framework/generics.py" in get
  112.   241.         return self.list(request, *args, **kwargs)
  113.  
  114. File "/app/.heroku/python/lib/python3.6/site-packages/rest_framework/mixins.py" in list
  115.   42.         page = self.paginate_queryset(queryset)
  116.  
  117. File "/app/.heroku/python/lib/python3.6/site-packages/rest_framework/generics.py" in paginate_queryset
  118.   173.         return self.paginator.paginate_queryset(queryset, self.request, view=self)
  119.  
  120. File "/app/.heroku/python/lib/python3.6/site-packages/rest_framework/pagination.py" in paginate_queryset
  121.   337.         return list(queryset[self.offset:self.offset + self.limit])
  122.  
  123. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/query.py" in __iter__
  124.   268.         self._fetch_all()
  125.  
  126. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/query.py" in _fetch_all
  127.   1188.             self._prefetch_related_objects()
  128.  
  129. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/query.py" in _prefetch_related_objects
  130.   723.         prefetch_related_objects(self._result_cache, *self._prefetch_related_lookups)
  131.  
  132. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/query.py" in prefetch_related_objects
  133.   1569.                 obj_list, additional_lookups = prefetch_one_level(obj_list, prefetcher, lookup, level)
  134.  
  135. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/query.py" in prefetch_one_level
  136.   1682.         prefetcher.get_prefetch_queryset(instances, lookup.get_current_queryset(level)))
  137.  
  138. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/fields/related_descriptors.py" in get_prefetch_queryset
  139.   610.             for rel_obj in queryset:
  140.  
  141. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/query.py" in __iter__
  142.   268.         self._fetch_all()
  143.  
  144. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/query.py" in _fetch_all
  145.   1186.             self._result_cache = list(self._iterable_class(self))
  146.  
  147. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/query.py" in __iter__
  148.   54.         results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  149.  
  150. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/models/sql/compiler.py" in execute_sql
  151.   1065.             cursor.execute(sql, params)
  152.  
  153. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py" in execute
  154.   100.             return super().execute(sql, params)
  155.  
  156. File "/app/.heroku/python/lib/python3.6/site-packages/raven/contrib/django/client.py" in execute
  157.   123.             return real_execute(self, sql, params)
  158.  
  159. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py" in execute
  160.   68.         return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  161.  
  162. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py" in _execute_with_wrappers
  163.   77.         return executor(sql, params, many, context)
  164.  
  165. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py" in _execute
  166.   85.                 return self.cursor.execute(sql, params)
  167.  
  168. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/utils.py" in __exit__
  169.   89.                 raise dj_exc_value.with_traceback(traceback) from exc_value
  170.  
  171. File "/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/utils.py" in _execute
  172.   85.                 return self.cursor.execute(sql, params)
  173.  
  174. File "/app/.heroku/python/lib/python3.6/site-packages/elasticapm/instrumentation/packages/dbapi2.py" in execute
  175.   200.         return self._trace_sql(self.__wrapped__.execute, sql, params)
  176.  
  177. File "/app/.heroku/python/lib/python3.6/site-packages/elasticapm/instrumentation/packages/dbapi2.py" in _trace_sql
  178.   220.                 return method(sql, params)
  179.  
  180. Exception Type: ProgrammingError at /api/drivers/
  181. Exception Value: column drivers_privacypolicystatus.last_notified_at does not exist
  182. LINE 1: ...ed", "drivers_privacypolicystatus"."accepted_at", "drivers_p...
  183.                                                              ^
  184.  
  185. Request information:
  186. USER: matej
  187.  
  188. GET:
  189. ordering = '-modified_at'
  190. limit = '25'
  191. offset = '0'
  192.  
  193. POST: No POST data
  194.  
  195. FILES: No FILES data
  196.  
  197. COOKIES: No cookie data
  198.  
  199. META:
  200. CONTENT_TYPE = 'application/json'
  201. HTTP_ACCEPT = 'application/json'
  202. HTTP_ACCEPT_ENCODING = 'br, gzip, deflate'
  203. HTTP_ACCEPT_LANGUAGE = 'en-us'
  204. HTTP_AUTHORIZATION = 'JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VybmFtZSI6Im1hdGVqIiwiZXhwIjoxNTYwNDEwNTgwLCJlbWFpbCI6ImhhaG4ubWF0ZWpAZ21haWwuY29tIiwib3JpZ19pYXQiOjE1NjAzMjQxODAsImZpcnN0X25hbWUiOiJNYXRlaiIsImxhc3RfbmFtZSI6IkhhaG4iLCJpc19zdGFmZiI6dHJ1ZSwiaXNfc3VwZXJ1c2VyIjp0cnVlLCJpc19tYWludGVuYW5jZSI6ZmFsc2UsInBpbiI6bnVsbH0.tVpQk8KebITbfXLQnJ0MJ5iqxrMxNe3Co6M7ugfY24g'
  205. HTTP_CONNECTION = 'close'
  206. HTTP_CONNECT_TIME = '0'
  207. HTTP_HOST = 'ops4-backend-demo.herokuapp.com'
  208. HTTP_ORIGIN = 'https://demo.drivesally.com'
  209. HTTP_REFERER = 'https://demo.drivesally.com/customers'
  210. HTTP_TOTAL_ROUTE_TIME = '0'
  211. HTTP_USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15'
  212. HTTP_VIA = '1.1 vegur'
  213. HTTP_X_FORWARDED_FOR = '89.142.106.135'
  214. HTTP_X_FORWARDED_PORT = '443'
  215. HTTP_X_FORWARDED_PROTO = 'https'
  216. HTTP_X_REQUEST_ID = '9ef93212-f218-4249-aae4-9f5a9f1f889f'
  217. HTTP_X_REQUEST_START = '1560352053013'
  218. PATH_INFO = '/api/drivers/'
  219. QUERY_STRING = 'ordering=-modified_at&limit=25&offset=0'
  220. RAW_URI = '/api/drivers/?ordering=-modified_at&limit=25&offset=0'
  221. REMOTE_ADDR = '10.63.17.76'
  222. REMOTE_PORT = '19909'
  223. REQUEST_METHOD = 'GET'
  224. SCRIPT_NAME = ''
  225. SERVER_NAME = '0.0.0.0'
  226. SERVER_PORT = '10018'
  227. SERVER_PROTOCOL = 'HTTP/1.1'
  228. SERVER_SOFTWARE = 'gunicorn/19.8.1'
  229. gunicorn.socket = <socket.socket fd=14, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('172.17.50.186', 10018), raddr=('10.63.17.76', 19909)>
  230. wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f1b5a153518>
  231. wsgi.file_wrapper = ''
  232. wsgi.input = <gunicorn.http.body.Body object at 0x7f1b5a153278>
  233. wsgi.multiprocess = True
  234. wsgi.multithread = False
  235. wsgi.run_once = False
  236. wsgi.url_scheme = 'https'
  237. wsgi.version = '(1, 0)'
  238.  
  239. Settings:
  240. Using settings module ops4_backend.settings
  241. ABSOLUTE_URL_OVERRIDES = {}
  242. ADMINS = []
  243. ALGOLIA = {'APPLICATION_ID': 'foo', 'API_KEY': '********************', 'SEARCH_API_KEY': '********************', 'INDEX_PREFIX': 'ops4', 'INDEX_SUFFIX': 'dev', 'AUTO_INDEXING': False}
  244. ALLOWED_HOSTS = ['127.0.0.1', 'localhost:3000', 'localhost:8000', 'localhost', 'ops4-backend-production.herokuapp.com', 'ops4-backend-staging.herokuapp.com', 'ops4-dashboard.herokuapp.com', 'sally-short-url.herokuapp.com', 'ops4-backend-demo.herokuapp.com']
  245. API_TOKENS = '********************'
  246. APPEND_SLASH = True
  247. AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
  248. AUTH_PASSWORD_VALIDATORS = '********************'
  249. AUTH_USER_MODEL = 'authentication.SallyUser'
  250. AWS_ACCESS_KEY_ID = '********************'
  251. AWS_DYNAMO = {'ACCESS_KEY_ID': '********************', 'SECRET_ACCESS_KEY': '********************'}
  252. AWS_S3_CUSTOM_DOMAIN = None
  253. AWS_SECRET_ACCESS_KEY = '********************'
  254. AWS_STORAGE_BUCKET_NAME = 'ops4.5-staging-bucket'
  255. BACKGROUND_TASKS = {}
  256. BASE_DIR = '/app'
  257. CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://:YkzrUEvuDKt3c9ncmvRvRa6jT3xahiHA@redis-19270.c8.us-east-1-3.ec2.cloud.redislabs.com:19270', 'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient'}}}
  258. CACHE_MIDDLEWARE_ALIAS = 'default'
  259. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  260. CACHE_MIDDLEWARE_SECONDS = 600
  261. CALAMP = {'USERNAME': '', 'PASSWORD': '********************', 'APP_TOKEN': '********************', 'HOST': 'https://connect.calamp.com', 'ACCOUNT_ID': '1587'}
  262. CELERY_ACCEPT_CONTENT = ['application/json']
  263. CELERY_BEAT_SCHEDULER = 'django_celery_beat.schedulers:DatabaseScheduler'
  264. CELERY_BROKER_HEARTBEAT = 0
  265. CELERY_BROKER_URL = 'amqp://qddpawrp:Izbw6MxTHFvqUnb4-8N16StY635xR2dN@spider.rmq.cloudamqp.com/qddpawrp'
  266. CELERY_ENABLE_UTC = True
  267. CELERY_RESULT_BACKEND = 'django-db'
  268. CELERY_RESULT_SERIALIZER = 'json'
  269. CELERY_TASK_CREATE_MISSING_QUEUES = True
  270. CELERY_TASK_SERIALIZER = 'json'
  271. CELERY_TIMEZONE = 'UTC'
  272. CORS_ALLOW_HEADERS = "('accept', 'accept-encoding', 'authorization', 'content-type', 'dnt', 'origin', 'user-agent', 'x-csrftoken', 'x-requested-with', 'apikey', 'sallyapikey', 'http_apikey', 'x-cards-apikey')"
  273. CORS_ORIGIN_ALLOW_ALL = True
  274. CSRF_COOKIE_AGE = 31449600
  275. CSRF_COOKIE_DOMAIN = None
  276. CSRF_COOKIE_HTTPONLY = False
  277. CSRF_COOKIE_NAME = 'csrftoken'
  278. CSRF_COOKIE_PATH = '/'
  279. CSRF_COOKIE_SAMESITE = 'Lax'
  280. CSRF_COOKIE_SECURE = False
  281. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  282. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  283. CSRF_TRUSTED_ORIGINS = []
  284. CSRF_USE_SESSIONS = False
  285. DATABASES = {'default': {'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME': 'ops4', 'USER': 'sally_george', 'PASSWORD': '********************', 'HOST': 'george-production.cjlbfectyj0x.us-east-1.rds.amazonaws.com', 'PORT': '', 'CONN_MAX_AGE': 500, 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
  286. DATABASE_ROUTERS = []
  287. DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
  288. DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
  289. DATETIME_FORMAT = 'N j, Y, P'
  290. DATETIME_INPUT_FORMATS = ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y']
  291. DATE_FORMAT = 'N j, Y'
  292. DATE_INPUT_FORMATS = ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y']
  293. DEBUG = True
  294. DEBUG_PROPAGATE_EXCEPTIONS = False
  295. DECIMAL_SEPARATOR = '.'
  296. DEFAULT_CHARSET = 'utf-8'
  297. DEFAULT_CONTENT_TYPE = 'text/html'
  298. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  299. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  300. DEFAULT_FROM_EMAIL = 'join@drivesally.com'
  301. DEFAULT_INDEX_TABLESPACE = ''
  302. DEFAULT_TABLESPACE = ''
  303. DISALLOWED_USER_AGENTS = []
  304. DROPBOX = 'no_token'
  305. ELASTIC_APM = {'SERVICE_NAME': None, 'SECRET_TOKEN': '********************', 'SERVER_URL': '', 'SERVER_TIMEOUT': '5s', 'DEBUG': False, 'DJANGO_TRANSACTION_NAME_FROM_ROUTE': True, 'CAPTURE_BODY': False}
  306. ELASTIC_LOGSTASH_ENV = 'localhost'
  307. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  308. EMAIL_HOST = 'smtp.mailgun.org'
  309. EMAIL_HOST_PASSWORD = '********************'
  310. EMAIL_HOST_USER = ''
  311. EMAIL_PORT = 587
  312. EMAIL_SSL_CERTFILE = None
  313. EMAIL_SSL_KEYFILE = '********************'
  314. EMAIL_SUBJECT_PREFIX = '[Django] '
  315. EMAIL_TIMEOUT = None
  316. EMAIL_USE_LOCALTIME = False
  317. EMAIL_USE_SSL = False
  318. EMAIL_USE_TLS = True
  319. FILE_CHARSET = 'utf-8'
  320. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  321. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  322. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  323. FILE_UPLOAD_PERMISSIONS = None
  324. FILE_UPLOAD_TEMP_DIR = None
  325. FIRST_DAY_OF_WEEK = 0
  326. FIXTURE_DIRS = []
  327. FORCE_SCRIPT_NAME = None
  328. FORMAT_MODULE_PATH = None
  329. FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
  330. GDAL_LIBRARY_PATH = '/app/.heroku/vendor/lib/libgdal.so'
  331. GEOS_LIBRARY_PATH = '/app/.heroku/vendor/lib/libgeos_c.so'
  332. GOLDSTAR = {'USERNAME': '', 'PASSWORD': '********************'}
  333. GOOGLE = {'SERVICE_ACCOUNT_FILENAME': '', 'SPREADSHEET_ID': ''}
  334. IGNORABLE_404_URLS = []
  335. INSTALLED_APPS = ['authentication.apps.AuthenticationConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.gis', 'rest_framework', 'rest_framework.authtoken', 'rest_auth', 'rest_framework_jwt', 'debug_toolbar', 'corsheaders', 'raven.contrib.django.raven_compat', 'algoliasearch_django', 'django_celery_results', 'django_celery_beat', 'storages', 'django_filters', 'core', 'documents.apps.DocumentsConfig', 'drivers.apps.DriversConfig', 'invoice_generation.apps.InvoiceGenerationConfig', 'maintenance', 'payments.apps.PaymentConfig', 'rentals.apps.RentalsConfig', 'reports.apps.ReportsConfig', 'elastic.apps.ElasticConfig', 'tickets', 'vehicles.apps.VehiclesConfig', 'alerts', 'notifications', 'health_check', 'health_check.db', 'health_check.contrib.celery', 'health_check.contrib.s3boto3_storage', 'elasticapm.contrib.django']
  336. INTERNAL_IPS = ['localhost', '127.0.0.1', 'ops4-backend-production.herokuapp.com']
  337. JWT_AUTH = {'JWT_ALLOW_REFRESH': True, 'JWT_PAYLOAD_HANDLER': 'authentication.jwt_handler.jwt_payload_handler', 'JWT_VERIFY_EXPIRATION': True, 'JWT_EXPIRATION_DELTA': datetime.timedelta(1), 'JWT_REFRESH_EXPIRATION_DELTA': datetime.timedelta(7)}
  338. KUSTOMER = {'API_KEY': '********************'}
  339. LANGUAGES = [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')]
  340. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  341. LANGUAGE_CODE = 'en-us'
  342. LANGUAGE_COOKIE_AGE = None
  343. LANGUAGE_COOKIE_DOMAIN = None
  344. LANGUAGE_COOKIE_NAME = 'django_language'
  345. LANGUAGE_COOKIE_PATH = '/'
  346. LOCALE_PATHS = []
  347. LOGGING = {'version': 1, 'disable_existing_loggers': True, 'root': {'level': 'WARNING', 'handlers': ['sentry']}, 'formatters': {'verbose': {'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'}}, 'handlers': {'sentry': {'level': 'ERROR', 'class': 'raven.contrib.django.raven_compat.handlers.SentryHandler', 'tags': {'custom-tag': 'x'}}, 'console': {'level': 'INFO', 'class': 'logging.StreamHandler', 'formatter': 'verbose'}, 'file': {'level': 'INFO', 'class': 'logging.FileHandler', 'filename': 'ops4_backend_elastic-localhost.log'}}, 'loggers': {'django.db.backends': {'level': 'ERROR', 'handlers': ['console'], 'propagate': False}, 'raven': {'level': 'DEBUG', 'handlers': ['console'], 'propagate': False}, 'sentry.errors': {'level': 'DEBUG', 'handlers': ['console'], 'propagate': False}, 'elastic': {'handlers': ['console'], 'level': 'INFO', 'propagate': True}}}
  348. LOGGING_CONFIG = 'logging.config.dictConfig'
  349. LOGIN_REDIRECT_URL = '/accounts/profile/'
  350. LOGIN_URL = '/accounts/login/'
  351. LOGOUT_REDIRECT_URL = None
  352. MANAGERS = []
  353. MEDIA_ROOT = ''
  354. MEDIA_URL = ''
  355. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  356. MIDDLEWARE = ['raven.contrib.django.middleware.DjangoRestFrameworkCompatMiddleware', 'raven.contrib.django.middleware.SentryMiddleware', 'elasticapm.contrib.django.middleware.TracingMiddleware', 'django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'raven.contrib.django.raven_compat.middleware.SentryResponseErrorIdMiddleware', 'django.middleware.locale.LocaleMiddleware', 'corsheaders.middleware.CorsMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware']
  357. MIGRATION = {'HOST': 'https://ops4-production.herokuapp.com', 'USERNAME': 'mitchell', 'PASSWORD': '********************', 'PRODUCTION': False}
  358. MIGRATION_MODULES = {}
  359. MONTH_DAY_FORMAT = 'F j'
  360. NUMBER_GROUPING = 0
  361. OLD_PASSWORD_FIELD_ENABLED = '********************'
  362. PASSWORD_HASHERS = '********************'
  363. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  364. PREPEND_WWW = False
  365. PRIVACY_POLICY_URL = 'https://privacy-staging.drivesally.com'
  366. PROJ4_LIBRARY_PATH = '/app/.heroku/vendor/lib/libproj.so'
  367. RAVEN_CONFIG = {'dsn': ''}
  368. REST_AUTH_SERIALIZERS = {'PASSWORD_RESET_SERIALIZER': '********************'}
  369. REST_FRAMEWORK = {'UNICODE_JSON': True, 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', 'PAGE_SIZE': 20, 'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',), 'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework_jwt.authentication.JSONWebTokenAuthentication',), 'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.IsAuthenticated'], 'DEFAULT_RENDERER_CLASSES': ('rest_framework.renderers.JSONRenderer', 'rest_framework.renderers.BrowsableAPIRenderer')}
  370. REST_USE_JWT = True
  371. ROOT_URLCONF = 'ops4_backend.urls'
  372. SECRET_KEY = '********************'
  373. SECURE_BROWSER_XSS_FILTER = False
  374. SECURE_CONTENT_TYPE_NOSNIFF = False
  375. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  376. SECURE_HSTS_PRELOAD = False
  377. SECURE_HSTS_SECONDS = 0
  378. SECURE_PROXY_SSL_HEADER = None
  379. SECURE_REDIRECT_EXEMPT = []
  380. SECURE_SSL_HOST = None
  381. SECURE_SSL_REDIRECT = False
  382. SERVER_EMAIL = 'root@localhost'
  383. SESSION_CACHE_ALIAS = 'default'
  384. SESSION_COOKIE_AGE = 1209600
  385. SESSION_COOKIE_DOMAIN = None
  386. SESSION_COOKIE_HTTPONLY = True
  387. SESSION_COOKIE_NAME = 'sessionid'
  388. SESSION_COOKIE_PATH = '/'
  389. SESSION_COOKIE_SAMESITE = 'Lax'
  390. SESSION_COOKIE_SECURE = False
  391. SESSION_ENGINE = 'django.contrib.sessions.backends.db'
  392. SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  393. SESSION_FILE_PATH = None
  394. SESSION_SAVE_EVERY_REQUEST = False
  395. SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
  396. SETTINGS_MODULE = 'ops4_backend.settings'
  397. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  398. SHORT_DATE_FORMAT = 'm/d/Y'
  399. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  400. SILENCED_SYSTEM_CHECKS = []
  401. SLACK = {'CARDS': '', 'PAYMENTS': '', 'TURNOVER': '', 'REPORTS': '', 'TICKETS': '', 'LEADS': '', 'CALAMP': '', 'MAINTENANCE_ALERTS': ''}
  402. STATICFILES_DIRS = ['/app/static_folder/']
  403. STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  404. STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
  405. STATIC_ROOT = '/app/static_media/'
  406. STATIC_URL = '/static/'
  407. STRIPE = {'API_KEY': '********************'}
  408. TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/app/templates'], 'APP_DIRS': True, 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}]
  409. TEST_NON_SERIALIZED_APPS = []
  410. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  411. THOUSAND_SEPARATOR = ','
  412. TIME_FORMAT = 'P'
  413. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  414. TIME_ZONE = 'UTC'
  415. TWILIO = {'ACCOUNT_SID': '', 'ACCOUNT_TOKEN': '********************', 'FROM_NUMBER': '', 'MESSAGING_SERVICE_SID': ''}
  416. USE_I18N = True
  417. USE_L10N = True
  418. USE_THOUSAND_SEPARATOR = False
  419. USE_TZ = True
  420. USE_X_FORWARDED_HOST = False
  421. USE_X_FORWARDED_PORT = False
  422. VEHICLE_TRACK_FIELDS = ['plate', 'dashcam_serial', 'calamp_device_id', 'spireon_serial', 'emissions_expiry', 'registration_expiry', 'fhv_license_expiry', 'owner', 'vin', 'vehicle_model', 'vehicle_makevehicle_year', 'state']
  423. WSGI_APPLICATION = 'ops4_backend.wsgi.application'
  424. X_FRAME_OPTIONS = 'SAMEORIGIN'
  425. YEAR_MONTH_FORMAT = 'F Y'
  426.  
  427.  
  428. You're seeing this error because you have DEBUG = True in your
  429. Django settings file. Change that to False, and Django will
  430. display a standard page generated by the handler for this status code.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top