Reputation: 1124
I started to learn Django. I want to read from CSV file records and save them in Sqlite when the server just loaded (after running the command python manage.py runserver
)
I don't understand where should I write the code that does it.
it should be on the view? it should be on the command?
Thanks for any help!
Upvotes: 0
Views: 93
Reputation: 367
About the separation of business logic and views you can check: Separation of business logic and data access in django
Upvotes: 1