Tuesday, September 4, 2018

Re: saleor error NoReverseMatch at /en/

Hey Tim,

Are you sure your view is defined with spaces in the urls.py? Shouldn't it be {% url 'manifest' %} instead, with no spaces around the name?

On Tue, Sep 4, 2018 at 6:28 AM, Tim Vogt (Tim Vogt) <timtvogt@gmail.com> wrote:
I have made saleor local

after restart I get this error

Tried to change the " " into ' ' bout before it worked.

Any tips how to solve this?

Tim

NoReverseMatch at /en/

Reverse for ' manifest ' not found. ' manifest ' is not a valid view function or pattern name.
Request Method:GET
Request URL:http://localhost:8000/en/
Django Version:2.0.8
Exception Type:NoReverseMatch
Exception Value:
Reverse for ' manifest ' not found. ' manifest ' is not a valid view function or pattern name.
Exception Location:/Users/timvogt/virtualenvs/saleor/lib/python3.6/site-packages/django/urls/resolvers.py in _reverse_with_prefix, line 634
Python Executable:/Users/timvogt/virtualenvs/saleor/bin/python3
Python Version:3.6.5
Python Path:
['/Users/timvogt/Software_projects/saleor',   '/Users/timvogt/virtualenvs/saleor/lib/python36.zip',   '/Users/timvogt/virtualenvs/saleor/lib/python3.6',   '/Users/timvogt/virtualenvs/saleor/lib/python3.6/lib-dynload',   '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6',   '/Users/timvogt/virtualenvs/saleor/lib/python3.6/site-packages',   '/Users/timvogt/Software_projects/saleor']
Server time:Tue, 4 Sep 2018 04:26:23 -0500

Error during template rendering

In template /Users/timvogt/Software_projects/saleor/templates/base.html, error at line 24

Reverse for ' manifest ' not found. ' manifest ' is not a valid view function or pattern name.

14 <meta name="apple-mobile-web-app-status-bar-style" content="black">
15 <meta name="apple-mobile-web-app-title" content="{{ site.name }}">
16 <meta name="og:type" content="website"> {% get_available_languages as LANGUAGES %} {% for lang_code, language_name in LANGUAGES %}
17 <link rel="alternate" hreflang="{{ lang_code }}" href="{% translate_url url=request.path lang_code=lang_code %}" /> {% endfor %} {% endblock meta %} {% include 'favicon.html' %} {% render_bundle 'storefront' 'css' attrs='async' %} {% block stylesheet %}{% endblock stylesheet %} {% block meta_tags %}
18 <meta property="og:title" content="{{ site.settings.translated.header_text }}">
19 <meta property="og:description" content="{{ site.settings.translated.description }}">
20 <meta name="description" content="{{ site.settings.translated.description }}">
21 <meta property="og:url" content="{{ request.build_absolute_uri }}">
22 <meta property="og:image" content="{% static " images/block1.png " %}"> {% endblock meta_tags %}
23
24 <link rel='manifest' href="{% url ' manifest ' %}" />
25
26 <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
27 <!--[if lt IE 9]>
28 <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
29 <![endif]-->
30</head>
31
32<body>
33 {% block header %}
34 <header class="navbar" role="navigation">

--
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 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/F33E62F9-637C-4EB0-A1E0-CA36735500DF%40gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Julio Biason, Sofware Engineer
AZION  |  Deliver. Accelerate. Protect.
Office: +55 51 3083 8101  |  Mobile: +55 51 99907 0554

--
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 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/CAEM7gE0mf7EAUnHPKA%3DSp%2BruKZSdpAZBv%2BrPtjXacUZQBeBkXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment