Is there a way to autoload models in the pycharm django console (in a similar way to how django-extensions shell_plus works)?
In pycharm settings, django console settings you can have a starting script:
This will automatically load the django models, like shell_plus:
import sys
import django
django.setup()
from django.apps import apps
for _class in apps.get_models():
globals()[_class.__name__] = _class
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With