database is locked
Request Method: | GET |
---|---|
Request URL: | http://powiat.turek.pl/news/?page=135 |
Django Version: | 4.0.6 |
Exception Type: | OperationalError |
Exception Value: | database is locked |
Exception Location: | /usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py, line 477, in execute |
Python Executable: | /usr/bin/uwsgi |
Python Version: | 3.10.6 |
Python Path: | ['.', '', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/usr/lib/python3.10/site-packages'] |
Server time: | Tue, 19 Mar 2024 04:30:11 +0100 |
/usr/lib/python3.10/site-packages/django/db/backends/utils.py
, line 89, in _execute
def _execute(self, sql, params, *ignored_wrapper_args):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
# params default might be backend specific.
return self.cursor.execute(sql)
else:
return self.cursor.execute(sql, params)…
def _executemany(self, sql, param_list, *ignored_wrapper_args):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
return self.cursor.executemany(sql, param_list)
Variable | Value |
---|---|
ignored_wrapper_args | (False, {'connection': <django.contrib.gis.db.backends.spatialite.base.DatabaseWrapper object at 0x7efc34b13010>, 'cursor': <django.db.backends.utils.CursorDebugWrapper object at 0x7efc2d8c0400>}) |
params | (1,) |
self | <django.db.backends.utils.CursorDebugWrapper object at 0x7efc2d8c0400> |
sql | ('SELECT "main_setup"."id", "main_setup"."master_terr_unit_id", ' '"main_setup"."news_on_start_page", "main_setup"."long_news_on_start_page", ' '"main_setup"."news_overdate_days", "main_setup"."current_sport_season_id", ' '"main_setup"."cookies_policy_id", "main_setup"."a11y_page_id", ' '"main_setup"."weather_station_type_id", "main_setup"."smog_station_type_id" ' 'FROM "main_setup" WHERE "main_setup"."id" = %s LIMIT 21') |
/usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py
, line 477, in execute
you'll need to use "%%s".
"""
def execute(self, query, params=None):
if params is None:
return Database.Cursor.execute(self, query)
query = self.convert_query(query)
return Database.Cursor.execute(self, query, params)…
def executemany(self, query, param_list):
query = self.convert_query(query)
return Database.Cursor.executemany(self, query, param_list)
def convert_query(self, query):
Variable | Value |
---|---|
params | (1,) |
query | ('SELECT "main_setup"."id", "main_setup"."master_terr_unit_id", ' '"main_setup"."news_on_start_page", "main_setup"."long_news_on_start_page", ' '"main_setup"."news_overdate_days", "main_setup"."current_sport_season_id", ' '"main_setup"."cookies_policy_id", "main_setup"."a11y_page_id", ' '"main_setup"."weather_station_type_id", "main_setup"."smog_station_type_id" ' 'FROM "main_setup" WHERE "main_setup"."id" = ? LIMIT 21') |
self | <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7efc22806560> |
/usr/lib/python3.10/site-packages/django/core/handlers/exception.py
, line 55, in inner
return inner
else:
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | OperationalError('database is locked') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7efc2f983190>> |
request | <WSGIRequest: GET '/news/?page=135'> |
/usr/lib/python3.10/site-packages/django/core/handlers/base.py
, line 197, in _get_response
if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is an asynchronous view, run it in a subthread.
if asyncio.iscoroutinefunction(wrapped_callback):
wrapped_callback = async_to_sync(wrapped_callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
# Complain if the view returned None (a common error).
Variable | Value |
---|---|
callback | <function View.as_view.<locals>.view at 0x7efc2e0b27a0> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <CsrfViewMiddleware get_response=convert_exception_to_response.<locals>.inner>> |
request | <WSGIRequest: GET '/news/?page=135'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7efc2f983190> |
wrapped_callback | <function View.as_view.<locals>.view at 0x7efc2e0b27a0> |
/usr/lib/python3.10/site-packages/django/views/generic/base.py
, line 84, in view
self = cls(**initkwargs)
self.setup(request, *args, **kwargs)
if not hasattr(self, "request"):
raise AttributeError(
"%s instance has no 'request' attribute. Did you override "
"setup() and forget to call super()?" % cls.__name__
)
return self.dispatch(request, *args, **kwargs)…
view.view_class = cls
view.view_initkwargs = initkwargs
# __name__ and __qualname__ are intentionally left unchanged as
# view_class should be used to robustly determine the name of the view
Variable | Value |
---|---|
args | () |
cls | <class 'website.main.views.NewsView'> |
initkwargs | {} |
kwargs | {} |
request | <WSGIRequest: GET '/news/?page=135'> |
self | <website.main.views.NewsView object at 0x7efc2f40c700> |
/usr/lib/python3.10/site-packages/django/views/generic/base.py
, line 119, in dispatch
# request method isn't on the approved list.
if request.method.lower() in self.http_method_names:
handler = getattr(
self, request.method.lower(), self.http_method_not_allowed
)
else:
handler = self.http_method_not_allowed
return handler(request, *args, **kwargs)…
def http_method_not_allowed(self, request, *args, **kwargs):
logger.warning(
"Method Not Allowed (%s): %s",
request.method,
request.path,
Variable | Value |
---|---|
args | () |
handler | <bound method NewsView.get of <website.main.views.NewsView object at 0x7efc2f40c700>> |
kwargs | {} |
request | <WSGIRequest: GET '/news/?page=135'> |
self | <website.main.views.NewsView object at 0x7efc2f40c700> |
/home/website/website/./website/main/views.py
, line 420, in get
# context = prepare_context(request)
# context['news_items'] = NewsItem.objects.all()
# news_form = NewsForm(request.GET)
# context['news_form'] = news_form
# return render(request, 'news.html', context)
def get(self, request):
context = prepare_context(request)…
context['news_items'] = NewsItem.objects.all()
news_form = NewsForm(request.GET)
context['news_form'] = news_form
if news_form.is_valid():
if news_form.cleaned_data['date_start']:
context['news_items'] = context['news_items'].filter(datetime__gte = news_form.cleaned_data['date_start'])
Variable | Value |
---|---|
request | <WSGIRequest: GET '/news/?page=135'> |
self | <website.main.views.NewsView object at 0x7efc2f40c700> |
/home/website/website/./website/main/views.py
, line 63, in prepare_context
from website.imgw.models import MeteoWarn
from website.main.models import SessionRec
from website.main.models import Modal
from website.settings import MEDIA_URL, LANGUAGES
def prepare_context(request):
setup = Setup.objects.get(id=1)…
now = datetime.now()
wishes = Wish.objects.filter(begin__lte=now, end__gte=now)
context={}
context['now'] = now
if 'dev' in request.GET:
context['dev'] = True
Variable | Value |
---|---|
request | <WSGIRequest: GET '/news/?page=135'> |
/usr/lib/python3.10/site-packages/django/db/models/manager.py
, line 85, in manager_method
def check(self, **kwargs):
return []
@classmethod
def _get_queryset_methods(cls, queryset_class):
def create_method(name, method):
def manager_method(self, *args, **kwargs):
return getattr(self.get_queryset(), name)(*args, **kwargs)…
manager_method.__name__ = method.__name__
manager_method.__doc__ = method.__doc__
return manager_method
new_methods = {}
Variable | Value |
---|---|
args | () |
kwargs | {'id': 1} |
name | 'get' |
self | <django.db.models.manager.Manager object at 0x7efc2dec9960> |
/usr/lib/python3.10/site-packages/django/db/models/query.py
, line 492, in get
limit = None
if (
not clone.query.select_for_update
or connections[clone.db].features.supports_select_for_update_with_limit
):
limit = MAX_GET_RESULTS
clone.query.set_limits(high=limit)
num = len(clone)…
if num == 1:
return clone._result_cache[0]
if not num:
raise self.model.DoesNotExist(
"%s matching query does not exist." % self.model._meta.object_name
)
Variable | Value |
---|---|
args | () |
clone | <QuerySet [<Setup: Setup object (1)>]> |
kwargs | {'id': 1} |
limit | 21 |
self | <QuerySet [<Setup: Setup object (1)>]> |
/usr/lib/python3.10/site-packages/django/db/models/query.py
, line 302, in __len__
def __repr__(self):
data = list(self[: REPR_OUTPUT_SIZE + 1])
if len(data) > REPR_OUTPUT_SIZE:
data[-1] = "...(remaining elements truncated)..."
return "<%s %r>" % (self.__class__.__name__, data)
def __len__(self):
self._fetch_all()…
return len(self._result_cache)
def __iter__(self):
"""
The queryset iterator protocol uses three nested iterators in the
default case:
Variable | Value |
---|---|
self | <QuerySet [<Setup: Setup object (1)>]> |
/usr/lib/python3.10/site-packages/django/db/models/query.py
, line 1507, in _fetch_all
c._known_related_objects = self._known_related_objects
c._iterable_class = self._iterable_class
c._fields = self._fields
return c
def _fetch_all(self):
if self._result_cache is None:
self._result_cache = list(self._iterable_class(self))…
if self._prefetch_related_lookups and not self._prefetch_done:
self._prefetch_related_objects()
def _next_is_sticky(self):
"""
Indicate that the next filter call and the one following that should
Variable | Value |
---|---|
self | <QuerySet [<Setup: Setup object (1)>]> |
/usr/lib/python3.10/site-packages/django/db/models/query.py
, line 57, in __iter__
def __iter__(self):
queryset = self.queryset
db = queryset.db
compiler = queryset.query.get_compiler(using=db)
# Execute the query. This will also fill compiler.select, klass_info,
# and annotations.
results = compiler.execute_sql(…
chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size
)
select, klass_info, annotation_col_map = (
compiler.select,
compiler.klass_info,
compiler.annotation_col_map,
Variable | Value |
---|---|
compiler | <django.db.models.sql.compiler.SQLCompiler object at 0x7efc2e0949d0> |
db | 'default' |
queryset | <QuerySet [<Setup: Setup object (1)>]> |
self | <django.db.models.query.ModelIterable object at 0x7efc2da5b7c0> |
/usr/lib/python3.10/site-packages/django/db/models/sql/compiler.py
, line 1361, in execute_sql
else:
return
if chunked_fetch:
cursor = self.connection.chunked_cursor()
else:
cursor = self.connection.cursor()
try:
cursor.execute(sql, params)…
except Exception:
# Might fail for server-side cursors (e.g. connection closed)
cursor.close()
raise
if result_type == CURSOR:
Variable | Value |
---|---|
chunk_size | 100 |
chunked_fetch | False |
cursor | <django.db.backends.utils.CursorDebugWrapper object at 0x7efc2d8c0400> |
params | (1,) |
result_type | 'multi' |
self | <django.db.models.sql.compiler.SQLCompiler object at 0x7efc2e0949d0> |
sql | ('SELECT "main_setup"."id", "main_setup"."master_terr_unit_id", ' '"main_setup"."news_on_start_page", "main_setup"."long_news_on_start_page", ' '"main_setup"."news_overdate_days", "main_setup"."current_sport_season_id", ' '"main_setup"."cookies_policy_id", "main_setup"."a11y_page_id", ' '"main_setup"."weather_station_type_id", "main_setup"."smog_station_type_id" ' 'FROM "main_setup" WHERE "main_setup"."id" = %s LIMIT 21') |
/usr/lib/python3.10/site-packages/django/db/backends/utils.py
, line 103, in execute
class CursorDebugWrapper(CursorWrapper):
# XXX callproc isn't instrumented at this time.
def execute(self, sql, params=None):
with self.debug_sql(sql, params, use_last_executed_query=True):
return super().execute(sql, params)…
def executemany(self, sql, param_list):
with self.debug_sql(sql, param_list, many=True):
return super().executemany(sql, param_list)
@contextmanager
Variable | Value |
---|---|
__class__ | <class 'django.db.backends.utils.CursorDebugWrapper'> |
params | (1,) |
self | <django.db.backends.utils.CursorDebugWrapper object at 0x7efc2d8c0400> |
sql | ('SELECT "main_setup"."id", "main_setup"."master_terr_unit_id", ' '"main_setup"."news_on_start_page", "main_setup"."long_news_on_start_page", ' '"main_setup"."news_overdate_days", "main_setup"."current_sport_season_id", ' '"main_setup"."cookies_policy_id", "main_setup"."a11y_page_id", ' '"main_setup"."weather_station_type_id", "main_setup"."smog_station_type_id" ' 'FROM "main_setup" WHERE "main_setup"."id" = %s LIMIT 21') |
/usr/lib/python3.10/site-packages/django/db/backends/utils.py
, line 67, in execute
elif kparams is None:
return self.cursor.callproc(procname, params)
else:
params = params or ()
return self.cursor.callproc(procname, params, kparams)
def execute(self, sql, params=None):
return self._execute_with_wrappers(…
sql, params, many=False, executor=self._execute
)
def executemany(self, sql, param_list):
return self._execute_with_wrappers(
sql, param_list, many=True, executor=self._executemany
Variable | Value |
---|---|
params | (1,) |
self | <django.db.backends.utils.CursorDebugWrapper object at 0x7efc2d8c0400> |
sql | ('SELECT "main_setup"."id", "main_setup"."master_terr_unit_id", ' '"main_setup"."news_on_start_page", "main_setup"."long_news_on_start_page", ' '"main_setup"."news_overdate_days", "main_setup"."current_sport_season_id", ' '"main_setup"."cookies_policy_id", "main_setup"."a11y_page_id", ' '"main_setup"."weather_station_type_id", "main_setup"."smog_station_type_id" ' 'FROM "main_setup" WHERE "main_setup"."id" = %s LIMIT 21') |
/usr/lib/python3.10/site-packages/django/db/backends/utils.py
, line 80, in _execute_with_wrappers
sql, param_list, many=True, executor=self._executemany
)
def _execute_with_wrappers(self, sql, params, many, executor):
context = {"connection": self.db, "cursor": self}
for wrapper in reversed(self.db.execute_wrappers):
executor = functools.partial(wrapper, executor)
return executor(sql, params, many, context)…
def _execute(self, sql, params, *ignored_wrapper_args):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
# params default might be backend specific.
Variable | Value |
---|---|
context | {'connection': <django.contrib.gis.db.backends.spatialite.base.DatabaseWrapper object at 0x7efc34b13010>, 'cursor': <django.db.backends.utils.CursorDebugWrapper object at 0x7efc2d8c0400>} |
executor | <bound method CursorWrapper._execute of <django.db.backends.utils.CursorDebugWrapper object at 0x7efc2d8c0400>> |
many | False |
params | (1,) |
self | <django.db.backends.utils.CursorDebugWrapper object at 0x7efc2d8c0400> |
sql | ('SELECT "main_setup"."id", "main_setup"."master_terr_unit_id", ' '"main_setup"."news_on_start_page", "main_setup"."long_news_on_start_page", ' '"main_setup"."news_overdate_days", "main_setup"."current_sport_season_id", ' '"main_setup"."cookies_policy_id", "main_setup"."a11y_page_id", ' '"main_setup"."weather_station_type_id", "main_setup"."smog_station_type_id" ' 'FROM "main_setup" WHERE "main_setup"."id" = %s LIMIT 21') |
/usr/lib/python3.10/site-packages/django/db/backends/utils.py
, line 84, in _execute
context = {"connection": self.db, "cursor": self}
for wrapper in reversed(self.db.execute_wrappers):
executor = functools.partial(wrapper, executor)
return executor(sql, params, many, context)
def _execute(self, sql, params, *ignored_wrapper_args):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:…
if params is None:
# params default might be backend specific.
return self.cursor.execute(sql)
else:
return self.cursor.execute(sql, params)
Variable | Value |
---|---|
ignored_wrapper_args | (False, {'connection': <django.contrib.gis.db.backends.spatialite.base.DatabaseWrapper object at 0x7efc34b13010>, 'cursor': <django.db.backends.utils.CursorDebugWrapper object at 0x7efc2d8c0400>}) |
params | (1,) |
self | <django.db.backends.utils.CursorDebugWrapper object at 0x7efc2d8c0400> |
sql | ('SELECT "main_setup"."id", "main_setup"."master_terr_unit_id", ' '"main_setup"."news_on_start_page", "main_setup"."long_news_on_start_page", ' '"main_setup"."news_overdate_days", "main_setup"."current_sport_season_id", ' '"main_setup"."cookies_policy_id", "main_setup"."a11y_page_id", ' '"main_setup"."weather_station_type_id", "main_setup"."smog_station_type_id" ' 'FROM "main_setup" WHERE "main_setup"."id" = %s LIMIT 21') |
/usr/lib/python3.10/site-packages/django/db/utils.py
, line 91, in __exit__
db_exc_type = getattr(self.wrapper.Database, dj_exc_type.__name__)
if issubclass(exc_type, db_exc_type):
dj_exc_value = dj_exc_type(*exc_value.args)
# Only set the 'errors_occurred' flag for errors that may make
# the connection unusable.
if dj_exc_type not in (DataError, IntegrityError):
self.wrapper.errors_occurred = True
raise dj_exc_value.with_traceback(traceback) from exc_value…
def __call__(self, func):
# Note that we are intentionally not using @wraps here for performance
# reasons. Refs #21109.
def inner(*args, **kwargs):
with self:
Variable | Value |
---|---|
db_exc_type | <class 'sqlite3.OperationalError'> |
dj_exc_type | <class 'django.db.utils.OperationalError'> |
dj_exc_value | OperationalError('database is locked') |
exc_type | <class 'sqlite3.OperationalError'> |
exc_value | OperationalError('database is locked') |
self | <django.db.utils.DatabaseErrorWrapper object at 0x7efc2f8a3c70> |
traceback | <traceback object at 0x7efc2059c7c0> |
/usr/lib/python3.10/site-packages/django/db/backends/utils.py
, line 89, in _execute
def _execute(self, sql, params, *ignored_wrapper_args):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
# params default might be backend specific.
return self.cursor.execute(sql)
else:
return self.cursor.execute(sql, params)…
def _executemany(self, sql, param_list, *ignored_wrapper_args):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
return self.cursor.executemany(sql, param_list)
Variable | Value |
---|---|
ignored_wrapper_args | (False, {'connection': <django.contrib.gis.db.backends.spatialite.base.DatabaseWrapper object at 0x7efc34b13010>, 'cursor': <django.db.backends.utils.CursorDebugWrapper object at 0x7efc2d8c0400>}) |
params | (1,) |
self | <django.db.backends.utils.CursorDebugWrapper object at 0x7efc2d8c0400> |
sql | ('SELECT "main_setup"."id", "main_setup"."master_terr_unit_id", ' '"main_setup"."news_on_start_page", "main_setup"."long_news_on_start_page", ' '"main_setup"."news_overdate_days", "main_setup"."current_sport_season_id", ' '"main_setup"."cookies_policy_id", "main_setup"."a11y_page_id", ' '"main_setup"."weather_station_type_id", "main_setup"."smog_station_type_id" ' 'FROM "main_setup" WHERE "main_setup"."id" = %s LIMIT 21') |
/usr/lib/python3.10/site-packages/django/db/backends/sqlite3/base.py
, line 477, in execute
you'll need to use "%%s".
"""
def execute(self, query, params=None):
if params is None:
return Database.Cursor.execute(self, query)
query = self.convert_query(query)
return Database.Cursor.execute(self, query, params)…
def executemany(self, query, param_list):
query = self.convert_query(query)
return Database.Cursor.executemany(self, query, param_list)
def convert_query(self, query):
Variable | Value |
---|---|
params | (1,) |
query | ('SELECT "main_setup"."id", "main_setup"."master_terr_unit_id", ' '"main_setup"."news_on_start_page", "main_setup"."long_news_on_start_page", ' '"main_setup"."news_overdate_days", "main_setup"."current_sport_season_id", ' '"main_setup"."cookies_policy_id", "main_setup"."a11y_page_id", ' '"main_setup"."weather_station_type_id", "main_setup"."smog_station_type_id" ' 'FROM "main_setup" WHERE "main_setup"."id" = ? LIMIT 21') |
self | <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7efc22806560> |
AnonymousUser
Variable | Value |
---|---|
page | '135' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTENT_LENGTH | '' |
CONTENT_TYPE | '' |
DOCUMENT_ROOT | '/etc/nginx/html' |
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'Keep-Alive' |
HTTP_HOST | 'powiat.turek.pl' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '100.25.40.11' |
HTTP_X_FORWARDED_HOST | 'powiat.turek.pl' |
HTTP_X_FORWARDED_SERVER | 'powiat.turek.pl' |
PATH_INFO | '/news/' |
QUERY_STRING | 'page=135' |
REMOTE_ADDR | '10.1.0.11' |
REMOTE_PORT | '54384' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'http' |
REQUEST_URI | '/news/?page=135' |
SCRIPT_NAME | '' |
SERVER_NAME | 'www.powiat.turek.pl' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.1' |
uwsgi.node | b'gollum' |
uwsgi.version | b'2.0.20' |
wsgi.errors | <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> |
wsgi.file_wrapper | <built-in function uwsgi_sendfile> |
wsgi.input | <uwsgi._Input object at 0x7efc187929f0> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
website.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
AJAX_LOOKUP_CHANNELS | {'page': ('website.main.lookups', 'PageLookup')} |
AJAX_SELECT_BOOTSTRAP | True |
AJAX_SELECT_INLINES | 'inline' |
ALLOWED_HOSTS | ['www.powiat.turek.pl', 'powiat.turek.pl', 'www.turek.starostwo.gov.pl', 'turek.starostwo.gov.pl', 'nossl.powiat.turek.pl', 'ssl2021.powiat.turek.pl', '192.168.1.19'] |
APPEND_SLASH | True |
ASGI_APPLICATION | 'website.routing.application' |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend', 'website.ldap_auth_backend.LDAP_AuthBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/website/website' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CHANNEL_LAYERS | {'default': {'BACKEND': 'channels_redis.core.RedisChannelLayer', 'CONFIG': {'hosts': [('127.0.0.1', 6379)]}}} |
CRISPY_TEMPLATE_PACK | 'bootstrap4' |
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 | ['https://powiat.turek.pl', 'https://www.powiat.turek.pl'] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.contrib.gis.db.backends.spatialite', 'HOST': '', 'NAME': '/home/website/website/db.sqlite3', 'OPTIONS': {'timeout': 30}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} |
DATABASE_ROUTERS | ['website.router.DatabaseRouter'] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 4000 |
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', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
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_AUTO_FIELD | 'django.db.models.AutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
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_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 | 420 |
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' |
IGNORABLE_404_URLS | [] |
IMAGEKIT_CACHEFILE_DIR | 'CACHE/images' |
IMAGEKIT_CACHEFILE_NAMER | 'imagekit.cachefiles.namers.hash' |
IMAGEKIT_CACHE_BACKEND | 'default' |
IMAGEKIT_CACHE_PREFIX | 'imagekit:' |
IMAGEKIT_CACHE_TIMEOUT | 300 |
IMAGEKIT_DEFAULT_CACHEFILE_BACKEND | 'imagekit.cachefiles.backends.Simple' |
IMAGEKIT_DEFAULT_CACHEFILE_STRATEGY | 'imagekit.cachefiles.strategies.JustInTime' |
IMAGEKIT_DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
IMAGEKIT_SPEC_CACHEFILE_NAMER | 'imagekit.cachefiles.namers.source_name_as_path' |
IMAGEKIT_USE_MEMCACHED_SAFE_CACHE_KEY | '********************' |
INSTALLED_APPS | ['channels', 'tinymce', 'modeltranslation', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.sites', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'qrcode', 'imagekit', 'website.main.apps.MainConfig', 'website.queue.apps.QueueConfig', 'website.bh.apps.BhConfig', 'ajax_select', 'tastypie', 'leaflet', 'djgeojson', 'colorfield', 'crispy_forms', 'adminsortable2', 'website.hdsystem', 'website.teryt', 'website.imgw', 'website.register'] |
INTERNAL_IPS | [] |
LANGUAGES | (('pl', 'Polski'), ('en', 'English'), ('de', 'German'), ('ru', 'Русский'), ('uk', 'Український')) |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'fa', 'ur'] |
LANGUAGE_CODE | 'pl' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | ['/home/website/website/website/locale'] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/home/website/website/website/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MODELTRANSLATION_PREPOPULATE_LANGUAGE | 'pl' |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'website.urls' |
SECRET_KEY | '********************' |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_CROSS_ORIGIN_OPENER_POLICY | 'same-origin' |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
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 | 'website.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
SPATIALITE_LIBRARY_PATH | 'mod_spatialite' |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/website/website/website/main/static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], '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', 'django.template.context_processors.media']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Europe/Warsaw' |
TINYMCE_DEFAULT_CONFIG | {'cleanup_on_startup': True, 'custom_undo_redo_levels': 10, 'plugins': 'table,spellchecker,paste,searchreplace,image,fullscreen,preview,lists,advlist,code,link', 'theme_advanced_buttons3_add': 'tablecontrols', 'toolbar': 'undo redo | bold italic underline strikethrough | fontselect ' 'fontsizeselect formatselect | alignleft aligncenter alignright ' 'alignjustify | outdent indent | numlist bullist checklist | ' 'forecolor backcolor casechange permanentpen formatpainter ' 'removeformat | pagebreak | charmap emoticons | fullscreen ' 'preview save print | insertfile image media pageembed template ' 'link anchor codesample | a11ycheck ltr rtl | showcomments ' 'addcomment | code'} |
TINYMCE_JS_URL | 'https://powiat.turek.pl/static/tinymce/tinymce.min.js' |
USE_DEPRECATED_PYTZ | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'website.wsgi.application' |
X_FRAME_OPTIONS | 'DENY' |
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.