tj-django / django-view-breadcrumbs

Breadcrumb mixins for django views. Create breadcrumbs in seconds.
https://tj-django.github.io/django-view-breadcrumbs/#/
BSD 3-Clause "New" or "Revised" License
75 stars 8 forks source link

[BUG] ListView - 'main' is not a registered namespace #665

Closed PHermans1 closed 1 year ago

PHermans1 commented 1 year ago

Is there an existing issue for this?

Does this issue exist in the latest version?

Describe the bug?

Django 4, bootstrap5

settings.py file: ROOT_URLCONF = 'main.urls'

in main/urls.py: app_name="main" urlpatterns = [ ... path('conferences/', main_views.ConferenceListView.as_view(), name='conferences_list'), ...]

in my view.py: class ConferenceListView(LoginRequiredMixin, PermissionRequiredMixin, ListBreadcrumbMixin, ListView): model = Conference template_name = 'conference/conference_list.html' permission_required = ('main.do_student_things',) app_name = "main" ...

everything works fine and as expected until I added the "ListBreadCrumbMixin" to this view. If I remove it, all works fine again.

I am unclear as to where I am supposed to define the app_name to make it work, but it is not doing so even though I have defined it in they urls.py and the view

Any guidance would be welcome. Thanks

To Reproduce

1) Run server 2) home page crashes with the error 'main' is not a registered namespace

What OS are you seeing the problem on?

macOS

Expected behavior?

Simply to have a breadcrumb for my listView class

Relevant log output

NoReverseMatch at /conferences/
'main' is not a registered namespace
Request Method: GET
Request URL:    http://127.0.0.1:8000/conferences/
Django Version: 4.0.6
Exception Type: NoReverseMatch
Exception Value:    
'main' is not a registered namespace
Exception Location: /Users/paul/Src/tsa_mgmt/lib/python3.9/site-packages/django/urls/base.py, line 82, in reverse
Python Executable:  /Users/paul/Src/tsa_mgmt/bin/python
Python Version: 3.9.2
Python Path:    
['/Users/paul/Src/tsa_mgmt',
 '/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev',
 '/Applications/PyCharm.app/Contents/plugins/python/helpers/third_party/thriftpy',
 '/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev',
 '/Users/paul/Src/tsa_mgmt',
 '/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm_display',
 '/Users/paul/Library/Caches/JetBrains/PyCharm2022.3/cythonExtensions',
 '/Library/Frameworks/Python.framework/Versions/3.9/lib/python39.zip',
 '/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9',
 '/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload',
 '/Users/paul/Src/tsa_mgmt/lib/python3.9/site-packages',
 '/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm_matplotlib_backend']
Server time:    Mon, 16 Jan 2023 01:22:24 -0500
Traceback Switch to copy-and-paste view
/Users/paul/Src/tsa_mgmt/lib/python3.9/site-packages/django/urls/base.py, line 71, in reverse
                extra, resolver = resolver.namespace_dict[ns] …
Local vars
During handling of the above exception ('main'), another exception occurred:
/Users/paul/Src/tsa_mgmt/lib/python3.9/site-packages/django/core/handlers/exception.py, line 55, in inner
                response = get_response(request) …
Local vars
/Users/paul/Src/tsa_mgmt/lib/python3.9/site-packages/django/core/handlers/base.py, line 197, in _get_response
                response = wrapped_callback(request, *callback_args, **callback_kwargs) …
Local vars
/Users/paul/Src/tsa_mgmt/lib/python3.9/site-packages/django/views/generic/base.py, line 84, in view
            return self.dispatch(request, *args, **kwargs) …
Local vars
/Users/paul/Src/tsa_mgmt/lib/python3.9/site-packages/django/contrib/auth/mixins.py, line 73, in dispatch
        return super().dispatch(request, *args, **kwargs) …
Local vars
/Users/paul/Src/tsa_mgmt/lib/python3.9/site-packages/django/contrib/auth/mixins.py, line 109, in dispatch
        return super().dispatch(request, *args, **kwargs) …
Local vars
/Users/paul/Src/tsa_mgmt/lib/python3.9/site-packages/django/views/generic/base.py, line 119, in dispatch
        return handler(request, *args, **kwargs) …
Local vars
/Users/paul/Src/tsa_mgmt/lib/python3.9/site-packages/django/views/generic/list.py, line 174, in get
        context = self.get_context_data() …
Local vars
/Users/paul/Src/tsa_mgmt/main/views.py, line 163, in get_context_data
        context = super().get_context_data(**kwargs) …
Local vars
/Users/paul/Src/tsa_mgmt/lib/python3.9/site-packages/view_breadcrumbs/generic/base.py, line 69, in get_context_data
        self.update_breadcrumbs(ctx) …
Local vars
/Users/paul/Src/tsa_mgmt/lib/python3.9/site-packages/view_breadcrumbs/generic/base.py, line 44, in update_breadcrumbs
        crumbs = self.crumbs …
Local vars
/Users/paul/Src/tsa_mgmt/lib/python3.9/site-packages/view_breadcrumbs/generic/list.py, line 31, in crumbs
        return [(self.model_name_title_plural, self.list_view_url)] …
Local vars
/Users/paul/Src/tsa_mgmt/lib/python3.9/site-packages/view_breadcrumbs/generic/list.py, line 27, in list_view_url
        return reverse(self.__list_view_name) …
Local vars
/Users/paul/Src/tsa_mgmt/lib/python3.9/site-packages/django/urls/base.py, line 82, in reverse
                    raise NoReverseMatch("%s is not a registered namespace" % key) …
Local vars
Request information
USER
paul.hermans@benemtech.com

GET
No GET data

POST
No POST data

FILES
No FILES data

COOKIES
Variable    Value
csrftoken   
'w6FzoBWMbslD5EBf0s1oFHEQvh13som9ZwJHI01bUrJ0dA0W45gAiSZhxPORWMmd'
sessionid   
'wob2kxf9c30vijugk9w0nn60jsaokd9o'
META
Variable    Value
CONTENT_LENGTH  
''
CONTENT_TYPE    
'text/plain'
CSRF_COOKIE 
'w6FzoBWMbslD5EBf0s1oFHEQvh13som9ZwJHI01bUrJ0dA0W45gAiSZhxPORWMmd'
DJANGO_ENVIRONMENT  
'pbh_dev'
DJANGO_SETTINGS_MODULE  
'main.settings'
GATEWAY_INTERFACE   
'CGI/1.1'
HOME    
'/Users/paul'
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    
'en-US,en;q=0.9'
HTTP_CONNECTION 
'keep-alive'
HTTP_COOKIE 
('csrftoken=w6FzoBWMbslD5EBf0s1oFHEQvh13som9ZwJHI01bUrJ0dA0W45gAiSZhxPORWMmd; '
 'sessionid=wob2kxf9c30vijugk9w0nn60jsaokd9o')
HTTP_HOST   
'127.0.0.1:8000'
HTTP_SEC_CH_UA  
'"Not?A_Brand";v="8", "Chromium";v="108", "Google Chrome";v="108"'
HTTP_SEC_CH_UA_MOBILE   
'?0'
HTTP_SEC_CH_UA_PLATFORM 
'"macOS"'
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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, '
 'like Gecko) Chrome/108.0.0.0 Safari/537.36')
