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

No reverse match when url has arguments #67

Open
daydream05 opened this issue Mar 27, 2017 · 1 comment
Open

No reverse match when url has arguments #67

daydream05 opened this issue Mar 27, 2017 · 1 comment

Comments

@daydream05
Copy link

This is my url config with the host 'app'

url(r'^my-services/(?P<pk>[0-9]+)/update/$', views.service_update, name="service_update")

And this is my template tag. I've tried hard coding the value for pk with the valid value but it still would not work.
{% host_url 'service_update' host 'app' pk=service.id%}

@bodgerbarnett
Copy link

This ticket might help fix this.

#24

You need to put the pk argument before the host argument.

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

2 participants