Develop django_dbdev¶
Install the requirements¶
Install the following:
- Python:)
- PIP
- VirtualEnv
- virtualenvwrapper
- MySQL (you will need the development headers to build the Python module)
- PostgreSQL (you will need the development headers to build the Python module)
Install required Python modules in a virtualenv¶
Create a virtualenv:
$ mkvirtualenv django_dbdev
Install the development requirements:
$ cd djangoproject/
$ pip install -r requirements_development.txt
Run the test project¶
Navigate to the testproject:
$ cd dbdev_testproject/
Test with postgres using:
$ DJANGO_SETTINGS_MODULE=dbdev_testproject.develop.settings.postgres python manage.py
Test with sqlite using:
$ DJANGO_SETTINGS_MODULE=dbdev_testproject.develop.settings.sqlite python manage.py
Test with mysql using:
$ DJANGO_SETTINGS_MODULE=dbdev_testproject.develop.settings.mysql python manage.py
Submit a patch¶
- Fork the GitHub repository.
- If you are making a major change, you should create an issue where you explain the change and the motivation. This will make it far less likely that the patch will be rejected.
- When the patch is ready, send a pull request to
espenak
.
Release a new version¶
- Update
django_dbdev/version.json
- Git commit the release with message
Release <version>
. - Git tag the release with
<version>
. python setup.py sdist
twine upload dist/django-dbdev-<version>.tar.gz
(you may need to dopip install twine
)