IDE_PROJECT_ROOTS   
'/Users/paul/Src/tsa_mgmt'
IPYTHONENABLE   
'True'
LC_CTYPE    
'en_US.UTF-8'
LIBRARY_ROOTS   
'/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9:/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload:/Users/paul/Src/tsa_mgmt/lib/python3.9/site-packages:/Users/paul/Library/Caches/JetBrains/PyCharm2022.3/python_stubs/-1389234663:/Applications/PyCharm.app/Contents/plugins/python/helpers/python-skeletons:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stdlib:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/six:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/boto:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/mock:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/pytz:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/toml:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/annoy:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/babel:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/emoji:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/first:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/fpdf2:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/ldap3:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/polib:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/redis:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/regex:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/retry:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/ujson:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/bleach:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/caldav:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/docopt:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/hdbcli:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/invoke:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/passpy:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/Pillow:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/psutil:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/pycurl:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/pynput:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/pysftp:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/PyYAML:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/stripe:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/xxhash:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/appdirs:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/certifi:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/chardet:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/chevron:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/passlib:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/pyaudio:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/PyMySQL:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/pyvmomi:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/slumber:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/tzlocal:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/urllib3:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/vobject:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/aiofiles:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/colorama:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/croniter:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/docutils:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/filelock:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/html5lib:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/httplib2:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/jmespath:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/Markdown:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/oauthlib:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/openpyxl:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/paramiko:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/psycopg2:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/pyflakes:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/Pygments:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/requests:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/selenium:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/tabulate:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/toposort:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/waitress:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/braintree:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/decorator:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/freezegun:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/playsound:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/pyOpenSSL:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/pyRFC3339:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/termcolor:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/ttkthemes:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/typed-ast:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/xmltodict:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/cachetools:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/commonmark:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/dateparser:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/Deprecated:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/Flask-Cors:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/frozendict:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/jsonschema:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/pyfarmhash:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/Send2Trash:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/setuptools:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/simplejson:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/SQLAlchemy:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/contextvars:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/dataclasses:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/entrypoints:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/flake8-2020:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/JACK-Client:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/mysqlclient:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/opentracing:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/pep8-naming:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/prettytable:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/python-jose:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/python-nmap:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/stdlib-list:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/atomicwrites:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/aws-xray-sdk:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/cryptography:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/editdistance:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/parsimonious:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/whatthepatch:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/click-spinner:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/DateTimeRange:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/humanfriendly:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/python-gflags:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/beautifulsoup4:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/characteristic:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/flake8-bugbear:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/python-slugify:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/singledispatch:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/flake8-builtins:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/flake8-simplify:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/mypy-extensions:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/python-dateutil:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/Flask-SQLAlchemy:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/flake8-docstrings:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/flake8-plugin-utils:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/pytest-lazy-fixture:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/flake8-rst-docstrings:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/flake8-typing-imports:/Applications/PyCharm.app/Contents/plugins/python/helpers/typeshed/stubs/backports.ssl_match_hostname'
LOGNAME 
'paul'
PATH    
'/Users/paul/Src/tsa_mgmt/bin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin'
PATH_INFO   
'/conferences/'
PS1 
'(tsa_mgmt) '
PWD 
'/Users/paul/Src/tsa_mgmt'
PYCHARM_DISPLAY_PORT    
'63342'
PYCHARM_HOSTED  
'1'
PYDEVD_LOAD_VALUES_ASYNC    
'True'
PYTHONIOENCODING    
'UTF-8'
PYTHONPATH  
'/Applications/PyCharm.app/Contents/plugins/python/helpers/third_party/thriftpy:/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev:/Users/paul/Src/tsa_mgmt:/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm_matplotlib_backend:/Applications/PyCharm.app/Contents/plugins/python/helpers/pycharm_display:/Users/paul/Library/Caches/JetBrains/PyCharm2022.3/cythonExtensions:/Users/paul/Src/tsa_mgmt'
PYTHONUNBUFFERED    
'1'
QUERY_STRING    
''
REMOTE_ADDR 
'127.0.0.1'
REMOTE_HOST 
''
REQUEST_METHOD  
'GET'
RUN_MAIN    
'true'
SCRIPT_NAME 
''
SERVER_NAME 
'1.0.0.127.in-addr.arpa'
SERVER_PORT 
'8000'
SERVER_PROTOCOL 
'HTTP/1.1'
SERVER_SOFTWARE 
'WSGIServer/0.2'
SHELL   
'/bin/bash'
SSH_AUTH_SOCK   
'/private/tmp/com.apple.launchd.iu5xaLDnD4/Listeners'
TMPDIR  
'/var/folders/yf/vz8ggk094sd34spzgb5cbygw0000gn/T/'
TZ  
'America/New_York'
USER    
'paul'
VIRTUAL_ENV 
'/Users/paul/Src/tsa_mgmt'
XPC_FLAGS   
'0x0'
XPC_SERVICE_NAME    
'0'
__CF_USER_TEXT_ENCODING 
'0x1F5:0x0:0x0'
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 0x7fbcf9e73a30>
wsgi.multiprocess   
False
wsgi.multithread    
True
wsgi.run_once   
False
wsgi.url_scheme 
'http'
wsgi.version    
(1, 0)
Settings
Using settings module main.settings
Setting Value
ABSOLUTE_URL_OVERRIDES  
{}
ADMINS  
[]
ALLOWED_HOSTS   
['*']
APPEND_SLASH    
True
AUTHENTICATION_BACKENDS 
['django.contrib.auth.backends.ModelBackend']
AUTH_PASSWORD_VALIDATORS    
'********************'
AUTH_USER_MODEL 
'accounts.User'
BASE_DIR    
PosixPath('/Users/paul/Src/tsa_mgmt')
BREADCRUMBS_HOME_LABEL  
'Conferences'
BREADCRUMBS_TEMPLATE    
'view_breadcrumbs/bootstrap5.html'
BROWSER_TAB_TITLE   
'TSA Club Management'
CACHES  
{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
CACHE_MIDDLEWARE_ALIAS  
'default'
CACHE_MIDDLEWARE_KEY_PREFIX 
'********************'
CACHE_MIDDLEWARE_SECONDS    
600
CKEDITOR_UPLOAD_PATH    
'ckeditor_uploads/'
CRISPY_ALLOWED_TEMPLATE_PACKS   
'bootstrap5'
CRISPY_TEMPLATE_PACK    
'bootstrap5'
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.sqlite3',
             'HOST': '',
             'NAME': PosixPath('/Users/paul/Src/tsa_mgmt/db.sqlite3'),
             'OPTIONS': {},
             'PASSWORD': '********************',
             'PORT': '',
             'TEST': {'CHARSET': None,
                      'COLLATION': None,
                      'MIGRATE': True,
                      'MIRROR': None,
                      'NAME': None},
             'TIME_ZONE': None,
             'USER': ''}}
