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 ?
Asked
Active
Viewed 968 times
1 Answers
3
put your code in __init__.py
file of your app folder.

madhu131313
- 7,003
- 7
- 40
- 53
-
1Take care that this code will be run any time you import that package. – finiteautomata Jan 21 '14 at 18:27