pip install jupyter ipython django-extensions
# settings.py
INSTALLED_APPS = [
...
'django_extensions',
...
]
(mysite) C:\project\backend>jupyter notebook
#어쩌구.ipynb
import os
os.environ['DJANGO_SETTINGS_MODULE']='config.settings.local'
os.environ['DJANGO_ALLOW_ASYNC_UNSAFE']='true'
import django
django.setup()
from blog.models import Post