Thursday, April 1, 2021

'WSGIRequest' object has no attribute

Hello,

model.py:

class UserSettings(models.Model):
    user_link = models.OneToOneField(
        User,
        on_delete=models.CASCADE,
        related_name="usersettings_address",primary_key=True,)

and i have a mixin:

class ListviewMixin():

    def get_queryset(self):
        print("Order "+str(self.request.usersettings_address.list_orderby))

now i get a exception:

AttributeError at /
'WSGIRequest' object has no attribute 'usersettings_address'
Request Method: GET
Request URL: http://127.0.0.1:8001/
Django Version: 3.1.7
Exception Type: AttributeError
Exception Value:
'WSGIRequest' object has no attribute 'usersettings_address'
Exception Location: /home/sebastian/PycharmProjects/verwaltung/emailmarketing/Mixins.py, line 15, in get_queryset
Python Executable: /usr/bin/python3
Python Version: 3.8.5
Python Path:
['/home/sebastian/PycharmProjects/verwaltung',
 '/usr/lib/python38.zip',
 '/usr/lib/python3.8',
 '/usr/lib/python3.8/lib-dynload',
 '/home/sebastian/.local/lib/python3.8/site-packages',
 '/home/sebastian/PycharmProjects/helpdesk/django-helpdesk',
 '/home/sebastian/PycharmProjects/helpdesk/django-helpdesk/demo',
 '/usr/local/lib/python3.8/dist-packages',
 '/usr/lib/python3/dist-packages',
 '/usr/lib/python3.8/dist-packages']
Server time: Thu, 01 Apr 2021 15:55:29 +0000
Traceback Switch to copy-and-paste view
/home/sebastian/.local/lib/python3.8/site-packages/django/core/handlers/exception.py, line 47, in inner
                response = get_response(request) …
▶ Local vars
/home/sebastian/.local/lib/python3.8/site-packages/django/core/handlers/base.py, line 181, in _get_response
                response = wrapped_callback(request, *callback_args, **callback_kwargs) …
▶ Local vars
/home/sebastian/.local/lib/python3.8/site-packages/django/views/generic/base.py, line 70, in view
            return self.dispatch(request, *args, **kwargs) …
▶ Local vars
/home/sebastian/.local/lib/python3.8/site-packages/django/utils/decorators.py, line 43, in _wrapper
        return bound_method(*args, **kwargs) …
▶ Local vars
/home/sebastian/.local/lib/python3.8/site-packages/django/contrib/auth/decorators.py, line 21, in _wrapped_view
                return view_func(request, *args, **kwargs) …
▶ Local vars
/home/sebastian/.local/lib/python3.8/site-packages/django/views/generic/base.py, line 98, in dispatch
        return handler(request, *args, **kwargs) …
▶ Local vars
/home/sebastian/.local/lib/python3.8/site-packages/django_filters/views.py, line 78, in get
        self.filterset = self.get_filterset(filterset_class) …
▶ Local vars
/home/sebastian/.local/lib/python3.8/site-packages/django_filters/views.py, line 44, in get_filterset
        kwargs = self.get_filterset_kwargs(filterset_class) …
▶ Local vars
/home/sebastian/.local/lib/python3.8/site-packages/django_filters/views.py, line 57, in get_filterset_kwargs
                'queryset': self.get_queryset(), …
▶ Local vars
/home/sebastian/PycharmProjects/verwaltung/emailmarketing/Mixins.py, line 15, in get_queryset
        print("Order "+str(self.request.usersettings_address.list_orderby)) …
▶ Local vars
Request information
USER
root

GET
No GET data

POST
No POST data

FILES
No FILES data

