AttributeError at /course/precalc/register/

'AnonymousUser' object has no attribute 'is_parent'
Request Method: GET
Request URL: https://www.aphomeschoolers.com/course/precalc/register/
Django Version: 5.0
Exception Type: AttributeError
Exception Value:
'AnonymousUser' object has no attribute 'is_parent'
Exception Location: /home/aphome/env/ap/lib/python3.11/site-packages/django/utils/functional.py, line 253, in inner
Raised during: aphomestore.views.course_detail_form_view
Python Executable: /home/aphome/env/ap/bin/uwsgi
Python Version: 3.11.7
Python Path:
['.',
 '',
 '/usr/local/lib/python311.zip',
 '/usr/local/lib/python3.11',
 '/usr/local/lib/python3.11/lib-dynload',
 '/home/aphome/env/ap/lib/python3.11/site-packages']
Server time: Thu, 28 Mar 2024 06:15:20 -1000

Traceback Switch to copy-and-paste view



Request information

USER

AnonymousUser

GET

No GET data

POST

No POST data

FILES

No FILES data

No cookie data

META

Variable Value
CONTENT_LENGTH
''
CONTENT_TYPE
''
DOCUMENT_ROOT
'/usr/share/nginx/html'
HTTPS
'on'
HTTP_ACCEPT
'*/*'
HTTP_HOST
'www.aphomeschoolers.com'
HTTP_USER_AGENT
'claudebot'
PATH_INFO
'/course/precalc/register/'
QUERY_STRING
''
REMOTE_ADDR
'3.237.186.170'
REMOTE_PORT
'42418'
REQUEST_METHOD
'GET'
REQUEST_SCHEME
'https'
REQUEST_URI
'/course/precalc/register/'
SCRIPT_NAME
''
SERVER_NAME
'aphomeschoolers.com'
SERVER_PORT
'443'
SERVER_PROTOCOL
'HTTP/1.1'
uwsgi.node
b'aphomeschoolers.com'
uwsgi.version
b'2.0.23'
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 0x7f16a7643770>
wsgi.multiprocess
True
wsgi.multithread
False
wsgi.run_once
False
wsgi.url_scheme
'https'
wsgi.version
(1, 0)

Settings

Using settings module aphomeschoolers.settings

Setting Value
ABSOLUTE_URL_OVERRIDES
{}
ADMINS
[]
ADMIN_THUMBNAIL
'admin_thumbnail'
ALLOWED_HOSTS
['classes.aphomeschoolers.com',
 'backups23.aphomeschoolers.com',
 'aphomeschoolers.com',
 'www.aphomeschoolers.com',
 '64.20.40.130',
 '127.0.0.1']
APPEND_SLASH
True
AUTHENTICATION_BACKENDS
['django.contrib.auth.backends.ModelBackend']
AUTH_PASSWORD_VALIDATORS
'********************'
AUTH_USER_MODEL
'accounts.User'
BASE_DIR
PosixPath('/home/aphome/aphomeschoolers')
BASE_DIR_STRING
'/home/aphome/aphomeschoolers'
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
{'backup': {'ATOMIC_REQUESTS': False,
            'AUTOCOMMIT': True,
            'CONN_HEALTH_CHECKS': False,
            'CONN_MAX_AGE': 0,
            'ENGINE': 'django.db.backends.mysql',
            'HOST': '',
            'NAME': '',
            'OPTIONS': {'read_default_file': '/home/aphome/mysql_backup.cnf'},
            'PASSWORD': '********************',
            'PORT': '',
            'TEST': {'CHARSET': None,
                     'COLLATION': None,
                     'MIGRATE': True,
                     'MIRROR': None,
                     'NAME': None},
            'TIME_ZONE': None,
            'USER': ''},
 'default': {'ATOMIC_REQUESTS': False,
             'AUTOCOMMIT': True,
             'CONN_HEALTH_CHECKS': False,
             'CONN_MAX_AGE': 0,
             'ENGINE': 'django.db.backends.mysql',
             'HOST': '',
             'NAME': '',
             'OPTIONS': {'read_default_file': '/home/aphome/mysql.cnf'},
             'PASSWORD': '********************',
             'PORT': '',
             'TEST': {'CHARSET': None,
                      'COLLATION': None,
                      'MIGRATE': True,
                      'MIRROR': None,
                      'NAME': None},
             'TIME_ZONE': None,
             'USER': ''}}
