Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 error on clicking on photos #100

Open
guysoft opened this issue Apr 28, 2019 · 4 comments
Open

500 error on clicking on photos #100

guysoft opened this issue Apr 28, 2019 · 4 comments

Comments

@guysoft
Copy link
Collaborator

guysoft commented Apr 28, 2019

Responce when clicking on an image in the timeline gallery:

Request URL:https://pics.gnethomelinux.com/api/photos/53850ce52009a61282f7a8a26a688c211/
Request method:GET

Result:

TypeError at /api/photos/53850ce52009a61282f7a8a26a688c211/
list indices must be integers or slices, not str

Request Method: GET
Request URL: https://backend/api/photos/53850ce52009a61282f7a8a26a688c211/
Django Version: 2.1.2
Python Executable: /miniconda/bin/python
Python Version: 3.6.8
Python Path: ['', '/code', '/miniconda/bin', '/miniconda/lib/python36.zip', '/miniconda/lib/python3.6', '/miniconda/lib/python3.6/lib-dynload', '/miniconda/lib/python3.6/site-packages', '/miniconda/lib/python3.6/site-packages/dlib-19.17.99-py3.6-linux-x86_64.egg', '/miniconda/lib/python3.6/site-packages/IPython/extensions', '/root/.ipython']
Server time: Sun, 28 Apr 2019 17:41:15 +0000
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.postgres',
 'api',
 'nextcloud',
 'rest_framework',
 'corsheaders',
 'django_extensions',
 'django_rq',
 'constance',
 'constance.backends.database']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'corsheaders.middleware.CorsMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'api.middleware.FingerPrintMiddleware']


Traceback:

File "/miniconda/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  34.             response = get_response(request)

File "/miniconda/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  126.                 response = self.process_exception_by_middleware(e, request)

File "/miniconda/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  124.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/miniconda/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
  54.         return view_func(*args, **kwargs)

File "/miniconda/lib/python3.6/site-packages/rest_framework/viewsets.py" in view
  103.             return self.dispatch(request, *args, **kwargs)

File "/miniconda/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  483.             response = self.handle_exception(exc)

File "/miniconda/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
  443.             self.raise_uncaught_exception(exc)

File "/miniconda/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  480.             response = handler(request, *args, **kwargs)

File "/miniconda/lib/python3.6/site-packages/rest_framework_extensions/cache/decorators.py" in inner
  48.                 kwargs=kwargs,

File "/miniconda/lib/python3.6/site-packages/rest_framework_extensions/cache/decorators.py" in process_cache_response
  67.             response = view_method(view_instance, request, *args, **kwargs)

File "/code/api/views.py" in retrieve
  213.         return super(PhotoViewSet, self).retrieve(*args, **kwargs)

File "/miniconda/lib/python3.6/site-packages/rest_framework/mixins.py" in retrieve
  58.         return Response(serializer.data)

File "/miniconda/lib/python3.6/site-packages/rest_framework/serializers.py" in data
  560.         ret = super(Serializer, self).data

File "/miniconda/lib/python3.6/site-packages/rest_framework/serializers.py" in data
  262.                 self._data = self.to_representation(self.instance)

File "/miniconda/lib/python3.6/site-packages/rest_framework/serializers.py" in to_representation
  527.                 ret[field.field_name] = field.to_representation(attribute)

File "/miniconda/lib/python3.6/site-packages/rest_framework/fields.py" in to_representation
  1855.         return method(value)

File "/code/api/serializers.py" in get_similar_photos
  110.         return [ {'image_hash':e} for e in res['result']]

Exception Type: TypeError at /api/photos/53850ce52009a61282f7a8a26a688c211/
Exception Value: list indices must be integers or slices, not str
Request information:
USER: admin

GET: No GET data

POST: No POST data

FILES: No FILES data

COOKIES:
__utma = '110183123.2027832343.1555191015.1555315907.1556300497.5'
__utmz = '110183123.1555191015.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)'
csrftoken = 'GVLYBjnizbHmH3v56uQSgYa3nmdzKEOZwdvdzbiUJA7rskgsyEt0rUkijhSvO4qC'
jwt = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNTU2NDczMzczLCJqdGkiOiIxYmYxODllOTEzM2I0MGNmYmYzMzAxZjE5MTg1MTgyYiIsInVzZXJfaWQiOjEsIm5hbWUiOiJhZG1pbiIsImlzX2FkbWluIjp0cnVlLCJmaXJzdF9uYW1lIjoiIiwibGFzdF9uYW1lIjoiIiwic2Nhbl9kaXJlY3RvcnkiOiIvZGF0YSIsIm5leHRjbG91ZF9zZXJ2ZXJfYWRkcmVzcyI6bnVsbCwibmV4dGNsb3VkX3VzZXJuYW1lIjpudWxsfQ.2IpH8x08YwBZaizCsa0SJKAOciQ_P13XAUd-1aT3jQ0'
test = 'refresh'

