Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
running Django app with REST
#1
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 ?
Reply
#2
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.
Reply
#3
I think your point is Single page application
and you can do it with ajax and angularjs
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to Extend a serializer in Django Rest-Framework Dexty 0 1,730 Aug-10-2022, 02:53 PM
Last Post: Dexty
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,319 Jun-30-2019, 12:21 AM
Last Post: scidam
  Django Rest Framework URL issue marcus 0 2,510 Feb-07-2018, 10:31 PM
Last Post: marcus
  django rest framework - custom routes SparrowhawkMMU 2 6,227 Jan-11-2018, 05:34 PM
Last Post: mariovalentino69
  Django REST - input of some form fields is send twice to the backend ann 4 4,012 Jan-03-2018, 05:43 PM
Last Post: ann

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020