python manage.py runserver
python manage.py shell
python manage.py test polls
python manage.py migrate
See [Reusable apps] (https://docs.djangoproject.com/en/1.9/intro/reusable-apps/) for details.
- copy
/polls
outside the project folder to a parent folderdjango-polls
- create
LICENSE
,MANIFEST
,README.rst
andsetup.py
- within
django-polls
runpython setup.py sdist
- this should generate a dist folder with the package
django-polls-0.1.zip
Preferred way is to install the package in virtualenv using pip pip install django-polls-0.1.tar.gz
. Then follow instructions in README.rst
(add the app polls
into INSTALLED_APPS
and setup URLconf
).