I have following files structure in my django app
|-myapp
|---static
|-----adminapp
|-----clientapp
|-----commonapp
|-----css
|-----fonts
|-----js
|---templates
|-----administration
|-------index.html
|-----client
|-------index.html
It's because I want to build two angular apps, one for users (static/clientapp) and one for admin (static/adminapp).
templates/administration/index.html and templates/client/index.html are similar and contains code like:
<head>
<script src="static/js/angular.js"></script>
<script src="static/adminapp/app.js"></script>
</head>
<body ng-app="adminapp"></body>
Links to my admin and client apps should be:
http://example.com/administration/
http://example.com/client/
The question is what entry should I add to urls.py to let both angular apps access to the same static folder.
It must by something like:
url(r'^administration/static/$', STATIC_ROOT),
url(r'^client/static/$', STATIC_ROOT)
but I'm django newbie and I don't know how to define it correctly.