Orm Lauch
Orm Lauch
sys.dont_write_bytecode = True
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')
django.setup()
------------------------------------------------------------
2. in main: import init_django_orm # noqa: F401
3. from 'name of app'.models import 'name of class'
4. print('name of class'.objects.all())
in settings of pycharm:
1. select django support