jazzband / django-hosts

Dynamic and static host resolving for Django. Maps hostnames to URLconfs.
http://django-hosts.rtfd.org
Other
982 stars 106 forks source link

No reverse match when url has arguments #67

Open daydream05 opened 7 years ago

daydream05 commented 7 years ago

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 commented 6 years ago

This ticket might help fix this.

https://github.com/jazzband/django-hosts/issues/24

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