DATABASE_ROUTERS
['aphomeschoolers.routers.BackupRouter']
DATA_UPLOAD_MAX_MEMORY_SIZE
2621440
DATA_UPLOAD_MAX_NUMBER_FIELDS
1000
DATA_UPLOAD_MAX_NUMBER_FILES
100
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']
DEBUG
True
DEBUG_PROPAGATE_EXCEPTIONS
False
DECIMAL_SEPARATOR
'.'
DEFAULT_AUTO_FIELD
'django.db.models.BigAutoField'
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
'office@aphomeschoolers.com'
DEFAULT_INDEX_TABLESPACE
''
DEFAULT_TABLESPACE
''
DISALLOWED_USER_AGENTS
[]
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST
'www.aphomeschoolers.com'
EMAIL_HOST_PASSWORD
'********************'
EMAIL_HOST_USER
'office@aphomeschoolers.com'
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
FILEBROWSER_ADMIN_VERSIONS
{'admin_thumbnail', 'small', 'thumbnail', 'medium'}
FILEBROWSER_DIRECTORY
''
FILEBROWSER_EXTENSIONS
{'Audio': ['.mp3', '.mp4', '.wav', '.aiff', '.midi', '.m4p'],
 'Document': ['.pdf',
              '.doc',
              '.docx',
              '.rtf',
              '.txt',
              '.xls',
              '.csv',
              '.xlsx',
              '.pptx'],
 'Image': ['.jpg', '.jpeg', '.gif', '.png', '.tif', '.tiff'],
 'Video': ['.mov', '.wmv', '.mpeg', '.mpg', '.avi', '.rm']}
FILEBROWSER_MAX_UPLOAD_SIZE
1048576000
FILEBROWSER_VERSIONS
{'admin_thumbnail': {'height': 60,
                     'opts': 'crop',
                     'verbose_name': 'Admin Thumbnail',
                     'width': 60},
 'large_thumbnail': {'height': 260,
                     'opts': 'crop',
                     'verbose_name': 'Large Thumbnail',
                     'width': 260},
 'medium': {'height': 260, 'verbose_name': 'Defualt Image', 'width': 260},
 're_thumbnail': {'height': 60,
                  'opts': 'crop',
                  'verbose_name': 'Reply Thumbnail',
                  'width': 60},
 'small': {'height': 130, 'verbose_name': 'Mobile Image', 'width': 130},
 'thumbnail': {'height': 80,
               'opts': 'crop',
               'verbose_name': 'Bio Thumbnail',
               'width': 80}}
FILEBROWSER_VERSIONS_BASEDIR
'_versions'
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
FORMS_URLFIELD_ASSUME_HTTPS
False
FORM_RENDERER
'django.forms.renderers.DjangoTemplates'
GRAPPELLI_ADMIN_TITLE
'Teacher Tools'
GRAPPELLI_SWITCH_USER
True
IGNORABLE_404_URLS
[]
INSTALLED_APPS
['grappelli',
 'filebrowser',
 'django.contrib.sites',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'django.contrib.sitemaps',
 'accounts',
 'classbios',
 'gradebook',
 'course',
 'path_files',
 'WWWboard',
 'quizes',
 'compositions',
 'rootpages',
 'examlocations',
 'mymessages',
 'characters',
 'logs',
 'commonmistakes',
 'bookclubs',
 'games',
 'games.bisgame',
 'games.gunsbutt',
 'games.invgame',
 'games.econwar',
 'aphomestore',
 'tinymce',
 'mptt',
 'mathfilters',
 'phonenumber_field',
 'uszipcode']
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'),
 ('ckb', 'Central Kurdish (Sorani)'),
 ('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'),
 ('ms', 'Malay'),
 ('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'),
 ('ug', 'Uyghur'),
 ('uk', 'Ukrainian'),
 ('ur', 'Urdu'),
 ('uz', 'Uzbek'),
 ('vi', 'Vietnamese'),
 ('zh-hans', 'Simplified Chinese'),
 ('zh-hant', 'Traditional Chinese')]
LANGUAGES_BIDI
['he', 'ar', 'ar-dz', 'ckb', 'fa', 'ug', 'ur']
LANGUAGE_CODE
'en-us'
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
'/index.html/'
LOGIN_URL
'/accounts/login/'
LOGOUT_REDIRECT_URL
None
MANAGERS
[]
MEDIA_ROOT
PosixPath('/home/aphome/static/media')
MEDIA_URL
'/media/'
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',
 'course.middleware.BaseMiddleware',
 'aphomeschoolers.routers.RouterMiddleware']
