Get the data at a time in Django and make it use through out the application
Clash Royale CLAN TAG#URR8PPP
Get the data at a time in Django and make it use through out the application
How to create a Project/ application scope variable in django will be loaded when I start the server and that variable will be accessible to all views in a app i,e. Application level
settings.py
What I want to know is,whenever I start the Django project
– sai chaitu
Aug 6 at 9:27
Whenever I start the Django project , it should be stored in memory and it can be used by all apps in my project
– sai chaitu
Aug 6 at 9:28
When ever am running the manage.py file I get the information from some external url. How to store that information in memory and how to use that throughout the application in django
– sai chaitu
Aug 6 at 9:34
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
You can define the variable in
settings.py
, but basically every module will do, as long as you import the module properly.– Willem Van Onsem
Aug 6 at 9:25