In windows or other operating systems, we use the manager. when py shell is used to perform django interactive operations, the CMD is not convenient during the operation, so today we will introduce you to the introduction of the Python web development framework.
You can introduce manager. py into advanced interactive programs. Currently, I am using DreamPie.
Optional. Interactive python command line program
- DreamPie
IDEL: python built-in
Set environment variables:
Add two items in windows environment variables
Set django startup Environment
1. DJANGO_SETTINGS_MODULE = package. settings
2. PYTHONPATH = package path. The package must contain _ init _. py.
Open DreamPie:
- import sys
- >>> sys.path
- 0: ['D:\\Program Files\\DreamPie\\share\\dreampie',
- 'D:\\py.worker.dir\\poll'
Here is my package path
- 'C:\\Windows\\system32\\python26.zip',
- 'D:\\Python26\\DLLs',
- 'D:\\Python26\\lib',
- 'D:\\Python26\\lib\\plat-win',
- 'D:\\Python26\\lib\\lib-tk',
- 'D:\\Python26',
- 'D:\\Python26\\lib\\site-packages',
- 'D:\\Python26\\lib\\site-packages\\PIL']
- >>> from poll.polls.models import *
The above is an introduction to the Python web development framework-Django's interactive development environment configuration. I forget you will get something.