Re: Namespace url lookup inside template of an app

2015-01-30 Thread Thorsten Sanders
Answering my own question, for the case someone else need it: I am used to use render_to_response it not working with it, with using render it works with applying current_app, like this: return render(request, 'myaddons/index.html', {'addons':addons,'game':game,},current_app=request.resolver_

Namespace url lookup inside template of an app

2015-01-29 Thread Thorsten Sanders
Hello, writing currently an app which should show different things based on namespace which is working already, but I do have problems with generating the right url inside the templates of that app. I tried to use: {% url 'myaddons:index' %} but that always shows the same namespace url the las