In searched for wagtail settings and could not find It. I have installed the Working demo and could not yet find the differeces Tim
Verstuurd vanaf mijn iPhone > Op 23 aug. 2018 om 07:36 heeft gilwell muhati <gilwe...@gmail.com> het > volgende geschreven: > > Good morning @Tim did you solve this? > > wagtailsettings is a registed app perhaps and the app_name='wagtailsettings' > has not been initialised or the namespace on urls has not been called,kindly > check on using namespaces on paths and urls > > Regards, > > Gilwell Muhati | +254 710 739 116 | > ~~“The mind is its own place and in itself can make a heaven of hell, a hell > of heaven…”~~John Milton > > >> On Thu, Aug 23, 2018 at 1:29 AM Tim Vogt (Tim Vogt) <timtv...@gmail.com> >> wrote: >> I am working on this demo >> https://snipcart.com/blog/django-ecommerce-tutorial-wagtail-cms >> >> >> and get the error below >> Any help? Because I could not find the error >> >> Tim >> >> NoReverseMatch at /admin/login/ >> 'wagtailsettings' is not a registered namespace >> Request Method: GET >> Request URL: http://localhost:8000/admin/login/?next=/admin/ >> Django Version: 2.0.7 >> Exception Type: NoReverseMatch >> Exception Value: >> 'wagtailsettings' is not a registered namespace >> Exception Location: >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/urls/base.py >> in reverse, line 86 >> Python Executable: >> /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 >> Python Version: 3.6.5 >> Python Path: >> ['/Users/timvogt/Software_learn_to_code_projects/snipcartwagtaildemo', >> '/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip', >> '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6', >> >> '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload', >> '/Users/timvogt/Library/Python/3.6/lib/python/site-packages', >> >> '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages'] >> Server time: Wed, 22 Aug 2018 22:25:30 +0000 >> Error during template rendering >> >> In template >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wagtail/admin/templates/wagtailadmin/skeleton.html, >> error at line 0 >> 'wagtailsettings' is not a registered namespace >> 1 <!doctype html> >> 2 {% load staticfiles i18n %} >> 3 <html class="no-js" lang="{{ LANGUAGE_CODE|default:"en-gb" }}"> >> 4 <head> >> 5 <meta charset="utf-8" /> >> 6 <title>Wagtail - {% block titletag %}{% endblock %}</title> >> 7 <meta name="description" content="" /> >> 8 <meta name="viewport" content="width=device-width, >> initial-scale=1.0" /> >> 9 >> 10 <script src="{% static >> 'wagtailadmin/js/vendor/modernizr-2.6.2.min.js' %}"></script> >> Traceback Switch to copy-and-paste view >> >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/urls/base.py >> in reverse >> extra, resolver = resolver.namespace_dict[ns] ... >> ▶ Local vars >> During handling of the above exception ('wagtailsettings'), another >> exception occurred: >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/handlers/exception.py >> in inner >> response = get_response(request) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/handlers/base.py >> in _get_response >> response = self.process_exception_by_middleware(e, request) >> ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/handlers/base.py >> in _get_response >> response = response.render() ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/response.py >> in render >> self.content = self.rendered_content ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/response.py >> in rendered_content >> content = template.render(context, self._request) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/backends/django.py >> in render >> return self.template.render(context) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/base.py >> in render >> return self._render(context) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/base.py >> in _render >> return self.nodelist.render(context) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/base.py >> in render >> bit = node.render_annotated(context) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/base.py >> in render_annotated >> return self.render(context) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/loader_tags.py >> in render >> return compiled_parent._render(context) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/base.py >> in _render >> return self.nodelist.render(context) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/base.py >> in render >> bit = node.render_annotated(context) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/base.py >> in render_annotated >> return self.render(context) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/loader_tags.py >> in render >> return compiled_parent._render(context) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/base.py >> in _render >> return self.nodelist.render(context) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/base.py >> in render >> bit = node.render_annotated(context) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/base.py >> in render_annotated >> return self.render(context) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/loader_tags.py >> in render >> result = block.nodelist.render(context) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/base.py >> in render >> bit = node.render_annotated(context) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/base.py >> in render_annotated >> return self.render(context) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/library.py >> in render >> output = self.func(*resolved_args, **resolved_kwargs) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wagtail/admin/templatetags/wagtailadmin_tags.py >> in main_nav_js >> return admin_menu.media['js'] ... >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wagtail/admin/menu.py >> in media >> media += item.media ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/forms/widgets.py >> in _media >> base = sup_cls.media ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wagtail/admin/menu.py >> in media >> return Media(js=[static('wagtailadmin/js/submenu.js')]) + >> self.menu.media ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wagtail/admin/menu.py >> in media >> for item in self.registered_menu_items: ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wagtail/admin/menu.py >> in registered_menu_items >> self._registered_menu_items = [fn() for fn in >> hooks.get_hooks(self.register_hook_name)] ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wagtail/admin/menu.py >> in <listcomp> >> self._registered_menu_items = [fn() for fn in >> hooks.get_hooks(self.register_hook_name)] ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wagtail/contrib/settings/registry.py >> in menu_hook >> return SettingMenuItem(model, **kwargs) ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wagtail/contrib/settings/registry.py >> in __init__ >> model._meta.app_label, model._meta.model_name]), ... >> ▶ Local vars >> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/urls/base.py >> in reverse >> raise NoReverseMatch("%s is not a registered namespace" >> % key) ... >> ▶ Local vars >> Request information >> >> USER >> >> AnonymousUser >> GET >> >> Variable Value >> next >> '/admin/' >> POST >> >> No POST data >> FILES >> >> No FILES data >> COOKIES >> >> Variable Value >> csrftoken >> 'wweo04Ky2AvKpXB5Dks7Wh1KEMdVYQHEUYxdhDHxdFbgD59wxoc5A7yhf1DKfPF1' >> _xsrf >> '2|878cf834|c449d16f85d12cdef7046b0ac6567a54|1534532218' >> username-localhost-8888 >> '2|1:0|10:1534532218|23:username-localhost-8888|44:YWY3N2MyNDAxYzQ0NDI3NmIxNWY4ZjUyNTI5Y2Y4YTY=|060151f0b69a6428ef01d3516fe0550735f33337c8e205b9f59bf602134027e9' >> _ga >> 'GA1.1.581090691.1515705617' >> pretix_csrftoken >> '4D01Mhbc4oN2AvqmkxKaDPdzh040pxwHykOr0hc5afYoMMWtYpFcukamsEO2j3lg' >> __stripe_mid >> 'c72941fc-ac1e-4460-b838-5eeeec87b673' >> Pycharm-77c83f85 >> '1f4c7cc4-a97c-4bdc-b2cc-4c190f485abd' >> META >> >> Variable Value >> Apple_PubSub_Socket_Render >> '/private/tmp/com.apple.launchd.XZou5oFj4a/Render' >> CONTENT_LENGTH >> '' >> CONTENT_TYPE >> 'text/plain' >> CSRF_COOKIE >> 'wweo04Ky2AvKpXB5Dks7Wh1KEMdVYQHEUYxdhDHxdFbgD59wxoc5A7yhf1DKfPF1' >> DISPLAY >> '/private/tmp/com.apple.launchd.PIata7pzBI/org.macosforge.xquartz:0' >> DJANGO_SETTINGS_MODULE >> 'snipcartwagtaildemo.settings.dev' >> GATEWAY_INTERFACE >> 'CGI/1.1' >> HOME >> '/Users/timvogt' >> HTTP_ACCEPT >> 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' >> HTTP_ACCEPT_ENCODING >> 'gzip, deflate' >> HTTP_ACCEPT_LANGUAGE >> 'nl-nl' >> HTTP_CONNECTION >> 'keep-alive' >> HTTP_COOKIE >> ('csrftoken=wweo04Ky2AvKpXB5Dks7Wh1KEMdVYQHEUYxdhDHxdFbgD59wxoc5A7yhf1DKfPF1; >> ' >> '_xsrf=2|878cf834|c449d16f85d12cdef7046b0ac6567a54|1534532218; ' >> >> 'username-localhost-8888="2|1:0|10:1534532218|23:username-localhost-8888|44:YWY3N2MyNDAxYzQ0NDI3NmIxNWY4ZjUyNTI5Y2Y4YTY=|060151f0b69a6428ef01d3516fe0550735f33337c8e205b9f59bf602134027e9"; >> ' >> '_ga=GA1.1.581090691.1515705617; ' >> >> 'pretix_csrftoken=4D01Mhbc4oN2AvqmkxKaDPdzh040pxwHykOr0hc5afYoMMWtYpFcukamsEO2j3lg; >> ' >> '__stripe_mid=c72941fc-ac1e-4460-b838-5eeeec87b673; ' >> 'Pycharm-77c83f85=1f4c7cc4-a97c-4bdc-b2cc-4c190f485abd') >> HTTP_HOST >> 'localhost:8000' >> HTTP_UPGRADE_INSECURE_REQUESTS >> '1' >> HTTP_USER_AGENT >> ('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 >> (KHTML, ' >> 'like Gecko) Version/11.1.2 Safari/605.1.15') >> LANG >> 'nl_NL.UTF-8' >> LOGNAME >> 'timvogt' >> OLDPWD >> '/Users/timvogt/Software_learn_to_code_projects' >> PATH >> '/Users/timvogt/virtualenvs/snipcartwagtaildemo/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/anaconda/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:~/.composer/vendor/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Applications/Postgres.app/Contents/Versions/latest/bin' >> PATH_INFO >> '/admin/login/' >> PS1 >> '(snipcartwagtaildemo) \\h:\\W \\u\\$ ' >> PWD >> '/Users/timvogt/Software_learn_to_code_projects/snipcartwagtaildemo' >> QUERY_STRING >> 'next=/admin/' >> 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' >> SHLVL >> '1' >> SSH_AUTH_SOCK >> '/private/tmp/com.apple.launchd.FbWJoUw2HW/Listeners' >> TERM >> 'xterm-256color' >> TERM_PROGRAM >> 'Apple_Terminal' >> TERM_PROGRAM_VERSION >> '404' >> TERM_SESSION_ID >> 'D85AE86A-EBDC-407B-ABE5-96FDFA784A1B' >> TMPDIR >> '/var/folders/r7/mzwmw_kn2px58v7clw0vxy700000gn/T/' >> TZ >> 'UTC' >> USER >> 'timvogt' >> VIRTUALENVWRAPPER_HOOK_DIR >> '/Users/timvogt/virtualenvs' >> VIRTUALENVWRAPPER_PROJECT_FILENAME >> '.project' >> VIRTUALENVWRAPPER_SCRIPT >> '/Library/Frameworks/Python.framework/Versions/3.6/bin/virtualenvwrapper.sh' >> VIRTUALENVWRAPPER_WORKON_CD >> '1' >> VIRTUAL_ENV >> '/Users/timvogt/virtualenvs/snipcartwagtaildemo' >> WORKON_HOME >> '/Users/timvogt/virtualenvs' >> XPC_FLAGS >> '0x0' >> XPC_SERVICE_NAME >> '0' >> _ >> '/Library/Frameworks/Python.framework/Versions/3.6/bin/python3' >> __CF_USER_TEXT_ENCODING >> '0x1F5:0x0:0x5' >> __PYVENV_LAUNCHER__ >> '/Library/Frameworks/Python.framework/Versions/3.6/bin/python3' >> wsgi.errors >> <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'> >> wsgi.file_wrapper >> '' >> wsgi.input >> <_io.BufferedReader name=6> >> wsgi.multiprocess >> False >> wsgi.multithread >> True >> wsgi.run_once >> False >> wsgi.url_scheme >> 'http' >> wsgi.version >> (1, 0) >> Settings >> >> Using settings module snipcartwagtaildemo.settings.dev >> Setting Value >> ABSOLUTE_URL_OVERRIDES >> {} >> ADMINS >> [] >> ALLOWED_HOSTS >> ['*'] >> APPEND_SLASH >> True >> AUTHENTICATION_BACKENDS >> ['django.contrib.auth.backends.ModelBackend'] >> AUTH_PASSWORD_VALIDATORS >> '********************' >> AUTH_USER_MODEL >> 'auth.User' >> BASE_DIR >> '/Users/timvogt/Software_learn_to_code_projects/snipcartwagtaildemo' >> BASE_URL >> 'http://example.com' >> CACHES >> {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} >> CACHE_MIDDLEWARE_ALIAS >> 'default' >> CACHE_MIDDLEWARE_KEY_PREFIX > > -- > 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+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CALO4FhEXaX57kVKQcix2afrCxuESNb8gz3E6qqFtueHBQkXqnw%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CD48D3E3-6BAD-463E-A193-A76031DD61B9%40gmail.com. For more options, visit https://groups.google.com/d/optout.