META:
CSRF_COOKIE = 'GVLYBjnizbHmH3v56uQSgYa3nmdzKEOZwdvdzbiUJA7rskgsyEt0rUkijhSvO4qC'
HTTP_ACCEPT = 'application/json, text/plain, */*'
HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
HTTP_ACCEPT_LANGUAGE = 'en-US,en;q=0.7,he;q=0.3'
HTTP_AUTHORIZATION = 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNTU2NDczMzczLCJqdGkiOiIxYmYxODllOTEzM2I0MGNmYmYzMzAxZjE5MTg1MTgyYiIsInVzZXJfaWQiOjEsIm5hbWUiOiJhZG1pbiIsImlzX2FkbWluIjp0cnVlLCJmaXJzdF9uYW1lIjoiIiwibGFzdF9uYW1lIjoiIiwic2Nhbl9kaXJlY3RvcnkiOiIvZGF0YSIsIm5leHRjbG91ZF9zZXJ2ZXJfYWRkcmVzcyI6bnVsbCwibmV4dGNsb3VkX3VzZXJuYW1lIjpudWxsfQ.2IpH8x08YwBZaizCsa0SJKAOciQ_P13XAUd-1aT3jQ0'
HTTP_CONNECTION = 'close'
HTTP_COOKIE = '__utma=110183123.2027832343.1555191015.1555315907.1556300497.5; __utmz=110183123.1555191015.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); csrftoken=GVLYBjnizbHmH3v56uQSgYa3nmdzKEOZwdvdzbiUJA7rskgsyEt0rUkijhSvO4qC; jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNTU2NDczMzczLCJqdGkiOiIxYmYxODllOTEzM2I0MGNmYmYzMzAxZjE5MTg1MTgyYiIsInVzZXJfaWQiOjEsIm5hbWUiOiJhZG1pbiIsImlzX2FkbWluIjp0cnVlLCJmaXJzdF9uYW1lIjoiIiwibGFzdF9uYW1lIjoiIiwic2Nhbl9kaXJlY3RvcnkiOiIvZGF0YSIsIm5leHRjbG91ZF9zZXJ2ZXJfYWRkcmVzcyI6bnVsbCwibmV4dGNsb3VkX3VzZXJuYW1lIjpudWxsfQ.2IpH8x08YwBZaizCsa0SJKAOciQ_P13XAUd-1aT3jQ0; test=refresh'
HTTP_HOST = 'backend'
HTTP_REFERER = 'https://pics.gnethomelinux.com/'
HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0'
HTTP_X_FORWARDED_FOR = '109.226.44.150, 172.19.0.14'
HTTP_X_FORWARDED_PORT = '443'
HTTP_X_FORWARDED_PROTO = 'https'
HTTP_X_FORWARDED_SSL = 'on'
HTTP_X_REAL_IP = '172.19.0.14'
PATH_INFO = '/api/photos/53850ce52009a61282f7a8a26a688c211/'
QUERY_STRING = ''
RAW_URI = '/api/photos/53850ce52009a61282f7a8a26a688c211/'
REMOTE_ADDR = '127.0.0.1'
REMOTE_PORT = '55250'
REQUEST_METHOD = 'GET'
SCRIPT_NAME = ''
SERVER_NAME = '0.0.0.0'
SERVER_PORT = '8001'
SERVER_PROTOCOL = 'HTTP/1.0'
SERVER_SOFTWARE = 'gunicorn/19.8.1'
gunicorn.socket = <gevent._socket3.socket object, fd=22, family=2, type=2049, proto=0>
wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fb0402ee5f8>
wsgi.file_wrapper = ''
wsgi.input = <gunicorn.http.body.Body object at 0x7fb0408dea90>
wsgi.multiprocess = True
wsgi.multithread = True
wsgi.run_once = False
wsgi.url_scheme = 'https'
wsgi.version = '(1, 0)'

