Hi, I put together a little example of a Django application that uses Aurelia to enhance a page. This is not an SPA, it’s using Django templates and the aurelia.enhance() feature.
The readme is setup as a tutorial. It starts from scratch and tries to cater to Django developers curious about Aurelia, or Aurelia developer curious about Django.
TLDR: If you already know about both and are stuggling trying to get Django and Aurelia to work together, just looks at the changes in the aurelia.json, main.ts and the django home.html template.
There are some clumsy bits, contrived, where aurelia pops values back intos a Django form before submitting the form. This could be more elegantly done by adding custom attributes to the input fields in django and enabling real binding in aurelia. This would make the setup more complicated though, and I wanted to keep it as simple as possible. It’s not really highlighting the best parts of Aurelia or Django. It is demontrating where to draw the border ( or a border, there are other possibilities ) between the two. Django is doing validation and Page management, Aurelia is handling a single UI component.
Feel free to ask me if you have any quertions, or post a ticket in gitlab if you have trouble recreating the project.