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

url_name and host_name in host_url template tag as template variable #55

Closed SolarisYan closed 8 years ago

SolarisYan commented 8 years ago

Is it possible to pass url_name and host_name and the parameters as template variable?

i use database to store the variable, and in temple like this: {% for action in actions_list %}

  • {{ action.name_short }}
  • {% endfor %}

    the action.url_alias is like this 'user-edit' 1 host 'account'

    but it error:

    Reverse for ''user-edit' 1 host 'account'' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

    how can i solve this problem? any one help?

    any help? thanks a lot

    timgraham commented 8 years ago

    This is the bug tracker for the project. Please use the django-users mailing list for usage questions.