Creating Single Page App in Django with Polymer

北慕城南 提交于 2019-12-24 07:48:35

问题


I'm currently working on a singe page app in django that makes use of Polymer Elements. My problem is when I'm changing template views.

When I click on a page link to direct me to a new view I want to use the app-route, app-location and the iron-pages elements that Polymer has. This lets me simply change my current views without actually having to reload the whole page again and make requests. Apparently, in Django, whenever I click on a link it instead goes to the urls.py and tries to direct me to that link. Is it possible to create single page apps in django with polymer?

来源:https://stackoverflow.com/questions/47342880/creating-single-page-app-in-django-with-polymer

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!