简体   繁体   中英

Django urls and Angular ui-routes

I am front developer for django and angular app. For each templateUrl should I need to defined that in django urls. Else I am getting 404 not found for the templateUrl. Is there a way to directly fetch the files from server, other defining django url and serving the file.

You could just put your template in the static directory. When ui-router will fetch your template, it will be like any other static files for django.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM