· 9 years ago · Jan 19, 2017, 02:54 PM
1Internal Server Error: /api/users/
2
3ValueError at /api/users/
4invalid literal for int() with base 10: 'edit'
5
6Request Method: GET
7Request URL: https://represent.me/api/users/?page=1&page_size=15&is_followed_by=edit&first_name!=None
8Django Version: 1.9.6
9Python Executable: /usr/local/bin/uwsgi
10Python Version: 3.4.3
11Python Path: ['.', '', '/src/popolo', '/src/django-s3-storage', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-x86_64-linux-gnu', '/usr/lib/python3.4/lib-dynload', '/usr/local/lib/python3.4/dist-packages', '/usr/lib/python3/dist-packages', '/opt/represent']
12Server time: Thu, 19 Jan 2017 14:44:59 +0000
13Installed Applications:
14['raven.contrib.django.raven_compat',
15'django.contrib.admin',
16'django.contrib.auth',
17'django.contrib.contenttypes',
18'django.contrib.sessions',
19'django.contrib.messages',
20'django.contrib.staticfiles',
21'django.contrib.gis',
22'django.contrib.humanize',
23'django.contrib.sites',
24'corsheaders',
25'ajax_select',
26'bulk_admin',
27'push_notifications',
28'generic_relations',
29'rest_framework',
30'rest_framework_gis',
31'rest_framework.authtoken',
32'oauth2_provider',
33'social.apps.django_app.default',
34'rest_framework_social_oauth2',
35'rest_social_auth',
36'djoser',
37'djrill',
38'popolo',
39'django_extensions',
40'crispy_forms',
41'dbbackup',
42'represent_app',
43'massadmin',
44'djgeojson',
45'rest_framework_swagger',
46'django_spaghetti',
47'markdown_deux',
48'djstripe',
49'django_s3_storage']
50Installed Middleware:
51['django.middleware.gzip.GZipMiddleware',
52'django.middleware.security.SecurityMiddleware',
53'django.contrib.sessions.middleware.SessionMiddleware',
54'corsheaders.middleware.CorsMiddleware',
55'django.middleware.common.CommonMiddleware',
56'django.middleware.common.CommonMiddleware',
57'django.middleware.csrf.CsrfViewMiddleware',
58'django.contrib.auth.middleware.AuthenticationMiddleware',
59'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
60'django.contrib.messages.middleware.MessageMiddleware',
61'django.middleware.clickjacking.XFrameOptionsMiddleware',
62'represent_app.disable_csrf.DisableCSRF',
63'represent_app.profiling_middleware.LoggingMiddleware']
64
65
66Traceback:
67
68File "/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py" in get_response
69 149. response = self.process_exception_by_middleware(e, request)
70
71File "/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py" in get_response
72 147. response = wrapped_callback(request, *callback_args, **callback_kwargs)
73
74File "/usr/local/lib/python3.4/dist-packages/django/views/decorators/csrf.py" in wrapped_view
75 58. return view_func(*args, **kwargs)
76
77File "/usr/local/lib/python3.4/dist-packages/rest_framework/viewsets.py" in view
78 87. return self.dispatch(request, *args, **kwargs)
79
80File "/usr/local/lib/python3.4/dist-packages/rest_framework/views.py" in dispatch
81 466. response = self.handle_exception(exc)
82
83File "/usr/local/lib/python3.4/dist-packages/rest_framework/views.py" in dispatch
84 463. response = handler(request, *args, **kwargs)
85
86File "/usr/local/lib/python3.4/dist-packages/rest_framework/mixins.py" in list
87 40. queryset = self.filter_queryset(self.get_queryset())
88
89File "./represent_app/views.py" in filter_queryset
90 792. queryset = super(UserViewSet, self).filter_queryset(queryset)
91
92File "/usr/local/lib/python3.4/dist-packages/rest_framework/generics.py" in filter_queryset
93 151. queryset = backend().filter_queryset(self.request, queryset, self)
94
95File "/usr/local/lib/python3.4/dist-packages/rest_framework_filters/backends.py" in filter_queryset
96 15. return filter_class(request.query_params, queryset=queryset, cache=cache).qs
97
98File "/usr/local/lib/python3.4/dist-packages/rest_framework_filters/filterset.py" in qs
99 182. qs = super(FilterSet, self).qs
100
101File "/usr/local/lib/python3.4/dist-packages/django_filters/filterset.py" in qs
102 347. qs = filter_.filter(qs, value)
103
104File "/usr/local/lib/python3.4/dist-packages/rest_framework_filters/filters.py" in filter
105 125. return self.action(self.name, qs, value)
106
107File "./represent_app/filters.py" in filter_is_followed_by
108 116. return qs.filter(**{name: int(value)})
109
110Exception Type: ValueError at /api/users/
111Exception Value: invalid literal for int() with base 10: 'edit'
112Request information:
113GET:
114page = '1'
115is_followed_by = 'edit'
116page_size = '15'
117first_name! = 'None'
118
119POST: No POST data
120
121FILES: No FILES data
122
123COOKIES:
124em_cdn_uid = 't%3D1484837097062%26u%3Dc97ed45ae3194ae5a9c069dcb9645412'
125ajs_group_id = 'null'
126mp_6d200007a322aea69112d4c64544080a_mixpanel = '%7B%22distinct_id%22%3A%20%22159b73010953a0-0f04328e2-9020a06-c0000-159b73010962d3%22%2C%22mp_lib%22%3A%20%22Segment%3A%20web%22%2C%22%24initial_referrer%22%3A%20%22%24direct%22%2C%22%24initial_referring_domain%22%3A%20%22%24direct%22%7D'
127ajs_user_id = 'null'
128
129META:
130QUERY_STRING = 'page=1&page_size=15&is_followed_by=edit&first_name!=None'
131uwsgi.version = b'2.0.13.1'
132HTTP_X_FORWARDED_FOR = '172.31.28.65'
133HTTP_USER_AGENT = 'Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.1.1 Safari/538.1 Prerender (+https://github.com/prerender/prerender)'
134HTTP_COOKIE = 'em_cdn_uid=t%3D1484837097062%26u%3Dc97ed45ae3194ae5a9c069dcb9645412; ajs_user_id=null; ajs_group_id=null; mp_6d200007a322aea69112d4c64544080a_mixpanel=%7B%22distinct_id%22%3A%20%22159b73010953a0-0f04328e2-9020a06-c0000-159b73010962d3%22%2C%22mp_lib%22%3A%20%22Segment%3A%20web%22%2C%22%24initial_referrer%22%3A%20%22%24direct%22%2C%22%24initial_referring_domain%22%3A%20%22%24direct%22%7D'
135wsgi.version =
136wsgi.multithread = True
137HTTP_X_REAL_IP = '172.31.28.65'
138wsgi.run_once = False
139wsgi.input = <uwsgi._Input object at 0x7f9c08332348>
140SERVER_PROTOCOL = 'HTTP/1.0'
141wsgi.errors = <_io.TextIOWrapper name=2 mode='w' encoding='ANSI_X3.4-1968'>
142HTTP_REFERER = 'https://represent.me/profile/edit/following/following/'
143REQUEST_URI = '/api/users/?page=1&page_size=15&is_followed_by=edit&first_name!=None'
144wsgi.multiprocess = False
145HTTP_ACCEPT = 'application/json, text/plain, */*'
146HTTP_CONNECTION = 'close'
147REMOTE_PORT = '45763'
148HTTP_ACCEPT_LANGUAGE = 'en,*'
149SCRIPT_NAME = ''
150uwsgi.node = b'af82de011efc'
151SERVER_PORT = '8080'
152HTTP_HOST = 'represent.me'
153HTTP_ACCEPT_ENCODING = 'gzip, deflate'
154HTTP_X_PRERENDER = '1'
155uwsgi.core = 3
156REMOTE_ADDR = '172.17.0.1'
157HTTP_X_FORWARDED_PROTO = 'https'
158wsgi.file_wrapper = ''
159wsgi.url_scheme = 'https'
160HTTP_X_FORWARDED_PORT = '443'
161SERVER_NAME = 'af82de011efc'
162PATH_INFO = '/api/users/'
163REQUEST_METHOD = 'GET'
164UWSGI_ROUTER = 'http'
165
166Settings:
167Using settings module dj_represent.eb_production_settings
168LOGIN_REDIRECT_URL = '/accounts/profile/'
169TEMPLATES = [{'DIRS': ['/opt/represent', '/opt/represent/templates'], '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', 'social.apps.django_app.context_processors.backends', 'social.apps.django_app.context_processors.login_redirect'], 'loaders': ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', 'django.template.loaders.eggs.Loader']}, 'BACKEND': 'django.template.backends.django.DjangoTemplates'}]
170SEND_REMOTE_NOTIFICATIONS = True
171AWS_S3_BUCKET_AUTH = False
172SECURE_CONTENT_TYPE_NOSNIFF = False
173DEFAULT_CONTENT_TYPE = 'text/html'
174STRIPE_PUBLIC_KEY = '********************'
175EMAIL_SUBJECT_PREFIX = '[Django] '
176FORCE_LIMIT_EMAIL = False
177DISALLOWED_USER_AGENTS = []
178CELERY_TIMEZONE = 'UTC'
179LANGUAGE_COOKIE_PATH = '/'
180DEBUG_PROPAGATE_EXCEPTIONS = False
181CACHES = {'default': {'OPTIONS': {'PASSWORD': '********************'}, 'LOCATION': 'ip-172-31-29-246.eu-central-1.compute.internal:6379', 'BACKEND': 'redis_cache.RedisCache'}}
182SETTINGS_MODULE = 'dj_represent.eb_production_settings'
183TIME_ZONE = 'UTC'
184TIME_FORMAT = 'P'
185SOCIAL_AUTH_LINKEDIN_SECRET = '********************'
186SITE_ID = 1
187LOGGING_CONFIG = 'logging.config.dictConfig'
188BASE_DIR = '/opt/represent'
189FILE_UPLOAD_TEMP_DIR = None
190SECURE_REDIRECT_EXEMPT = []
191LANGUAGES = [('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'), ('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'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('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 Bokmal'), ('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')]
192ALLOWED_HOSTS = ['*']
193DECIMAL_SEPARATOR = '.'
194TEMPLATE_DIRS = []
195AWS_S3_BUCKET_NAME = 'static.represent.me'
196SECURE_SSL_HOST = None
197USE_THOUSAND_SEPARATOR = False
198FILE_CHARSET = 'utf-8'
199CELERYBEAT_SCHEDULE = {'perodic-updates': {'task': 'tasks.run_perodic_updates', 'schedule': datetime.timedelta(0, 3600)}}
200FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
201CACHE_MIDDLEWARE_SECONDS = 600
202CELERY_ACCEPT_CONTENT = ['json']
203INTERCOM_APP_ID = 'e8wo3ld8'
204AWS_S3_MAX_AGE_SECONDS = 31536000
205DEFAULT_FILE_STORAGE = 'django_s3_storage.storage.S3Storage'
206SILENCED_SYSTEM_CHECKS = []
207STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
208MEDIA_ROOT = '/opt/represent/public/media'
209DEFAULT_TABLESPACE = ''
210STATIC_URL = '/static/'
211SHORT_DATETIME_FORMAT = 'm/d/Y P'
212EMAIL_PORT = 25
213REST_SOCIAL_OAUTH_REDIRECT_URI = '/facebook/login/'
214CSRF_COOKIE_NAME = 'csrftoken'
215INTERCOM_API_KEY = '********************'
216MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
217EMAIL_BACKEND = 'djrill.mail.backends.djrill.DjrillBackend'
218SHORT_DATE_FORMAT = 'm/d/Y'
219AUTHENTICATION_BACKENDS =
220PASSWORD_RESET_TIMEOUT_DAYS = '********************'
221MEDIA_URL = '/media/'
222DOMAIN = 'represent.me'
223REPRESENT_PRIVATE_VOTE_STATS_LIMIT = 100
224STRIPE_SECRET_KEY = '********************'
225SESSION_COOKIE_NAME = 'sessionid'
226SESSION_ENGINE = 'django.contrib.sessions.backends.db'
227FILE_UPLOAD_PERMISSIONS = None
228NEWSLETTER_SECRET_KEY = '********************'
229EMAIL_SSL_KEYFILE = '********************'
230SOCIAL_AUTH_TWITTER_SECRET = '********************'
231SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = '********************'
232YEAR_MONTH_FORMAT = 'F Y'
233EMAIL_HOST_USER = ''
234LANGUAGE_CODE = 'en-us'
235DEFAULT_FROM_EMAIL = 'admin@represent.me'
236SESSION_FILE_PATH = None
237AUTH_USER_MODEL = 'represent_app.UserExtra'
238SEGMENT_WRITE_KEY = '********************'
239EMAIL_USE_TLS = False
240SESSION_COOKIE_HTTPONLY = True
241CELERY_RESULT_SERIALIZER = 'json'
242PUSH_NOTIFICATIONS_SETTINGS = {'APNS_MAX_NOTIFICATION_SIZE': 2048, 'GCM_API_KEY': '********************', 'APNS_CERTIFICATE': '/opt/represent/ios/pushcert.pem', 'APNS_PORT': 2195, 'GCM_POST_URL': 'https://android.googleapis.com/gcm/send', 'GCM_MAX_RECIPIENTS': 1000, 'APNS_HOST': 'gateway.push.apple.com', 'APNS_FEEDBACK_PORT': 2196, 'APNS_FEEDBACK_HOST': 'feedback.push.apple.com', 'APNS_ERROR_TIMEOUT': None}
243AWS_SECRET_ACCESS_KEY = '********************'
244SECRET_KEY = '********************'
245MANDRILL_API_KEY = '********************'
246SOCIAL_AUTH_GOOGLE_OAUTH2_SCOPE = ['https://www.googleapis.com/auth/plus.login']
247SECURE_SSL_REDIRECT = False
248SOCIAL_AUTH_LINKEDIN_FIELD_SELECTORS = ['email-address', 'headline', 'industry']
249CSRF_COOKIE_AGE = 31449600
250SESSION_COOKIE_AGE = 1209600
251SECURE_PROXY_SSL_HEADER = None
252CSRF_COOKIE_PATH = '/'
253X_FRAME_OPTIONS = 'SAMEORIGIN'
254MANAGERS = []
255ADMINS = [('Alex', 'chozabu@gmail.com'), ('Ed', 'ed@represent.me'), ('Andew', 'andrfas@gmail.com'), ('Louis', 'louis@represent.me')]
256USE_I18N = True
257SECURE_HSTS_INCLUDE_SUBDOMAINS = False
258TEMPLATE_STRING_IF_INVALID = ''
259PREPEND_WWW = False
260PASSWORD_HASHERS = '********************'
261DJSTRIPE_PLANS = {'monthly_5': {'description': 'Get us going', 'price': 500, 'stripe_plan_id': 'monthly_5', 'name': 'Monthly Fiver', 'currency': 'gbp', 'plan': 'monthly_5', 'interval': 'month'}, 'monthly_10': {'description': 'Practical support', 'price': 1000, 'stripe_plan_id': 'monthly_10', 'name': 'Monthly Tenner', 'currency': 'gbp', 'plan': 'monthly_10', 'interval': 'month'}, 'monthly_001': {'description': 'Just show you are a real person', 'price': 1, 'stripe_plan_id': 'monthly_001', 'name': 'Monthly Penny', 'currency': 'gbp', 'plan': 'monthly_001', 'interval': 'month'}, 'monthly_25': {'description': 'Help us pay for the server', 'price': 2500, 'stripe_plan_id': 'monthly_25', 'name': 'Monthly Twenty-Five', 'currency': 'gbp', 'plan': 'monthly_25', 'interval': 'month'}, 'monthly_50': {'description': 'Help us upgrade Democracy', 'price': 5000, 'stripe_plan_id': 'monthly_50', 'name': 'Monthly Fifty', 'currency': 'gbp', 'plan': 'monthly_50', 'interval': 'month'}, 'monthly_1': {'description': 'Help us just a little', 'price': 2499, 'stripe_plan_id': 'monthly_1', 'name': 'Monthly Pound', 'currency': 'gbp', 'plan': 'monthly_1', 'interval': 'month'}}
262SERVER_EMAIL = 'Represent <hello@represent.me>"'
263LOG_REQUEST_TIMES = True
264DBBACKUP_STORAGE_OPTIONS = {'location': './'}
265AWS_ACCESS_KEY_ID = '********************'
266MIGRATION_MODULES = {}
267SECURE_BROWSER_XSS_FILTER = False
268SOCIAL_AUTH_PIPELINE =
269APPEND_SLASH = True
270LOGIN_URL = '/accounts/login/'
271LANGUAGE_COOKIE_AGE = None
272CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
273FULL_DOMAIN = 'https://represent.me'
274CACHE_MIDDLEWARE_ALIAS = 'default'
275NUMBER_GROUPING = 0
276SESSION_EXPIRE_AT_BROWSER_CLOSE = False
277IGNORABLE_404_URLS = []
278WSGI_APPLICATION = 'dj_represent.wsgi.application'
279APP_FRONTEND_ROOT = '/opt/represent/_frontend2016'
280LANGUAGE_COOKIE_NAME = 'django_language'
281BROKER_URL = 'redis://:AV8YhD4OR01s@ip-172-31-29-246.eu-central-1.compute.internal:6379/0'
282SOCIAL_AUTH_LINKEDIN_SCOPE = ['r_basicprofile', 'r_emailaddress']
283SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
284DATE_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']
285LOGGING = {'loggers': {'': {'level': 'INFO', 'propagate': True, 'handlers': ['console']}, 'segment': {'level': 'DEBUG', 'propagate': True, 'handlers': ['console']}, 'django.request': {'level': 'ERROR', 'propagate': False, 'handlers': ['mail_admins']}}, 'version': 1, 'handlers': {'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'simple'}, 'mail_admins': {'level': 'ERROR', 'class': 'django.utils.log.AdminEmailHandler'}}, 'formatters': {'simple': {'format': '%(levelname)s %(message)s'}}}
286EMAIL_USE_SSL = False
287SESSION_COOKIE_DOMAIN = None
288EMAIL_TIMEOUT = None
289APP_STATIC_ROOT = '/opt/represent/represent_app/static'
290DEBUG = False
291USE_ETAGS = False
292DEFAULT_CHARSET = 'utf-8'
293SESSION_CACHE_ALIAS = 'default'
294RAVEN_CONFIG = {'dsn': 'https://c79f1272dd2743fe9adcc98aab31f0c1:7019ff634c2a4490a9f0b724f4b470ba@app.getsentry.com/85014'}
295DJOSER = {'SERIALIZERS': {'login': 'represent_app.serializers.LoginSerializer'}, 'PASSWORD_RESET_CONFIRM_URL': '********************', 'SITE_NAME': 'Represent', 'DOMAIN': 'represent.me', 'ACTIVATION_URL': 'activate/{uid}/{token}/'}
296SOCIAL_AUTH_FACEBOOK_SCOPE = ['email', 'user_friends', 'user_location', 'user_birthday', 'user_about_me', 'user_hometown']
297TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
298EMAIL_HOST = 'localhost'
299SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
300DATABASE_ROUTERS = []
301DEFAULT_INDEX_TABLESPACE = ''
302TEMPLATE_LOADERS = ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader']
303FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
304ALLOWED_INCLUDE_ROOTS = []
305USE_L10N = True
306FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
307STATIC_ROOT = '/opt/represent/public/static'
308THOUSAND_SEPARATOR = ','
309SOCIAL_AUTH_LINKEDIN_KEY = '********************'
310CSRF_COOKIE_HTTPONLY = False
311LANGUAGE_COOKIE_DOMAIN = None
312EMAIL_SSL_CERTFILE = None
313SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = '********************'
314FIXTURE_DIRS = []
315CELERY_TASK_SERIALIZER = 'json'
316AUTH_PASSWORD_VALIDATORS = '********************'
317DATETIME_FORMAT = 'N j, Y, P'
318STATICFILES_DIRS = []
319USE_X_FORWARDED_HOST = True
320FB_REDIRECT_URL = 'https://represent.me/facebook/login/'
321LOGIN_SECRET_KEY = '********************'
322MIDDLEWARE_CLASSES = ['django.middleware.gzip.GZipMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', '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', 'represent_app.disable_csrf.DisableCSRF', 'represent_app.profiling_middleware.LoggingMiddleware']
323DEBUG_REMOTE_NOTIFICATION_USER_IDS = []
324TEMPLATE_CONTEXT_PROCESSORS = ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages']
325CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
326CSRF_TRUSTED_ORIGINS = []
327LOCALE_PATHS = []
328DATE_FORMAT = 'N j, Y'
329LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
330ROOT_URLCONF = 'dj_represent.urls'
331CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
332FORCE_SCRIPT_NAME = None
333DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
334CSRF_COOKIE_SECURE = False
335INSTALLED_APPS = ['raven.contrib.django.raven_compat', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.gis', 'django.contrib.humanize', 'django.contrib.sites', 'corsheaders', 'ajax_select', 'bulk_admin', 'push_notifications', 'generic_relations', 'rest_framework', 'rest_framework_gis', 'rest_framework.authtoken', 'oauth2_provider', 'social.apps.django_app.default', 'rest_framework_social_oauth2', 'rest_social_auth', 'djoser', 'djrill', 'popolo', 'django_extensions', 'crispy_forms', 'dbbackup', 'represent_app', 'massadmin', 'djgeojson', 'rest_framework_swagger', 'django_spaghetti', 'markdown_deux', 'djstripe', 'django_s3_storage']
336SOCIAL_AUTH_FACEBOOK_SECRET = '********************'
337AWS_REGION = 'eu-central-1'
338FIRST_DAY_OF_WEEK = 0
339TEST_NON_SERIALIZED_APPS = []
340LOGOUT_URL = '/accounts/logout/'
341CELERY_RESULT_BACKEND = 'redis://:AV8YhD4OR01s@ip-172-31-29-246.eu-central-1.compute.internal:6379/0'
342SECURE_HSTS_SECONDS = 0
343SPAGHETTI_SAUCE = {'apps': ['dj_represent', 'represent_app'], 'show_fields': False, 'exclude': {'auth': ['user']}}
344REST_FRAMEWORK = {'DEFAULT_PAGINATION_CLASS': 'represent_app.pagination.SensiblePagination', 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticatedOrReadOnly',), 'PAGE_SIZE': 10, 'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.TokenAuthentication', 'rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication', 'oauth2_provider.ext.rest_framework.OAuth2Authentication', 'rest_framework_social_oauth2.authentication.SocialAuthentication'), 'DEFAULT_FILTER_BACKENDS': ('rest_framework_filters.backends.DjangoFilterBackend', 'rest_framework.filters.SearchFilter', 'represent_app.ordering.RelatedOrderingFilter')}
345INTERNAL_IPS = []
346USE_TZ = True
347STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
348FORMAT_MODULE_PATH = None
349MONTH_DAY_FORMAT = 'F j'
350SOCIAL_AUTH_LINKEDIN_EXTRA_DATA = [('id', 'id'), ('firstName', 'first_name'), ('lastName', 'last_name'), ('emailAddress', 'email_address'), ('headline', 'headline'), ('industry', 'industry')]
351SOCIAL_AUTH_FACEBOOK_KEY = '********************'
352TEST_RUNNER = 'django.test.runner.DiscoverRunner'
353TEMPLATE_DEBUG = False
354SESSION_COOKIE_PATH = '/'
355SESSION_COOKIE_SECURE = False
356REST_SOCIAL_OAUTH_ABSOLUTE_REDIRECT_URI = 'https://represent.me/facebook/login/'
357DATETIME_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']
358ABSOLUTE_URL_OVERRIDES = {}
359DATABASES = {'default': {'ATOMIC_REQUESTS': False, 'NAME': 'ebdb', 'PORT': '5432', 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'OPTIONS': {}, 'AUTOCOMMIT': True, 'TIME_ZONE': None, 'CONN_MAX_AGE': 0, 'USER': 'root', 'HOST': 'aa1474cgfmvgink.crbi3uoytwux.eu-central-1.rds.amazonaws.com', 'PASSWORD': '********************', 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
360SOCIAL_AUTH_TWITTER_KEY = '********************'
361EMAIL_HOST_PASSWORD = '********************'
362SESSION_SAVE_EVERY_REQUEST = False
363CSRF_COOKIE_DOMAIN = None
364USE_X_FORWARDED_PORT = False
365CORS_ORIGIN_ALLOW_ALL = True