COOKIES
Variable Value
csrftoken
'15eLiVRTmzsSz1unKLGniM5O3PLaCv1GikIMWWnf7p5tHdkRkYvOKKtM8c6jwGrA'
sessionid
'm4julix8y4zyczcuq2tlnf6zzwjlkluc'
META
Variable Value
CINNAMON_VERSION
'4.8.6'
COLORTERM
'truecolor'
CONTENT_LENGTH
''
CONTENT_TYPE
'text/plain'
CSRF_COOKIE
'15eLiVRTmzsSz1unKLGniM5O3PLaCv1GikIMWWnf7p5tHdkRkYvOKKtM8c6jwGrA'
DBUS_SESSION_BUS_ADDRESS
'unix:path=/run/user/1000/bus'
DESKTOP_SESSION
'cinnamon'
DISPLAY
':0'
DJANGO_SETTINGS_MODULE
'emailmarketing.settings'
GATEWAY_INTERFACE
'CGI/1.1'
GDMSESSION
'cinnamon'
GDM_LANG
'de_DE'
GJS_DEBUG_OUTPUT
'stderr'
GJS_DEBUG_TOPICS
'JS ERROR;JS LOG'
GNOME_DESKTOP_SESSION_ID
'this-is-deprecated'
GNOME_TERMINAL_SCREEN
'/org/gnome/Terminal/screen/0493dca5_c60d_4d79_a657_8d6130e31a36'
GNOME_TERMINAL_SERVICE
':1.74'
GPG_AGENT_INFO
'/run/user/1000/gnupg/S.gpg-agent:0:1'
GTK3_MODULES
'xapp-gtk3-module'
GTK_MODULES
'gail:atk-bridge'
GTK_OVERLAY_SCROLLING
'1'
HOME
'/home/sebastian'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9'
HTTP_ACCEPT_ENCODING
'gzip, deflate, br'
HTTP_ACCEPT_LANGUAGE
'de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7'
HTTP_CACHE_CONTROL
'max-age=0'
HTTP_CONNECTION
'keep-alive'
HTTP_COOKIE
('csrftoken=15eLiVRTmzsSz1unKLGniM5O3PLaCv1GikIMWWnf7p5tHdkRkYvOKKtM8c6jwGrA; '
 'sessionid=m4julix8y4zyczcuq2tlnf6zzwjlkluc')
HTTP_HOST
'127.0.0.1:8001'
HTTP_SEC_FETCH_DEST
'document'
HTTP_SEC_FETCH_MODE
'navigate'
HTTP_SEC_FETCH_SITE
'none'
HTTP_SEC_FETCH_USER
'?1'
HTTP_UPGRADE_INSECURE_REQUESTS
'1'
HTTP_USER_AGENT
('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) '
 'Chrome/89.0.4389.82 Safari/537.36')