DATABASE_OPTION 
'local_sqlite'
DATABASE_OPTIONS    
{'local_sqlite': {'ATOMIC_REQUESTS': False,
                  'AUTOCOMMIT': True,
                  'CONN_MAX_AGE': 0,
                  'ENGINE': 'django.db.backends.sqlite3',
                  'HOST': '',
                  'NAME': PosixPath('/Users/paul/Src/tsa_mgmt/db.sqlite3'),
                  'OPTIONS': {},
                  'PASSWORD': '********************',
                  'PORT': '',
                  'TEST': {'CHARSET': None,
                           'COLLATION': None,
                           'MIGRATE': True,
                           'MIRROR': None,
                           'NAME': None},
                  'TIME_ZONE': None,
                  'USER': ''},
 'python_anywhere_MySQL': {'ENGINE': 'django.db.backends.mysql',
                           'HOST': 'PaulHermans.mysql.pythonanywhere-services.com',
                           'NAME': 'PaulHermans$default',
                           'PASSWORD': '********************',
                           'USER': 'PaulHermans'}}
DATABASE_ROUTERS    
[]
DATA_UPLOAD_MAX_MEMORY_SIZE 
2621440
DATA_UPLOAD_MAX_NUMBER_FIELDS   
1000
DATETIME_FORMAT 
'm/d/y g:i:s u'
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 
'm/d/y'
DATE_INPUT_FORMATS  
['%m/%d/%Y',
 '%m/%d/%y',
 '%Y-%m-%d',
 '%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
DEBUG_TOOLBAR   
True
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  
'webmaster@localhost'
DEFAULT_INDEX_TABLESPACE    
''
DEFAULT_TABLESPACE  
''
DISALLOWED_USER_AGENTS  
[]
EMAIL_BACKEND   
'django.core.mail.backends.console.EmailBackend'
EMAIL_DEVELOPERS    
['paul.hermans@benemtech.com']
EMAIL_HOST  
'smtp.gmail.com'
EMAIL_HOST_PASSWORD 
'********************'
EMAIL_HOST_USER 
None
EMAIL_PORT  
587
EMAIL_SSL_CERTFILE  
None
EMAIL_SSL_KEYFILE   
'********************'
EMAIL_SUBJECT_PREFIX    
'[Django] '
EMAIL_TIMEOUT   
None
EMAIL_TO_RECIPIENTS 
False
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   
0
FIXTURE_DIRS    
[]
FORCE_SCRIPT_NAME   
None
FORMAT_MODULE_PATH  
None
FORM_RENDERER   
'django.forms.renderers.DjangoTemplates'
IGNORABLE_404_URLS  
[]
INSTALLED_APPS  
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django_extensions',
 'adminsortable2',
 'colorfield',
 'ckeditor',
 'crispy_forms',
 'crispy_bootstrap5',
 'sort_order_field',
 'view_breadcrumbs',
 'accounts',
 'main',
 'django_cleanup.apps.CleanupConfig',
 'debug_toolbar']
