Backport dbshell support for ssl mysql connections in Django < 1.8
Project description
# Django MySQL SSL
**Description**: Backport support for manage.py dbshell when mysql SSL is enabled
## Dependencies
This application is confirmed to work with Django 1.5. It should also work with Django 1.6-1.7. This plugin is not necessary for Django 1.8, as the capability is built into the core.
## Installation
1. Install the application and its dependencies
```
pip install django-mysql-ssl
```
## Usage
1. Make sure you have configured your mysql database in the django settings with the appropriate ssl ca. You may also need 'cert' and 'key', but for most purposes 'ca' should work fine. This functionality is built into django and has nothing to do with this plugin.
```python
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
...
'OPTIONS': {'ssl': {'ca': '<PATH TO CA CERT>'}}
}
}
```
1. Connect to the db shell using the `dbshell_ssl` command:
```shell
./manage.py dbshell_ssl
```
## Known issues
None
## Getting help
If you have questions, concerns, bug reports, etc, please file an issue in this repository's Issue Tracker.
## Getting involved
Please feel free to fork this repo and submit Pull Requests with any enhancements.
----
## Open source licensing info
1. [TERMS](TERMS.md)
2. [LICENSE](LICENSE)
3. [CFPB Source Code Policy](https://github.com/cfpb/source-code-policy/)
----
## Credits and references
1. Django ticket explaining the broken dbshell command: https://code.djangoproject.com/ticket/22646
1. Django PR implementing the functionality in Django 1.8: https://github.com/django/django/commit/01801edd3760f97a4ebc4d43ca5bbdbbdfebbb0a
**Description**: Backport support for manage.py dbshell when mysql SSL is enabled
## Dependencies
This application is confirmed to work with Django 1.5. It should also work with Django 1.6-1.7. This plugin is not necessary for Django 1.8, as the capability is built into the core.
## Installation
1. Install the application and its dependencies
```
pip install django-mysql-ssl
```
## Usage
1. Make sure you have configured your mysql database in the django settings with the appropriate ssl ca. You may also need 'cert' and 'key', but for most purposes 'ca' should work fine. This functionality is built into django and has nothing to do with this plugin.
```python
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
...
'OPTIONS': {'ssl': {'ca': '<PATH TO CA CERT>'}}
}
}
```
1. Connect to the db shell using the `dbshell_ssl` command:
```shell
./manage.py dbshell_ssl
```
## Known issues
None
## Getting help
If you have questions, concerns, bug reports, etc, please file an issue in this repository's Issue Tracker.
## Getting involved
Please feel free to fork this repo and submit Pull Requests with any enhancements.
----
## Open source licensing info
1. [TERMS](TERMS.md)
2. [LICENSE](LICENSE)
3. [CFPB Source Code Policy](https://github.com/cfpb/source-code-policy/)
----
## Credits and references
1. Django ticket explaining the broken dbshell command: https://code.djangoproject.com/ticket/22646
1. Django PR implementing the functionality in Django 1.8: https://github.com/django/django/commit/01801edd3760f97a4ebc4d43ca5bbdbbdfebbb0a
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-mysql-ssl-0.0.1.tar.gz
.
File metadata
- Download URL: django-mysql-ssl-0.0.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d530eee021c1444b163a9e4dcfe922122007e7df41d15b3d8a2471ac850590d2 |
|
MD5 | 95df3412b6f293109558091eb1ab9854 |
|
BLAKE2b-256 | 6ceae4ceb4c5ccdb1e1d50503319f7f45812a514f296ee21c448fe961c84f28e |