0

My project architecture is in this way .. I have a django-rest-api (api) in a django project and normal django app with TemplateView's , In django app templates I use both django template tags and angularJs tags and I differentiate them using {% verbaitm %} tag. I want to know the best way to show loading page .

NOTE :I have an issue in here , I load both angularJS Tags and Django Template tags in my project so i am not able to hide django template tags here, and show loading screen.

  • I have an issue in here , I load both angularJS Tags and Django Template tags in my project so i am not able to django template tags here, and shpw loading screen. – Sakura Otawa Sep 04 '18 at 12:41

2 Answers2

0

It's probably not worth making/loading an entire page for this. If you are waiting on an ajax call response, before you send the request you could pop some sort of loading overlay with the same Javascript you are creating the AJAX request with. Once you receive the response, use the success method to take down your loading overlay.

Rosey
  • 739
  • 1
  • 12
  • 27
-1

Check cfpLoadingBar.

It is lovely and flexible. You can even ignore the loading for some particular requests.

Sajjad Shahi
  • 572
  • 4
  • 14