Settings:
Using settings module ownphotos.settings
ABSOLUTE_URL_OVERRIDES = {}
ADMINS = []
ALLOWED_HOSTS = ['192.168.1.100', 'localhost', 'ownphotos-api.local', 'backend', 'backend', 'ownphotos.local']
APPEND_SLASH = True
AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
AUTH_PASSWORD_VALIDATORS = '********************'
AUTH_USER_MODEL = 'api.User'
BASE_DIR = '/code'
CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://ownphotos-redis:6379/1', 'TIMEOUT': 86400, 'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient'}}}
CACHE_MIDDLEWARE_ALIAS = 'default'
CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
CACHE_MIDDLEWARE_SECONDS = 600
CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'
CONSTANCE_CONFIG = {'ALLOW_REGISTRATION': (False, 'Publicly allow user registration', <class 'bool'>)}
CONSTANCE_DATABASE_CACHE_BACKEND = 'default'
CORS_ALLOW_CREDENTIALS = True
CORS_ALLOW_HEADERS = "('cache-control', 'accept', 'accept-encoding', 'allow-credentials', 'withcredentials', 'authorization', 'content-type', 'dnt', 'origin', 'user-agent', 'x-csrftoken', 'x-requested-with')"
CORS_ORIGIN_ALLOW_ALL = False
CORS_ORIGIN_WHITELIST = "('localhost:3000', '192.168.1.100:3000')"
CRYPTOGRAPHY_BACKEND = <cryptography.hazmat.backends.openssl.backend.Backend object at 0x7fb08a36e978>
CRYPTOGRAPHY_DIGEST = <cryptography.hazmat.primitives.hashes.SHA256 object at 0x7fb0491a62b0>
CRYPTOGRAPHY_KEY = '********************'
CRYPTOGRAPHY_SALT = b'django-cryptography'
CSRF_COOKIE_AGE = 31449600
CSRF_COOKIE_DOMAIN = None
CSRF_COOKIE_HTTPONLY = False
CSRF_COOKIE_NAME = 'csrftoken'
CSRF_COOKIE_PATH = '/'
CSRF_COOKIE_SAMESITE = 'Lax'
CSRF_COOKIE_SECURE = False
CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS = []
CSRF_USE_SESSIONS = False
DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql', 'NAME': 'ownphotos', 'USER': 'postgres', 'PASSWORD': '********************', 'HOST': 'ownphotos-db', 'PORT': '5432', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
DATABASE_ROUTERS = []
DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
DATETIME_FORMAT = 'N j, Y, P'
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']
DATE_FORMAT = 'N j, Y'
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']
DEBUG = True
DEBUG_PROPAGATE_EXCEPTIONS = False
DECIMAL_SEPARATOR = '.'
DEFAULT_CHARSET = 'utf-8'
DEFAULT_CONTENT_TYPE = 'text/html'
DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL = 'webmaster@localhost'
DEFAULT_INDEX_TABLESPACE = ''
DEFAULT_TABLESPACE = ''
DISALLOWED_USER_AGENTS = []
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'localhost'
EMAIL_HOST_PASSWORD = '********************'
EMAIL_HOST_USER = ''
EMAIL_PORT = 25
EMAIL_SSL_CERTFILE = None
EMAIL_SSL_KEYFILE = '********************'
EMAIL_SUBJECT_PREFIX = '[Django] '
EMAIL_TIMEOUT = None
EMAIL_USE_LOCALTIME = False
EMAIL_USE_SSL = False
EMAIL_USE_TLS = False
FILE_CHARSET = 'utf-8'
FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', '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
FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
FULLPHOTO_SIZE = '(1000, 1000)'
IGNORABLE_404_URLS = []
IMAGE_SIMILARITY_SERVER = 'http://localhost:8002'
INSTALLED_APPS = ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.postgres', 'api', 'nextcloud', 'rest_framework', 'corsheaders', 'django_extensions', 'django_rq', 'constance', 'constance.backends.database']
INTERNAL_IPS = "('127.0.0.1', 'localhost', '192.168.1.100')"
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')]
LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
LANGUAGE_CODE = 'en-us'
LANGUAGE_COOKIE_AGE = None
LANGUAGE_COOKIE_DOMAIN = None
LANGUAGE_COOKIE_NAME = 'django_language'
LANGUAGE_COOKIE_PATH = '/'
LOCALE_PATHS = []
LOGGING = {}
LOGGING_CONFIG = 'logging.config.dictConfig'
LOGIN_REDIRECT_URL = '/accounts/profile/'
LOGIN_URL = '/accounts/login/'
LOGOUT_REDIRECT_URL = None
MANAGERS = []
MEDIA_ROOT = '/code/protected_media'
MEDIA_URL = '/media/'
MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'api.middleware.FingerPrintMiddleware']
MIGRATION_MODULES = {}
MONTH_DAY_FORMAT = 'F j'
NUMBER_GROUPING = 0
PASSWORD_HASHERS = '********************'
PASSWORD_RESET_TIMEOUT_DAYS = '********************'
PREPEND_WWW = False
REST_FRAMEWORK = {'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',), 'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework_simplejwt.authentication.JWTAuthentication', 'rest_framework.authentication.SessionAuthentication', 'rest_framework.authentication.BasicAuthentication'), 'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',), 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', 'PAGE_SIZE': 20000}
REST_FRAMEWORK_EXTENSIONS = {'DEFAULT_OBJECT_CACHE_KEY_FUNC': '********************', 'DEFAULT_LIST_CACHE_KEY_FUNC': '********************'}
ROOT_URLCONF = 'ownphotos.urls'
RQ_API_TOKEN = '********************'
RQ_QUEUES = {'default': {'USE_REDIS_CACHE': 'default', 'DEFAULT_TIMEOUT': -1, 'DB': 0}}
SECRET_KEY = '********************'
SECURE_BROWSER_XSS_FILTER = False
SECURE_CONTENT_TYPE_NOSNIFF = False
SECURE_HSTS_INCLUDE_SUBDOMAINS = False
SECURE_HSTS_PRELOAD = False
SECURE_HSTS_SECONDS = 0
SECURE_PROXY_SSL_HEADER = None
SECURE_REDIRECT_EXEMPT = []
SECURE_SSL_HOST = None
SECURE_SSL_REDIRECT = False
SERVER_EMAIL = 'root@localhost'
SESSION_CACHE_ALIAS = 'default'
SESSION_COOKIE_AGE = 1209600
SESSION_COOKIE_DOMAIN = None
SESSION_COOKIE_HTTPONLY = True
SESSION_COOKIE_NAME = 'sessionid'
SESSION_COOKIE_PATH = '/'
SESSION_COOKIE_SAMESITE = 'Lax'
SESSION_COOKIE_SECURE = False
SESSION_ENGINE = 'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
SESSION_FILE_PATH = None
SESSION_SAVE_EVERY_REQUEST = False
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
SETTINGS_MODULE = 'ownphotos.settings'
SHORT_DATETIME_FORMAT = 'm/d/Y P'
SHORT_DATE_FORMAT = 'm/d/Y'
SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
SILENCED_SYSTEM_CHECKS = []
SIMPLE_JWT = {'ACCESS_TOKEN_LIFETIME': '********************', 'REFRESH_TOKEN_LIFETIME': '********************'}
STATICFILES_DIRS = []
STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
STATIC_ROOT = '/code/static'
STATIC_URL = '/static/'
TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], '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']}}]
TEST_NON_SERIALIZED_APPS = []
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
THOUSAND_SEPARATOR = ','
THUMBNAIL_SIZE = '(500, 500)'
THUMBNAIL_SIZE_BIG = '(2048, 2048)'
THUMBNAIL_SIZE_MEDIUM = '(500, 500)'
THUMBNAIL_SIZE_SMALL = '(100, 100)'
THUMBNAIL_SIZE_TINY = '(30, 30)'
TIME_FORMAT = 'P'
TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
TIME_ZONE = 'UTC'
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 = 'ownphotos.wsgi.application'
X_FRAME_OPTIONS = 'SAMEORIGIN'
YEAR_MONTH_FORMAT = '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.


@aqibmushtaq
Copy link

Having this issue too. Did you get anywhere with it?

@aqibmushtaq
Copy link

aqibmushtaq commented Apr 13, 2020

Temporarily fixed it by replacing line 110 on the /code/api/serializers.py file with
return None

@guysoft
Copy link
Collaborator Author

guysoft commented Apr 13, 2020

You can send a PR
But note the project is mostly dead unless someone helps with maintenance

@aqibmushtaq
Copy link

It's a shame that no one is working on it, I think I'll skill up on my python just to work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants