I'm writing application with django and angular and I have following problem. After authentication in django I turn mvc view with angular app definition.
<div class="main">
<div class="main-inner">
<div class="container" ng-app="povos" ng-view>
{% block content %}{% endblock %}
{% block scripts %}{% endblock %}
</div>
</div>
</div>
<script src="/static/assets/js/bootstrap.js"></script>
<script src="/static/assets/js/angular.js"></script>
<script src="/static/assets/js/angular-route.js"></script>
<script src="/static/assets/js/angular-cookies.js"></script>
<script src="/static/spa_app/app.js"></script>
<script src="/static/spa_app/modules/messages/messages.module.js"></script>
My app.js looks like that:
angular.module('povos', ['povos.messages'])
And my messages module like following:
angular.module('povos.messages', ['ngRoute'])
.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/messages', {
templateUrl: 'messages.html'
})
}])
My problem is that if I return that view and I try to request to /messages path I get:
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/messages
Using the URLconf defined in povos.urls, Django tried these URL patterns, in this order:
(urls here)
The current URL, messages, didn't match any of these.
My browses call to django mvc app. I understand in this way. Is it possible not to call django only work on angular routeProvider? How to configure it? Sorry for my english but It is not my native language.