Thursday, May 31, 2018

Re: href not working

On donderdag 31 mei 2018 05:56:59 CEST Caleb Bryson wrote:
> So i am trying to create a directory with a Home,Blog,and Contact
> selection. But every time i click on one of them they all go back to the
> home page.

If the url in your addressbar is /blog/ after clickin on it, but you see the
homepage content, then your homepage url pattern matches too much.

If you get redirected to the homepage, then there's something wrong in your
blog view code.

Given that it applies to both contact and blog, the first option is more
likely, but you could be making the same mistake in both views.

--
Melvyn Sopacua

--
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/1865269.oQ2Mhu4JUg%40fritzbook.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment