trojsten / web

Trojstenovy web
MIT License
9 stars 9 forks source link

Submitovatko nefunguje s python3 #923

Closed black3r closed 8 years ago

black3r commented 8 years ago
Internal Server Error: /odovzdavanie/1129/0/

TypeError at /odovzdavanie/1129/0/
a bytes-like object is required, not 'str'

Request Method: POST
Request URL: https://beta.ksp.sk/odovzdavanie/1129/0/
Django Version: 1.9.10
Python Executable: /usr/local/bin/uwsgi
Python Version: 3.5.2
Python Path: ['.', '', '/usr/local/www/trojstenweb/.virtualenvs/trojstenweb/lib/python35.zip', '/usr/local/www/trojstenweb/.virtualenvs/trojstenweb/lib/python3.5', '/usr/local/www/trojstenweb/.virtualenvs/trojstenweb/lib/python3.5/plat-freebsd11', '/usr/local/www/trojstenweb/.virtualenvs/trojstenweb/lib/python3.5/lib-dynload', '/usr/local/lib/python3.5', '/usr/local/lib/python3.5/plat-freebsd11', '/usr/local/www/trojstenweb/.virtualenvs/trojstenweb/lib/python3.5/site-packages', '/usr/local/www/trojstenweb/.virtualenvs/trojstenweb/src/django-fluent-comments', '/usr/local/www/trojstenweb/web']
Server time: št, 27 Okt 2016 19:15:54 +0200
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'trojsten',
 'trojsten.utils',
 'trojsten.people',
 'trojsten.contests',
 'trojsten.tasks',
 'trojsten.events',
 'trojsten.submit',
 'trojsten.results',
 'trojsten.reviews',
 'trojsten.menu',
 'trojsten.threads',
 'trojsten.dbsanitizer',
 'trojsten.login',
 'trojsten.schools',
 'news',
 'tips',
 'django.contrib.admin',
 'social.apps.django_app.default',
 'ksp_login',
 'bootstrapform',
 'contact_form',
 'easy_select2',
 'mathfilters',
 'sortedm2m',
 'favicon',
 'import_export',
 'oauth2_provider',
 'corsheaders',
 'rest_framework',
 'django.contrib.humanize',
 'django_nyt',
 'mptt',
 'sekizai',
 'sorl.thumbnail',
 'wiki',
 'wiki.plugins.attachments',
 'wiki.plugins.notifications',
 'wiki.plugins.images',
 'wiki.plugins.macros',
 'taggit',
 'kombu.transport.django',
 'haystack',
 'fluent_comments',
 'crispy_forms',
 'django_comments',
 'threadedcomments',
 'trojsten.special.plugin_ksp_32_1_1',
 'trojsten.special.plugin_ksp_32_2_1',
 'trojsten.special.plugin_ksp_32_3_1',
 'trojsten.special.plugin_prask_1_2_1',
 'trojsten.special.plugin_prask_1_2_3',
 'trojsten.special.plugin_prask_2_1_3',
 'trojsten.special.plugin_prask_2_2_3',
 'trojsten.special.plugin_prask_2_3_3',
 'trojsten.special.plugin_prask_2_4_1',
 'trojsten.special.plugin_prask_2_4_3')
Installed Middleware:
('corsheaders.middleware.CorsMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'social.apps.django_app.middleware.SocialAuthExceptionMiddleware')

Traceback:  

File "/usr/local/www/trojstenweb/.virtualenvs/trojstenweb/lib/python3.5/site-packages/django/core/handlers/base.py" in get_response
  149.                     response = self.process_exception_by_middleware(e, request)

File "/usr/local/www/trojstenweb/.virtualenvs/trojstenweb/lib/python3.5/site-packages/django/core/handlers/base.py" in get_response
  147.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/usr/local/www/trojstenweb/.virtualenvs/trojstenweb/lib/python3.5/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  23.                 return view_func(request, *args, **kwargs)

File "./trojsten/submit/views.py" in task_submit_post
  275.             submit_id = process_submit(sfile, task, language, request.user)

File "./trojsten/submit/helpers.py" in process_submit
  129.     return process_submit_raw(f, contest_id, task.id, language, user.id)

File "./trojsten/submit/helpers.py" in process_submit_raw
  117.     write_chunks_to_file(os.path.join(path, submit_id + constants.SUBMIT_RAW_FILE_EXTENSION), [raw, data])

File "./trojsten/submit/helpers.py" in write_chunks_to_file
  22.             destination.write(chunk)

Exception Type: TypeError at /odovzdavanie/1129/0/
Exception Value: a bytes-like object is required, not 'str'
Request information:
GET: No GET data

POST:
language = '.'
csrfmiddlewaretoken = 'atQW4Ct0quaz69smJg1IdzapoCrMsCeV'
redirect_to = '/ulohy/zadania/1129/'

FILES:
submit_file = <InMemoryUploadedFile: pizza.cc (text/plain)>

COOKIES:
sessionid = 'epscp01mtxn9yimb0jn3ixkmjj1q8xsh'
_gat = '1'
csrftoken = 'atQW4Ct0quaz69smJg1IdzapoCrMsCeV'
_ga = 'GA1.2.1841582148.1477583322'

META:
SCRIPT_NAME = ''
REMOTE_ADDR = '158.195.227.128'
wsgi.input = <uwsgi._Input object at 0x80be05180>
HTTP_COOKIE = 'sessionid=epscp01mtxn9yimb0jn3ixkmjj1q8xsh; csrftoken=atQW4Ct0quaz69smJg1IdzapoCrMsCeV; _ga=GA1.2.1841582148.1477583322; _gat=1'
wsgi.multiprocess = False
HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
HTTP_UPGRADE_INSECURE_REQUESTS = '1'
REQUEST_SCHEME = 'https'
HTTP_ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
HTTP_REFERER = 'https://beta.ksp.sk/ulohy/zadania/1129/'
REQUEST_METHOD = 'POST'
HTTP_CONTENT_LENGTH = '975'
REMOTE_PORT = '59713'
PATH_INFO = '/odovzdavanie/1129/0/'
CONTENT_TYPE = 'multipart/form-data; boundary=----WebKitFormBoundarybUUcw4d8BwSGhdit'
SERVER_PROTOCOL = 'HTTP/2.0'
QUERY_STRING = ''
uwsgi.version = b'2.0.13'
HTTPS = 'on'
HTTP_CACHE_CONTROL = 'max-age=0'
wsgi.url_scheme = 'https'
wsgi.file_wrapper = ''
DOCUMENT_ROOT = '/usr/local/etc/nginx/html'
wsgi.errors = <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'>
HTTP_CONTENT_TYPE = 'multipart/form-data; boundary=----WebKitFormBoundarybUUcw4d8BwSGhdit'
REQUEST_URI = '/odovzdavanie/1129/0/'
CSRF_COOKIE = 'atQW4Ct0quaz69smJg1IdzapoCrMsCeV'
HTTP_ORIGIN = 'https://beta.ksp.sk'
wsgi.multithread = False
uwsgi.node = b'seminarove-weby'
HTTP_HOST = 'beta.ksp.sk'
SERVER_PORT = '443'
wsgi.version = 
HTTP_ACCEPT_LANGUAGE = 'en-US,en;q=0.8,sk;q=0.6,cs;q=0.4'
SERVER_NAME = 'beta.ksp.sk'
wsgi.run_once = False
HTTP_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36'
CONTENT_LENGTH = '975'

Settings:
Using settings module trojsten.settings.ksp
MIGRATION_MODULES = {}
SOCIAL_AUTH_TROJSTEN_KEY = '********************'
LANGUAGE_COOKIE_AGE = None
SECURE_SSL_REDIRECT = False
SESSION_COOKIE_DOMAIN = None
CELERY_ACCEPT_CONTENT = ['json']
EMAIL_USE_SSL = False
SUBMIT_DEBUG = False
ELASTICSEARCH_ANALYZER = {'ascii_analyser': {'tokenizer': 'standard', 'filter': ['standard', 'asciifolding', 'lowercase']}}
ALLOWED_HOSTS = ['beta.ksp.sk', 'betapraks.ksp.sk', 'login.trojsten.sk', 'betalogin.trojsten.sk']
EMAIL_USE_TLS = False
DATETIME_FORMAT = 'N j, Y, P'
TESTER_PORT = 12348
LOGGING = {'loggers': {'django.request': {'level': 'ERROR', 'handlers': ['mail_admins'], 'propagate': True}}, 'version': 1, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}, 'skip_unreadable_posts': {'()': 'django.utils.log.CallbackFilter', 'callback': <function skip_unreadable_post at 0x808b5cbf8>}}, 'handlers': {'mail_admins': {'level': 'ERROR', 'filters': ['require_debug_false', 'skip_unreadable_posts'], 'class': 'django.utils.log.AdminEmailHandler'}}, 'disable_existing_loggers': False}
SENDFILE_BACKEND = 'sendfile.backends.xsendfile'
ROUND_PROGRESS_WARNING_CLASS = 'progress-bar-warning'
CSRF_COOKIE_PATH = '/'
SESSION_ENGINE = 'django.contrib.sessions.backends.db'
SOCIAL_AUTH_GITHUB_SECRET = '********************'
TESTER_URL = 'ksp.sk'
TASK_STATEMENTS_SUFFIX_YEAR = 'rocnik'
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'), ('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')]
FAVICON_PATH = '/static/images/favicon.ico'
FORMAT_MODULE_PATH = None
CSRF_COOKIE_NAME = 'csrftoken'
CSRF_COOKIE_HTTPONLY = False
SOCIAL_AUTH_FACEBOOK_KEY = '********************'
FIRST_DAY_OF_WEEK = 0
PASSWORD_RESET_TIMEOUT_DAYS = '********************'
MARKDOWN_EXTENSIONS = ['pymdownx.github', 'attr_list', 'codehilite', 'sane_lists']
SHORT_DATETIME_FORMAT = 'm/d/Y P'
DECIMAL_SEPARATOR = '.'
X_FRAME_OPTIONS = 'SAMEORIGIN'
ALLOWED_PICTURE_EXT = {'.gif', '.png', '.jpg', '.webp'}
FORCE_SCRIPT_NAME = None
SILENCED_SYSTEM_CHECKS = []
STATICFILES_DIRS = 
SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = {'fields': 'id,name,email', 'locale': 'sk_SK'}
CRISPY_TEMPLATE_PACK = 'bootstrap3'
WIKI_ACCOUNT_HANDLING = False
LOGIN_ERROR_URL = '/ucet/login/'
USE_X_FORWARDED_PORT = False
NUMBER_GROUPING = 0
LANGUAGE_COOKIE_NAME = 'django_language'
DEBUG = False
AUTHENTICATION_BACKENDS = 
SOCIAL_AUTH_FACEBOOK_SECRET = '********************'
MONTH_DAY_FORMAT = 'F j'
SESSION_COOKIE_PATH = '/'
DEFAULT_COMPETITION_RULES = 'trojsten.rules.default.CompetitionRules'
TASK_STATEMENTS_PDF = 'zadania.pdf'
AUTH_USER_MODEL = 'people.User'
FILE_UPLOAD_TEMP_DIR = None
SHORT_DATE_FORMAT = 'm/d/Y'
DISALLOWED_USER_AGENTS = []
EMAIL_SSL_CERTFILE = None
TASK_STATEMENTS_PICTURES_DIR = 'obrazky'
FIXTURE_DIRS = []
SECURE_CONTENT_TYPE_NOSNIFF = False
DATABASE_ROUTERS = []
INSTALLED_APPS = 
TEMPLATE_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']
SECURE_SSL_HOST = None
SECURE_REDIRECT_EXEMPT = []
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']
ROOT_URLCONF = 'trojsten.urls.default'
TEMPLATES = [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'OPTIONS': {'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.template.context_processors.request', 'django.contrib.messages.context_processors.messages', 'sekizai.context_processors.sekizai', 'ksp_login.context_processors.login_providers_both', 'trojsten.context_processors.current_site', 'trojsten.context_processors.version_string']}}]
LOGIN_URL = '/ucet/login/'
HAYSTACK_CONNECTIONS = {'default': {'INDEX_NAME': 'haystack', 'ENGINE': 'trojsten.search.haystack_custom_backend.AsciifoldingElasticSearchEngine', 'URL': 'http://127.0.0.1:9200/'}}
EMAIL_HOST_USER = ''
CSRF_COOKIE_SECURE = False
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']
SECURE_HSTS_SECONDS = 0
SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
DEFAULT_CONTENT_TYPE = 'text/html'
ELASTICSEARCH_TESTS = True
FILE_UPLOAD_PERMISSIONS = None
SERVER_EMAIL = 'root@localhost'
SECURE_HSTS_INCLUDE_SUBDOMAINS = False
TASK_STATEMENTS_HTML_DIR = 'html'
CSRF_TRUSTED_ORIGINS = []
DEFAULT_CHARSET = 'utf-8'
CACHE_MIDDLEWARE_SECONDS = 600
EMAIL_TIMEOUT = None
DEFAULT_FROM_EMAIL = 'no-reply@trojsten.sk'
SOCIAL_AUTH_GITHUB_SCOPE = ['email']
TASK_STATEMENTS_TASKS_DIR = 'zadania'
NEWS_MARKDOWN_KWARGS = {'safe_mode': False, 'output_format': 'html5', 'extensions': ['pymdownx.github', 'attr_list', 'codehilite', 'sane_lists'], 'extension_configs': {'pymdownx.github': {'no_nl2br': True}}}
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
TEMPLATE_STRING_IF_INVALID = ''
DATABASES = {'default': {'HOST': '10.0.2.4', 'TEST': {'MIRROR': None, 'NAME': None, 'CHARSET': None, 'COLLATION': None}, 'NAME': 'betakspweb', 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'ATOMIC_REQUESTS': False, 'TIME_ZONE': None, 'PORT': '', 'OPTIONS': {}, 'CONN_MAX_AGE': 0, 'AUTOCOMMIT': True, 'USER': 'betakspweb', 'PASSWORD': '********************'}, 'kaspar': {'HOST': '', 'TEST': {'MIRROR': None, 'NAME': None, 'CHARSET': None, 'COLLATION': None}, 'NAME': 'kaspar', 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'ATOMIC_REQUESTS': False, 'TIME_ZONE': None, 'PORT': '', 'OPTIONS': {}, 'CONN_MAX_AGE': 0, 'AUTOCOMMIT': True, 'USER': 'trojsten', 'PASSWORD': '********************'}}
WIKI_MARKDOWN_KWARGS = {'safe_mode': False, 'output_format': 'html5', 'extensions': ['pymdownx.github', 'attr_list', 'codehilite', 'sane_lists', 'footnotes', 'wikilinks'], 'extension_configs': {'pymdownx.github': {'no_nl2br': True}, 'toc': {'title': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x808b63fd0>}}}
PASSWORD_HASHERS = '********************'
USE_TZ = True
COMMENTS_APP = 'fluent_comments'
TASK_STATEMENTS_PREFIX_TASK = 'prikl'
STATIC_URL = '/static/'
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
NAVBAR_SITES = [2, 3, 4, 5]
FLUENT_COMMENTS_EXCLUDE_FIELDS = 
FLUENT_COMMENTS_USE_EMAIL_NOTIFICATION = False
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
WIKI_ATTACHMENTS_USE_SENDFILE = True
LOCALE_PATHS = '/usr/local/www/trojstenweb/web/locale'
TASK_STATEMENTS_SOLUTIONS_DIR = 'vzoraky'
EMAIL_HOST_PASSWORD = '********************'
EMAIL_PORT = 25
LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
CELERY_RESULT_SERIALIZER = 'json'
DATE_FORMAT = 'N j, Y'
MANAGERS = ('All admins', 'roman@ksp.sk')
SECURE_PROXY_SSL_HEADER = None
EMAIL_SUBJECT_PREFIX = '[Django] '
SECRET_KEY = '********************'
MARKDOWN_EXTENSIONS_CONFIGS = {'pymdownx.github': {'no_nl2br': True}}
UPLOADED_FILENAME_MAXLENGTH = 100000
TASK_STATEMENTS_SUFFIX_ROUND = 'kolo'
USE_THOUSAND_SEPARATOR = False
USE_ETAGS = False
MEDIA_URL = '/media/'
WIKI_ATTACHMENTS_PATH = '/usr/local/www/trojstenweb/media/wiki_attachments/%aid/'
LANGUAGE_COOKIE_PATH = '/'
APPEND_SLASH = True
LOGGING_CONFIG = 'logging.config.dictConfig'
TASK_STATEMENTS_PATH = '/usr/local/www/trojstenweb/tasks'
SESSION_COOKIE_AGE = 1209600
CSRF_COOKIE_AGE = 31449600
WSGI_APPLICATION = 'trojsten.wsgi.application'
SESSION_COOKIE_HTTPONLY = True
ROUND_PROGRESS_DEFAULT_CLASS = 'progress-bar-info'
PREPEND_WWW = False
DEFAULT_TABLESPACE = ''
SOCIAL_AUTH_GITHUB_KEY = '********************'
MARKDOWN_SETTINGS = {'safe_mode': False, 'output_format': 'html5', 'extensions': ['pymdownx.github', 'attr_list', 'codehilite', 'sane_lists'], 'extension_configs': {'pymdownx.github': {'no_nl2br': True}}}
YEAR_MONTH_FORMAT = 'F Y'
STATIC_ROOT = '/usr/local/www/trojstenweb/static/'
USE_L10N = True
BROKER_URL = 'django://'
REST_FRAMEWORK = {'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',), 'DEFAULT_AUTHENTICATION_CLASSES': ('oauth2_provider.ext.rest_framework.OAuth2Authentication', 'rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication')}
TROJSTEN_LOGIN_PROVIDER_URL = 'https://betalogin.trojsten.sk'
SITE_ID = 1
SESSION_CACHE_ALIAS = 'default'
CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
PROVIDER_OVERRIDE_DICT = {'google-oauth2': 'Google'}
SETTINGS_MODULE = 'trojsten.settings.ksp'
LOGIN_PROVIDERS = 'trojsten.login.backends.TrojstenOAuth2'
MIDDLEWARE_CLASSES = 
CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
ROUND_PROGRESS_DANGER_CLASS = 'progress-bar-danger'
SESSION_SAVE_EVERY_REQUEST = False
SITES = {1: <trojsten.settings.site_config.KSPSite object at 0x808b6b6a0>, 2: <trojsten.settings.site_config.PraskSite object at 0x808b6b6d8>, 3: <trojsten.settings.site_config.FKSSite object at 0x808b6b710>, 4: <trojsten.settings.site_config.KMSSite object at 0x808b6b748>, 5: <trojsten.settings.site_config.TrojstenSite object at 0x808b6b780>, 6: <trojsten.settings.site_config.WikiSite object at 0x808b6b7b8>, 7: <trojsten.settings.site_config.UFOSite object at 0x808b6b7f0>, 8: <trojsten.settings.site_config.FXSite object at 0x808b6b828>, 9: <trojsten.settings.site_config.IKSSite object at 0x808b6b860>, 10: <trojsten.settings.site_config.LoginSite object at 0x808b6b898>}
CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
HOST_MIDDLEWARE_URLCONF_MAP = {}
SUBMIT_PATH = '/usr/local/www/trojstenweb/submits/'
COMPETITION_RULES = {2: 'trojsten.rules.ksp.KSPRules', 3: 'trojsten.rules.kspt.KSPTRules', 4: 'trojsten.rules.prask.PraskRules', 5: 'trojsten.rules.fks.FKSRules', 6: 'trojsten.rules.ufo.UFORules', 8: 'trojsten.rules.fx.FXRules'}
MEDIA_ROOT = '/usr/local/www/trojstenweb/media/'
EMAIL_SSL_KEYFILE = '********************'
TASK_STATEMENTS_SOLUTIONS_PDF = 'vzoraky.pdf'
TIME_FORMAT = 'P'
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
TEST_NON_SERIALIZED_APPS = []
LOGIN_REDIRECT_URL = '/ucet/'
INTERNAL_IPS = []
THOUSAND_SEPARATOR = ','
WIKI_ATTACHMENTS_EXTENSIONS = ['pdf', 'doc', 'odt', 'docx', 'txt', 'jpg', 'png', 'gif']
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = '********************'
SUBMIT_DESCRIPTION_ALLOWED_EXTENSIONS = ['.pdf']
WIKI_CHECK_SLUG_URL_AVAILABLE = False
AUTH_PASSWORD_VALIDATORS = '********************'
TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
WIKI_EDITOR = 'trojsten.markdown_editors.TrojstenMarkItUp'
DEFAULT_COUNTRY = 'Slovensko'
ALLOWED_INCLUDE_ROOTS = []
CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
PROTOCOL_FILE_EXTENSION = '.protokol'
FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
LANGUAGE_CODE = 'sk-SK'
USE_X_FORWARDED_HOST = False
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
CSRF_COOKIE_DOMAIN = None
SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
IGNORABLE_404_URLS = []
SESSION_COOKIE_SECURE = False
MESSAGE_TAGS = {40: 'danger error'}
LANGUAGE_COOKIE_DOMAIN = None
ROUND_PROGRESS_DANGER_DAYS = 7
SESSION_COOKIE_NAME = 'sessionid'
TIPS_MARKDOWN_KWARGS = {'safe_mode': False, 'output_format': 'html5', 'extensions': ['pymdownx.github', 'attr_list', 'codehilite', 'sane_lists'], 'extension_configs': {'pymdownx.github': {'no_nl2br': True}}}
LOGOUT_URL = '/accounts/logout/'
PROJECT_MODULE_NAME = 'trojsten'
DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
CACHE_MIDDLEWARE_ALIAS = 'default'
TIME_ZONE = 'Europe/Bratislava'
MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
EMAIL_HOST = 'localhost'
FROZEN_RESULTS_PATH = '/usr/local/www/trojstenweb/web/trojsten/frozen_results'
SECURE_BROWSER_XSS_FILTER = False
PROJECT_DIR = '/usr/local/www/trojstenweb/web'
OAUTH2_PROVIDER = {'SCOPES': {'read': 'Read scope', 'groups': 'Access to your groups', 'write': 'Write scope'}}
STATICFILES_FINDERS = 
TEMPLATE_DEBUG = False
SOCIAL_AUTH_TROJSTEN_SECRET = '********************'
TESTER_WEB_IDENTIFIER = 'KSP'
USE_I18N = True
DEFAULT_INDEX_TABLESPACE = ''
SESSION_FILE_PATH = None
FILE_CHARSET = 'utf-8'
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = '********************'
ABSOLUTE_URL_OVERRIDES = {}
AUTHENTICATION_PROVIDERS_BRIEF = 3
TEMPLATE_LOADERS = ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader']
ROUND_PROGRESS_WARNING_DAYS = 14
CORS_ORIGIN_REGEX_WHITELIST = 
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
SOCIAL_AUTH_PIPELINE = 
DEBUG_PROPAGATE_EXCEPTIONS = False
CELERY_TASK_SERIALIZER = 'json'
TEMPLATE_DIRS = []
FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
ADMINS = ('All admins', 'roman@ksp.sk')
FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
black3r commented 8 years ago

@mhozza @syslo myslite ze staci podporovat python 3.5 a novsie?

mhozza commented 8 years ago

Stačí. Čokoľvek, čo pojde na web serveroch je fajn. 3.5 by mala byť available vo všetkých nových distribuciach, takze developeri by nemali mať problém.

On Wed, Nov 2, 2016, 02:42 Roman Hudec notifications@github.com wrote:

@mhozza https://github.com/mhozza @syslo https://github.com/syslo myslite ze staci podporovat python 3.5 a novsie?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/trojsten/web/issues/923#issuecomment-257816607, or mute the thread https://github.com/notifications/unsubscribe-auth/ABH4N6PmExIm2whLvaAmwMhVIywa88F-ks5q6Fr5gaJpZM4KiqUw .

black3r commented 8 years ago

nakoniec som to spravil tak, aby to bolo kompatibilne aj so starsimi (pouzival django smart_bytes), vid. PR #926 ..

black3r commented 8 years ago

brancha (z ktorej je PR) rozbehana na beta.ksp.sk s python 3.5.., submit sa tvari funkcne....