Python/django error: 'myapp' is not a registered namespace
问题 I am facing a very unusual problem. I've registered the namespace myapp using app_name in my main project's urls.py file like this: app_name = 'myapp' I'm writing a view where the user registers and is redirected to the homepage. However, when I'm using the redirect function in myapp's views.py file like this: return redirect('myapp: index') I'm getting the following error after clicking the registration form's submit button: NoReverseMatch at / 'myapp' is not a registered namespace I tired