INTERNAL_IPS    
['127.0.0.1']
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'),
 ('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'),
 ('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   
'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  
'home'
LOGIN_URL   
'login'
LOGOUT_REDIRECT_URL 
'home'
MANAGERS    
[]
MEDIA_ROOT  
PurePosixPath('/Users/paul/Src/tsa_mgmt/media')
MEDIA_URL   
'/media/'
MESSAGE_STORAGE 
'django.contrib.messages.storage.fallback.FallbackStorage'
MESSAGE_TAGS    
{10: 'alert-secondary',
 20: 'alert-info',
 25: 'alert-success',
 30: 'alert-warning',
 40: 'alert-danger'}
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',
 'debug_toolbar.middleware.DebugToolbarMiddleware']
MIGRATION_MODULES   
{}
MONTH_DAY_FORMAT    
'F j'
NUMBER_GROUPING 
0
PASSWORD_HASHERS    
'********************'
PASSWORD_RESET_TIMEOUT  
'********************'
PREPEND_WWW 
False
ROOT_URLCONF    
'main.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 
'main.settings'
SHORT_DATETIME_FORMAT   
'm/d/Y P'
SHORT_DATE_FORMAT   
'm/d/Y'
SIGNING_BACKEND 
'django.core.signing.TimestampSigner'
SILENCED_SYSTEM_CHECKS  
[]
STATICFILES_DIRS    
[PosixPath('/Users/paul/Src/tsa_mgmt/main/static')]
STATICFILES_FINDERS 
['django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
STATICFILES_STORAGE 
'django.contrib.staticfiles.storage.StaticFilesStorage'
STATIC_ROOT 
PurePosixPath('/Users/paul/Src/tsa_mgmt/static')
STATIC_URL  
'/static/'
SYSTEM_EMAIL_SENDER 
'paul.hermans@baldwinschool.org'
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',
                                     'main.custom_context_processor.get_current_path',
                                     'main.custom_context_processor.get_global_settings']}}]
TEST_NON_SERIALIZED_APPS    
[]
TEST_RUNNER 
'django.test.runner.DiscoverRunner'
THIS_DIR    
'/Users/paul/Src/tsa_mgmt/main/settings'
THOUSAND_SEPARATOR  
','
TIME_FORMAT 
'P'
TIME_INPUT_FORMATS  
['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
TIME_ZONE   
'America/New_York'
USE_DEPRECATED_PYTZ 
False
USE_I18N    
False
USE_L10N    
False
USE_THOUSAND_SEPARATOR  
True
USE_TZ  
True
USE_X_FORWARDED_HOST    
False
USE_X_FORWARDED_PORT    
False
WSGI_APPLICATION    
'main.wsgi.application'
X_FRAME_OPTIONS 
'DENY'
YEAR_MONTH_FORMAT   
'F Y'

Anything else?

I am happy to send entire files, but don't see how I do that here.

Code of Conduct

github-actions[bot] commented 1 year ago

Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience.

jackton1 commented 1 year ago

@PHermans1 I believe the error here means that you need to add app_name to your urls.py.

Take a look at the demo application for a more detailed example of how to set up your urls.py

NOTE: app_name shouldn't be added to the ConferenceListView as it's not utilized by the view but by the route config.

See: https://stackoverflow.com/a/52902655