LANG
'de_DE.UTF-8'
LANGUAGE
'de_DE'
LESSCLOSE
'/usr/bin/lesspipe %s %s'
LESSOPEN
'| /usr/bin/lesspipe %s'
LOGNAME
'sebastian'
LS_COLORS
'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
OLDPWD
'/home/sebastian/pycharm-2020.3.3/bin'
PATH
'/home/sebastian/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
PATH_INFO
'/'
PWD
'/home/sebastian/PycharmProjects/verwaltung'
QT_ACCESSIBILITY
'1'
QT_QPA_PLATFORMTHEME
'qt5ct'
QUERY_STRING
''
REMOTE_ADDR
'127.0.0.1'
REMOTE_HOST
''
REQUEST_METHOD
'GET'
RUN_MAIN
'true'
SCRIPT_NAME
''
SERVER_NAME
'localhost'
SERVER_PORT
'8001'
SERVER_PROTOCOL
'HTTP/1.1'
SERVER_SOFTWARE
'WSGIServer/0.2'
SESSION_MANAGER
'local/sebastian-virtual-machine:@/tmp/.ICE-unix/1997,unix/sebastian-virtual-machine:/tmp/.ICE-unix/1997'
SHELL
'/bin/bash'
SHLVL
'2'
SSH_AGENT_PID
'2070'
SSH_AUTH_SOCK
'/run/user/1000/keyring/ssh'
TERM
'xterm-256color'
TERMINAL_EMULATOR
'JetBrains-JediTerm'
TZ
'UTC'
USER
'sebastian'
VTE_VERSION
'6003'
XAUTHORITY
'/home/sebastian/.Xauthority'
XDG_CONFIG_DIRS
'/etc/xdg/xdg-cinnamon:/etc/xdg'
XDG_CURRENT_DESKTOP
'X-Cinnamon'
XDG_DATA_DIRS
'/usr/share/cinnamon:/usr/share/gnome:/home/sebastian/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share'
XDG_GREETER_DATA_DIR
'/var/lib/lightdm-data/sebastian'
XDG_RUNTIME_DIR
'/run/user/1000'
XDG_SEAT
'seat0'
XDG_SEAT_PATH
'/org/freedesktop/DisplayManager/Seat0'
XDG_SESSION_CLASS
'user'
XDG_SESSION_DESKTOP
'cinnamon'
XDG_SESSION_ID
'c2'
XDG_SESSION_PATH
'/org/freedesktop/DisplayManager/Session0'
XDG_SESSION_TYPE
'x11'
XDG_VTNR
'7'
_
'/usr/bin/python3'
wsgi.errors
<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>
wsgi.file_wrapper
<class 'wsgiref.util.FileWrapper'>
wsgi.input
<django.core.handlers.wsgi.LimitedStream object at 0x7f6769684a60>
wsgi.multiprocess
False
wsgi.multithread
True
wsgi.run_once
False
wsgi.url_scheme
'http'
wsgi.version
(1, 0)
Settings
Using settings module emailmarketing.settings
Setting Value
ABSOLUTE_URL_OVERRIDES
{}
ADMINS
[]
ALLOWED_HOSTS
['beelze-solutions.de', '127.0.0.1']
APPEND_SLASH
True
AUTHENTICATION_BACKENDS
('django.contrib.auth.backends.ModelBackend',)
AUTH_PASSWORD_VALIDATORS
'********************'
AUTH_USER_MODEL
'auth.User'
BASE_DIR
'/home/sebastian/PycharmProjects/verwaltung'
CACHES
{'default': {'BACKEND': 'django_redis.cache.RedisCache',
             'LOCATION': 'redis://127.0.0.1:6379/1',
             'OPTIONS': {'CLIENT_CLASS': 'django_redis.client.DefaultClient'}}}
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_MAX_AGE': 0,
             'ENGINE': 'django.db.backends.postgresql_psycopg2',
             'HOST': '127.0.0.1',
             'NAME': 'test',
             'OPTIONS': {},
             'PASSWORD': '********************',
             'PORT': '5432',
             'TEST': {'CHARSET': None,
                      'COLLATION': None,
                      'MIGRATE': True,
                      'MIRROR': None,
                      'NAME': None},
             'TIME_ZONE': None,
             'USER': 'postgres'}}
DATABASE_ROUTERS
[]
DATA_UPLOAD_MAX_MEMORY_SIZE
2621440
DATA_UPLOAD_MAX_NUMBER_FIELDS
1000
DATETIME_FORMAT
'%d.%m.%Y %H:%M'
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',
 '%d.%m.%Y %H:%M',
 '%d.%m.%Y')
DATE_FORMAT
'%d.%m.%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',
 '%d.%m.%Y')
DEBUG
True
DEBUG_PROPAGATE_EXCEPTIONS
False
DECIMAL_SEPARATOR
'.'
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_HASHING_ALGORITHM
'sha256'
DEFAULT_INDEX_TABLESPACE
''
DEFAULT_TABLESPACE
''
DISALLOWED_USER_AGENTS
[]
DYNAMIC_PREFERENCES
{'ADMIN_ENABLE_CHANGELIST_FORM': False,
 'ENABLE_CACHE': True,
 'MANAGER_ATTRIBUTE': 'preferences',
 'REGISTRY_MODULE': 'dynamic_preferences_registry',
 'SECTION_KEY_SEPARATOR': '********************',
 'VALIDATE_NAMES': True}
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST
'127.0.0.1'
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
True
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
1
FIXTURE_DIRS
[]
FORCE_SCRIPT_NAME
None
FORMAT_MODULE_PATH
None
FORM_RENDERER
'django.forms.renderers.DjangoTemplates'
HELPDESK_DEFAULT_SETTINGS
{'email_on_ticket_apichange': '********************',
 'email_on_ticket_assign': True,
 'email_on_ticket_change': True,
 'login_view_ticketlist': True,
 'preset_replies': True,
 'tickets_per_page': 25,
 'use_email_as_submitter': True}
