问题
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