Python Forum
running Django app with REST - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: running Django app with REST (/thread-2614.html)



running Django app with REST - chemseddineZ - Mar-28-2017

I have a Django web application that contains HTML, Javascript and CSS files. When i run my application i see that all the files are loaded one by one. What i need is to load all the files with one request so i will be able to call my app in different contexts. I've been told to check REST in order to make that happen.

How can i do that ?


RE: running Django app with REST - nilamo - Mar-29-2017

rest has nothing to do with having your content split across multiple files.

If you don't want to send multiple clients to the client, then instead of using multiple files, but all the content in the <head> of your html document.


RE: running Django app with REST - shahpy - Apr-07-2017

I think your point is Single page application
and you can do it with ajax and angularjs