Issue
I need to read a csv file just after running server. It can't be done in any view because it need to be preload to execute all views, so I need to do it immediately after "manage.py runserver". Is there any file where I can write the code that I need to execute in first place?
Solution
Just add that script in settings.py
file. Because settings.py file of those files which are executed prior to views.py file
Answered By - Salman Arshad
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.