HELPDESK_KB_ENABLED
True
HELPDESK_PUBLIC_ENABLED
True
HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT
False
HELPDESK_SHOW_CHANGE_PASSWORD
'********************'
HELPDESK_SUBMIT_A_TICKET_PUBLIC
True
HELPDESK_VIEW_A_TICKET_PUBLIC
True
IGNORABLE_404_URLS
[]
INSTALLED_APPS
['django.contrib.contenttypes',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.sites',
 'marketing',
 'widget_tweaks',
 'address',
 'mptt',
 'newsletter',
 'dynamic_preferences',
 'dynamic_preferences.users.apps.UserPreferencesConfig',
 'userprofil',
 'photo',
 'kalender',
 'emails',
 'historie',
 'settings',
 'ticketsystem',
 'django.contrib.humanize']
INTERNAL_IPS
[]
LANGUAGES
[('af', 'Afrikaans'),
 ('ar', 'Arabic'),
 ('ar-dz', 'Algerian 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'),
 ('hy', 'Armenian'),
 ('ia', 'Interlingua'),
 ('id', 'Indonesian'),
 ('ig', 'Igbo'),
 ('io', 'Ido'),
 ('is', 'Icelandic'),
 ('it', 'Italian'),
 ('ja', 'Japanese'),
 ('ka', 'Georgian'),
 ('kab', 'Kabyle'),
 ('kk', 'Kazakh'),
 ('km', 'Khmer'),
 ('kn', 'Kannada'),
 ('ko', 'Korean'),
 ('ky', 'Kyrgyz'),
 ('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'),
 ('tg', 'Tajik'),
 ('th', 'Thai'),
 ('tk', 'Turkmen'),
 ('tr', 'Turkish'),
 ('tt', 'Tatar'),
 ('udm', 'Udmurt'),
 ('uk', 'Ukrainian'),
 ('ur', 'Urdu'),
 ('uz', 'Uzbek'),
 ('vi', 'Vietnamese'),
 ('zh-hans', 'Simplified Chinese'),
 ('zh-hant', 'Traditional Chinese')]
LANGUAGES_BIDI
['he', 'ar', 'ar-dz', 'fa', 'ur']
LANGUAGE_CODE
'de-de'
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
[]
LOGGING
{}
LOGGING_CONFIG
'logging.config.dictConfig'
LOGIN_REDIRECT_URL
'/accounts/profile/'
LOGIN_URL
'login'
LOGOUT_REDIRECT_URL
None
LOGOUT_URL
'signout'
MANAGERS
[]
MAX_UPLOAD_SIZE
'2621440'
MEDIA_ROOT
'/var/www/media'
MEDIA_URL
'/mediafiles/'
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
MESSAGE_TAGS
{'message_constants.DEBUG': 'debug',
 'message_constants.ERROR': 'danger',
 'message_constants.INFO': 'info',
 'message_constants.SUCCESS': 'success',
 'message_constants.WARNING': 'warning'}
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
RECAPTCHA_PRIVATE_KEY
'********************'
RECAPTCHA_PUBLIC_KEY
'********************'
ROOT_URLCONF
'emailmarketing.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
'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
'emailmarketing.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
SITE_URL
'https://beelze-solutions.de'
STATICFILES_DIRS
['/home/sebastian/PycharmProjects/verwaltung/static']
STATICFILES_FINDERS
('django.contrib.staticfiles.finders.FileSystemFinder',)
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
STATIC_ROOT
'/var/www/static'
STATIC_URL
'/static/'
TEMPLATES
[{'APP_DIRS': True,
  'BACKEND': 'django.template.backends.django.DjangoTemplates',
  'DIRS': ['/home/sebastian/PycharmProjects/verwaltung/templates'],
  'OPTIONS': {'context_processors': ['django.template.context_processors.debug',
                                     'django.template.context_processors.request',
                                     'django.contrib.auth.context_processors.auth',
                                     'django.contrib.messages.context_processors.messages',
                                     'django.template.context_processors.i18n',
                                     'dynamic_preferences.processors.global_preferences',
                                     'settings.context_processors.getallemailaccounts']}}]
TEMPLATE_CONTEXT_PROCESSORS
('django.core.context_processors.request',)
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
'UTC'
USE_I18N
True
USE_L10N
False
USE_THOUSAND_SEPARATOR
False
USE_TZ
True
USE_X_FORWARDED_HOST
False
USE_X_FORWARDED_PORT
False
WSGI_APPLICATION
'emailmarketing.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.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8a92cec4-af4d-4b73-9f7b-f6780de3f91an%40googlegroups.com.

No comments:

Post a Comment