MIGRATION_MODULES
{}
MONTH_DAY_FORMAT
'F j'
NUMBER_GROUPING
0
PASSWORD_HASHERS
'********************'
PASSWORD_RESET_TIMEOUT
'********************'
PREPEND_WWW
False
ROOT_URLCONF
'aphomeschoolers.urls'
SECRET_KEY
'********************'
SECRET_KEY_FALLBACKS
'********************'
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
'aphomeschoolers.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
STATICFILES_DIRS
[]
STATICFILES_FINDERS
['django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
STATIC_ROOT
PosixPath('/home/aphome/static')
STATIC_URL
'/static/'
STORAGES
{'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'},
 'staticfiles': {'BACKEND': 'django.contrib.staticfiles.storage.StaticFilesStorage'}}
STRIPE_PUBLIC_KEY
'********************'
STRIPE_SECRET_KEY
'********************'
STRIPE_WEBHOOK_SECRET
'********************'
TEMPLATES
[{'APP_DIRS': True,
  'BACKEND': 'django.template.backends.django.DjangoTemplates',
  'DIRS': [PosixPath('/home/aphome/aphomeschoolers/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',
                                     'rootpages.context_processors.quoter',
                                     'rootpages.context_processors.lower_sidebar',
                                     'course.context_processors.sidebar',
                                     'course.context_processors.background',
                                     'course.context_processors.pages',
                                     'course.context_processors.student_view']}}]
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
'Etc/GMT+10'
TINYMCE_COMPRESSOR
False
TINYMCE_DEFAULT_CONFIG
{'autosave_interval': '30s',
 'autosave_prefix': '{path}{query}-{id}-',
 'autosave_restore_when_empty': True,
 'autosave_retention': '2m',
 'browser_spellcheck': True,
 'content_style': 'body { font-family:Arial,sans-serif; font-size:14px }',
 'contextmenu': False,
 'custom_undo_redo_levels': 10,
 'file_browser_callback': 'CustomFileBrowser',
 'height': 400,
 'image_caption': True,
 'link_context_toolbar': False,
 'link_quicklink': False,
 'menu': {'edit': {'items': 'undo redo | cut copy paste pastetext | selectall '
                            '| searchreplace',
                   'title': 'Edit'},
          'file': {'items': 'newdocument restoredraft | preview | export print '
                            '| deleteallconversations',
                   'title': 'File'},
          'format': {'items': 'bold italic underline strikethrough superscript '
                              'subscript codeformat | styles blocks fontfamily '
                              'fontsize align lineheight | forecolor backcolor '
                              '| language | removeformat',
                     'title': 'Format'},
          'help': {'items': 'help', 'title': 'Help'},
          'insert': {'items': 'image link media addcomment pageembed template '
                              'codesample inserttable | charmap emoticons hr | '
                              'pagebreak nonbreaking anchor tableofcontents | '
                              'insertdatetime',
                     'title': 'Insert'},
          'table': {'items': 'inserttable | cell row column | advtablesort | '
                             'tableprops deletetable',
                    'title': 'Table'},
          'tools': {'items': 'code wordcount', 'title': 'Tools'},
          'view': {'items': 'code | visualaid visualchars visualblocks | '
                            'spellchecker | preview fullscreen | showcomments',
                   'title': 'View'}},
 'plugins': 'print preview paste importcss searchreplace autolink autosave '
            'save directionality code visualblocks visualchars fullscreen '
            'image link media template codesample table charmap hr pagebreak '
            'nonbreaking anchor toc insertdatetime advlist lists wordcount '
            'imagetools textpattern noneditable help charmap quickbars '
            'emoticons',
 'quickbars_insert_toolbar': '',
 'relative_urls': False,
 'selector': 'textarea',
 'skin': 'oxide',
 'theme': 'silver',
 'theme_advanced_resizing': True,
 'toolbar': 'undo redo | bold italic underline strikethrough | alignleft '
            'aligncenter alignright alignjustify | outdent indent | numlist '
            'bullist | formatselect forecolor backcolor codesample '
            'removeformat | pagebreak | charmap emoticons | fullscreen | '
            'insertfile image media link | fontselect fontsizeselect',
 'toolbar_mode': 'sliding',
 'toolbar_sticky': True,
 'width': 698}
TINYMCE_EXTRA_MEDIA
{'js': ['js/tinymce_setup.js']}
TINYMCE_FILEBROWSER
True
TOP_DIR
PosixPath('/home/aphome')
TOP_DIR_STRING
'/home/aphome'
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
'aphomeschoolers.wsgi.application'
X_FRAME_OPTIONS
'SAMEORIGIN'
YEAR_MONTH_FORMAT
'F Y'

You’re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard page generated by the handler for this status code.