I’m trying to access the current app name from a view or template.
In other SO answers How to get an app name using python in django and How to get current application in Django I found that resolve(request.path).app_name should return the current app name. But in my case it alwas returns “None”.
I’m using Django 1.3.
For that to work, you have to pass a
app_nameparameter when including your urls:More info: Defining URL namespaces