How to execute code automatically after manage.py runserver
Just add that script in settings.py file. Because settings.py file of those files which are executed prior to views.py file
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?