Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter8 Reverse for 'show_category' with arguments.. #61

Open
libincla opened this issue Apr 16, 2018 · 6 comments
Open

Chapter8 Reverse for 'show_category' with arguments.. #61

libincla opened this issue Apr 16, 2018 · 6 comments

Comments

@libincla
Copy link

here is my code(btw, i was completed fork by your digital book )
and it occured the error like the bottom

django.core.urlresolvers.NoReverseMatch: Reverse for 'show_category' with arguments '('',)' and keyword arguments '{}' not found. 1 pattern(s) tried: ['rango/category/(?P<category_name_slug>[\w\-]+)/$']

it confused me three days, i don't know why it happend, and i hope the writer can see it.
thanks anyway

@leifos
Copy link
Collaborator

leifos commented Apr 17, 2018

hi Libincia, what version of Django are you using?

Also, what is the url that was entered to trigger this error? i.e http://127.0.0.1:8000/rango/category/broken/ ??

L

@libincla
Copy link
Author

my django version is : 1.9.10 and i've already followed your django's version
and
when i added the rango_template_tags.py and rango/cats.html and added the template tags at the head of base.html , e.x

{% block sidebar_block %} {% get_category_list %} {% endblock %}

when i entered http://127.0.0.1:8000/rango/about ==> it occured the error Reverse for 'show_category' with arguments/..

@leifos
Copy link
Collaborator

leifos commented Apr 17, 2018 via email

@libincla
Copy link
Author

i'll push in two days, thanks any way

@libincla
Copy link
Author

hi, leifos, sorry for delay , this is the git repo https://github.com/libincla/tango.git btw. my python version is Python 3.6.1 use the virtualenv

@SnorlaxYum
Copy link

The same here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants