ServiceOnlineFile matching query does not exist.
Request Method: | GET |
---|---|
Request URL: | https://www.saomarcos.rs.gov.br/servicos-online/baixar-arquivo/25 |
Django Version: | 3.2 |
Exception Type: | DoesNotExist |
Exception Value: | ServiceOnlineFile matching query does not exist. |
Exception Location: | /home/saomarcos/.local/lib/python3.9/site-packages/django/db/models/query.py, line 435, in get |
Python Executable: | /usr/local/bin/python3 |
Python Version: | 3.9.18 |
Python Path: | ['/usr/lib64/python39.zip', '/usr/lib64/python3.9', '/usr/lib64/python3.9/lib-dynload', '/home/saomarcos/.local/lib/python3.9/site-packages', '/usr/local/lib64/python3.9/site-packages', '/usr/local/lib/python3.9/site-packages', '/usr/lib64/python3.9/site-packages', '/usr/lib/python3.9/site-packages', '/home/saomarcos/apps_wsgi', '/home/saomarcos/apps_wsgi/prefeitura_sao_marcos'] |
Server time: | Thu, 28 Mar 2024 05:58:10 -0300 |
/home/saomarcos/.local/lib/python3.9/site-packages/django/core/handlers/exception.py
, line 47, in inner
response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)
return response
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 | DoesNotExist('ServiceOnlineFile matching query does not exist.') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f2a2c0d9190>> |
request | <WSGIRequest: GET '/servicos-online/baixar-arquivo/25'> |
/home/saomarcos/.local/lib/python3.9/site-packages/django/core/handlers/base.py
, line 181, 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 download_file at 0x7f2a2bfbf0d0> |
callback_args | () |
callback_kwargs | {'pk': 25} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f2a2c06db80>> |
request | <WSGIRequest: GET '/servicos-online/baixar-arquivo/25'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f2a2c0d9190> |
wrapped_callback | <function download_file at 0x7f2a2bfbf0d0> |
/home/saomarcos/apps_wsgi/prefeitura_sao_marcos/prefeitura_sao_marcos/service_online/views.py
, line 51, in download_file
return render(request, 'service_online/detail.html', context)
def download_file(request, pk):
if request.GET.get('internal'):
return DownloadFile(models.InternalPageFile.objects.get(pk=pk).file).download()
else:
return DownloadFile(models.ServiceOnlineFile.objects.get(pk=pk).file).download()…
def contribution_channel(request):
bread_crumb = {'title': 'Canal de Contribuição', 'slug': reverse_lazy('service-online:contribution_channel')}
context = {
'object_list_state': settings.STATES,
Variable | Value |
---|---|
pk | 25 |
request | <WSGIRequest: GET '/servicos-online/baixar-arquivo/25'> |
/home/saomarcos/.local/lib/python3.9/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 = {}
for name, method in inspect.getmembers(queryset_class, predicate=inspect.isfunction):
Variable | Value |
---|---|
args | () |
kwargs | {'pk': 25} |
name | 'get' |
self | <prefeitura_sao_marcos.core.manager.Manager object at 0x7f2a2c6ff040> |
/home/saomarcos/.local/lib/python3.9/site-packages/django/db/models/query.py
, line 435, in get
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
)
raise self.model.MultipleObjectsReturned(
'get() returned more than one %s -- it returned %s!' % (
self.model._meta.object_name,
Variable | Value |
---|---|
args | () |
clone | <QuerySet []> |
kwargs | {'pk': 25} |
limit | 21 |
num | 0 |
self | <QuerySet [<ServiceOnlineFile: Lei nº 2.871 - meio risco>, <ServiceOnlineFile: Lei nº 2.895 - liberdade econômica>, <ServiceOnlineFile: Cartilha Instruções>, <ServiceOnlineFile: Documentos Necessários da Vigilância Sanitária para obtenção do Alvará Sanitário>, <ServiceOnlineFile: Chamamento Público - Equoterapia>, <ServiceOnlineFile: Fluxogramas>, <ServiceOnlineFile: Minuta do Termo de Ciência e Compromisso>, <ServiceOnlineFile: Declaração Ponto de Referência>, <ServiceOnlineFile: Lei nº 2.871 - meio risco>, <ServiceOnlineFile: Requerimento para Constituição/Alteração/Baixa de Microempresa e EPP>, <ServiceOnlineFile: Requerimento para Constituição/Alteração/Baixa de Empresa de Alto Risco, Autônomo e MEI>, <ServiceOnlineFile: Requerimento Prorrogação Alvará Provisório>, <ServiceOnlineFile: Chamamento Público nº 06/2023 - Rodeio>, <ServiceOnlineFile: Plano Municipal - Educação>, <ServiceOnlineFile: Edital Processo Seletivo de Diretores Escolares>, <ServiceOnlineFile: Plano Diretor - Mapa Estradas>, <ServiceOnlineFile: Edital nº 07/2023>, <ServiceOnlineFile: Pesquisa de Preço - Gás de Cozinha>, <ServiceOnlineFile: E-BOOK - Emissão de NFSe (como utilizar o novo portal para emissão da Nota Fiscal)>, <ServiceOnlineFile: Plano Diretor - Lei 33/2012 atualizada>, '...(remaining elements truncated)...']> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTEXT_DOCUMENT_ROOT | '/home/saomarcos/www/' |
CONTEXT_PREFIX | '' |
DOCUMENT_ROOT | '/home/saomarcos/www/' |
GATEWAY_INTERFACE | 'CGI/1.1' |
H2PUSH | 'off' |
H2_PUSH | 'off' |
H2_PUSHED | '' |
H2_PUSHED_ON | '' |
H2_STREAM_ID | '3' |
H2_STREAM_TAG | '1140490-519-3' |
HTTP2 | 'on' |
HTTP_ACCEPT | '*/*' |
HTTP_AUTHORIZATION | '' |
HTTP_HOST | 'www.saomarcos.rs.gov.br' |
HTTP_USER_AGENT | 'claudebot' |
LD_LIBRARY_PATH | '/usr/local/apache2/lib' |
PATH_INFO | '/servicos-online/baixar-arquivo/25' |
PATH_TRANSLATED | '/home/saomarcos/apps_wsgi/prefeitura_sao_marcos.wsgi/servicos-online/baixar-arquivo/25' |
QUERY_STRING | '' |
REMOTE_ADDR | '54.163.200.109' |
REMOTE_PORT | '39902' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'https' |
REQUEST_URI | '/servicos-online/baixar-arquivo/25' |
SCRIPT_FILENAME | '/home/saomarcos/apps_wsgi/prefeitura_sao_marcos.wsgi' |
SCRIPT_NAME | '' |
SCRIPT_URI | 'https://www.saomarcos.rs.gov.br/servicos-online/baixar-arquivo/25' |
SCRIPT_URL | '/servicos-online/baixar-arquivo/25' |
SERVER_ADDR | '191.6.223.22' |
SERVER_ADMIN | 'saomarcos@saomarcos.rs.gov.br' |
SERVER_NAME | 'www.saomarcos.rs.gov.br' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/2.0' |
SERVER_SIGNATURE | '********************' |
SERVER_SOFTWARE | 'Apache' |
SSL_TLS_SNI | 'www.saomarcos.rs.gov.br' |
UNIQUE_ID | 'ZgUxIha2mibuRTJPpaqt7wAASgs' |
apache.version | (2, 4, 52) |
mod_wsgi.application_group | 'www.saomarcos.rs.gov.br|' |
mod_wsgi.callable_object | 'application' |
mod_wsgi.daemon_connects | '1' |
mod_wsgi.daemon_restarts | '0' |
mod_wsgi.daemon_start | '1711616290379555' |
mod_wsgi.enable_sendfile | '0' |
mod_wsgi.handler_script | '' |
mod_wsgi.ignore_activity | '0' |
mod_wsgi.listener_host | '191.6.223.22' |
mod_wsgi.listener_port | '443' |
mod_wsgi.path_info | '/servicos-online/baixar-arquivo/25' |
mod_wsgi.process_group | 'www.saomarcos.rs.gov.br.ssl' |
mod_wsgi.queue_start | '1711616290379445' |
mod_wsgi.request_handler | 'wsgi-script' |
mod_wsgi.request_id | 'ZgUxIha2mibuRTJPpaqt7wAASgs' |
mod_wsgi.request_start | '1711616290378474' |
mod_wsgi.script_name | '' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.script_start | '1711616290379814' |
mod_wsgi.thread_id | 1 |
mod_wsgi.thread_requests | 45 |
mod_wsgi.total_requests | 164 |
mod_wsgi.version | (4, 9, 0) |
wsgi.errors | <_io.TextIOWrapper name='<wsgi.errors>' encoding='utf-8'> |
wsgi.file_wrapper | <class 'mod_wsgi.FileWrapper'> |
wsgi.input | <mod_wsgi.Input object at 0x7f2a2be44110> |
wsgi.input_terminated | True |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
prefeitura_sao_marcos.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['.saomarcos.rs.gov.br'] |
APPEND_SLASH | True |
AUDITLOG_DISABLE_ON_RAW_SAVE | False |
AUDITLOG_EXCLUDE_TRACKING_MODELS | () |
AUDITLOG_INCLUDE_ALL_MODELS | False |
AUDITLOG_INCLUDE_TRACKING_MODELS | () |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
AWS_ACCESS_KEY_ID | '********************' |
AWS_QUERYSTRING_AUTH | False |
AWS_SECRET_ACCESS_KEY | '********************' |
AWS_STORAGE_BUCKET_NAME | '' |
BASE_DIR | '/home/saomarcos/apps_wsgi/prefeitura_sao_marcos' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
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': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_HEALTH_CHECKS': False, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql', 'HOST': 'pgsql.saomarcos.rs.gov.br', 'NAME': 'saomarcos', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': 5432, 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'saomarcos'}} |
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', '%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 | 'weadmin@saomarcos.rs.gov.br' |
DEFAULT_HASHING_ALGORITHM | 'sha256' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DEVELOPMENT | False |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.saomarcos.rs.gov.br' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'weadmin@saomarcos.rs.gov.br' |
EMAIL_PORT | 587 |
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 |
EXTRA_APPS | ['prefeitura_sao_marcos.core.apps.AuditlogCustomConfig', 'test_without_migrations', 'widget_tweaks', 'django_extensions', 'django_summernote', 'haystack'] |
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' |
HAYSTACK_CONNECTIONS | {'default': {'ENGINE': 'haystack.backends.simple_backend.SimpleEngine'}} |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['prefeitura_sao_marcos.core.apps.CoreConfig', 'prefeitura_sao_marcos.core.apps.SuitConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'prefeitura_sao_marcos.core.apps.AuditlogCustomConfig', 'test_without_migrations', 'widget_tweaks', 'django_extensions', 'django_summernote', 'haystack', 'prefeitura_sao_marcos.news.apps.NewsConfig', 'prefeitura_sao_marcos.event.apps.EventConfig', 'prefeitura_sao_marcos.banner.apps.BannerConfig', 'prefeitura_sao_marcos.county.apps.CountyConfig', 'prefeitura_sao_marcos.tourism.apps.TourismConfig', 'prefeitura_sao_marcos.interest.apps.InterestConfig', 'prefeitura_sao_marcos.ombudsman.apps.OmbudsmanConfig', 'prefeitura_sao_marcos.service_online.apps.ServiceOnlineConfig', 'prefeitura_sao_marcos.administration.apps.AdministrationConfig', 'prefeitura_sao_marcos.portal_transparency.apps.PortalTransparencyConfig'] |
INTERNAL_IPS | [] |
LANGUAGES | [('pt-br', 'Português Brasileiro')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'fa', 'ur'] |
LANGUAGE_CODE | 'pt-br' |
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/saomarcos/apps_wsgi/prefeitura_sao_marcos/locale'] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_AWS_BUCKET | '' |
MEDIA_ROOT | '/home/saomarcos/www/media/' |
MEDIA_URL | 'http://media.saomarcos.rs.gov.br/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
PROJECT_APPS | ['prefeitura_sao_marcos.news.apps.NewsConfig', 'prefeitura_sao_marcos.event.apps.EventConfig', 'prefeitura_sao_marcos.banner.apps.BannerConfig', 'prefeitura_sao_marcos.county.apps.CountyConfig', 'prefeitura_sao_marcos.tourism.apps.TourismConfig', 'prefeitura_sao_marcos.interest.apps.InterestConfig', 'prefeitura_sao_marcos.ombudsman.apps.OmbudsmanConfig', 'prefeitura_sao_marcos.service_online.apps.ServiceOnlineConfig', 'prefeitura_sao_marcos.administration.apps.AdministrationConfig', 'prefeitura_sao_marcos.portal_transparency.apps.PortalTransparencyConfig'] |
ROOT_URLCONF | 'prefeitura_sao_marcos.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | True |
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 | ['weadmin@saomarcos.rs.gov.br'] |
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 | 'prefeitura_sao_marcos.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
STATES | ['Acre', 'Alagoas', 'Amapá', 'Amazonas', 'Bahia', 'Ceará', 'Distrito Federal', 'Espírito Santo', 'Goiás', 'Maranhão', 'Mato Grosso', 'Mato Grosso do Sul', 'Minas Gerais', 'Pará', 'Paraíba', 'Paraná', 'Pernambuco', 'Piauí', 'Rio de Janeiro', 'Rio Grande do Norte', 'Rio Grande do Sul', 'Rondônia', 'Roraima', 'Santa Catarina', 'São Paulo', 'Sergipe', 'Tocantins'] |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_AWS_BUCKET | '' |
STATIC_ROOT | '/home/saomarcos/static/' |
STATIC_URL | '/static/' |
SUMMERNOTE_CONFIG | {'base_css': ('//stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css',), 'base_js': ('//code.jquery.com/jquery-3.3.1.min.js', '//stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js'), 'default_css': ('summernote/summernote.min.css', 'summernote/django_summernote.css'), 'default_js': ('summernote/jquery.ui.widget.js', 'summernote/jquery.iframe-transport.js', 'summernote/jquery.fileupload.js', 'summernote/summernote.min.js', 'summernote/ResizeSensor.js'), 'summernote': {'height': '480', 'lang': 'pt-BR', 'toolbar': [['style', ['style']], ['font', ['bold', 'italic', 'underline', 'superscript', 'subscript', 'strikethrough', 'clear']], ['fontname', ['fontname']], ['fontsize', ['fontsize']], ['color', ['color']], ['para', ['ul', 'ol', 'paragraph']], ['height', ['height']], ['table', ['table']], ['insert', ['link', 'picture', 'video', 'hr']], ['view', ['fullscreen', 'codeview']], ['help', ['help']]], 'width': '100%'}} |
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.template.context_processors.media', 'django.contrib.messages.context_processors.messages', 'prefeitura_sao_marcos.core.context_processors.footer']}}] |
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 | 'America/Sao_Paulo' |
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 | 'prefeitura_sao_marcos.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.