0👍
✅
You need to perform a few tasks manually when writing a standalone Django script.
1👍
I suggest you create a custom management command if you plan on running this command more than once. It only requires a small amount of boilerplate code and a special directory within your app. It will solve your problem and help improve the long term maintainability of your project.
https://docs.djangoproject.com/en/dev/howto/custom-management-commands/
👤Alex
- [Answer]-Stop an ajax call if it takes to much to complete
- [Answer]-Django retrieving users from tuples
- [Answer]-What is the appropriate way to set up a form and view in Django to accommodate both creating and updating a model
Source:stackexchange.com