From my own experience, after creating a new application, the same problem occurred. Remove the entry "app_name = 'namespace' " from the application url - start the server, the compiler will report an error - "app_name" is missing. Add the "app_name" variable to URL-app - and then Python will register the namespace.