2

I have a python file in my app folder in my django project, I want it to run when the server starts, How do I do that ?

user2621381
  • 103
  • 1
  • 8

1 Answers1

3

put your code in __init__.py file of your app folder.

madhu131313
  • 7,003
  • 7
  • 40
  • 53