1๐
โ
If your site loads, you should put the import the models into one of your Django views.
In a view you can do whatever you like with the models.
๐คUku Loskit
1๐
This snippet named Command Line Script Launcher
may help you,
This snippet allows you execute arbitrary Python scripts from the command line
with the context of a given project:python manage.py execfile /path/to/some/script.py
The doc of Django tells you how to extend manage.py commands
๐คiMom0
- [Answered ]-Django timezone vs datetime
- [Answered ]-When should the hostname be in ALLOWED_HOSTS
- [Answered ]-Django: Check that row exists in list
- [Answered ]-In django, can I use 'as' in if tags like so: {% if excessively_verbose.chain_of_long.nested_references as foo%}
- [Answered ]-Python for loop not return multiple dict
0๐
You can right click any python file in pycharm and run it, though executing a script file self contained, you might want to add the main trick:
if __name__ == "__main__":
do_stuff()
- [Answered ]-What does an '_' in django url do?
- [Answered ]-Best Folder Structure For Abstract Models
- [Answered ]-How to query multiple Django models describing denormalized tables
Source:stackexchange.com