# Backend Base
Allows you to implement basic backend functionality for your application. Based on the [Django Framework](https://www.djangoproject.com/). It contains the followings packages of the Django Framework:
- [django.conf](https://docs.djangoproject.com/en/4.1/ref/settings/)
- [django.core.exceptions](https://docs.djangoproject.com/en/4.1/ref/exceptions/)
- [django.core.mail](https://docs.djangoproject.com/en/4.1/topics/email/)
- [django.utils.functional](https://docs.djangoproject.com/en/4.1/ref/utils/#module-django.utils.functional)
**Disclaimer**: This project is not affiliated with the Django Framework. This package contains code extracted from the Django framework, with the purpose of using certain functionality in other projects that do not have to do with django. The code has certain modifications but in theory it is based on the django structure
## Usage in your project
### Configuration
You need to define the following environment variables:
- `SETTINGS_MODULE_ENVIRONMENT_VARIABLE` (default: `config.settigs`): The environment variable that contains the path to the settings module of your project
### Environment variables
The following environment variables are used:
| Name | Default Value | Overwrite required | Description | Reference |
| :------------------------------------: | :--------------------------------------------: | :----------------: | ------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------: |
| `SETTINGS_MODULE_ENVIRONMENT_VARIABLE` | `config.settings` | Yes | The path to the settings module of your project | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#std:setting-DJANGO_SETTINGS_MODULE) |
| `EMAIL_BACKEND` | `backend_base.mail.backends.smtp.EmailBackend` | Yes | The email backend to use (Replace `django` for `backend_base`) | [Django Documentation](https://docs.djangoproject.com/en/4.1/topics/email/#email-backends) |
| `EMAIL_HOST` | `localhost` | Yes | The host to use for sending email. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-host) |
| `EMAIL_PORT` | `25` | Yes | The port to use for the SMTP server specified in EMAIL_HOST. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-port) |
| `EMAIL_USE_LOCALTIME` | `False` | No | Whether to use the local time when formatting dates in email messages. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-use-localtime) |
| `EMAIL_HOST_USER` | `''` | Yes | Username to use for the SMTP server specified in EMAIL_HOST. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-host-user) |
| `EMAIL_HOST_PASSWORD` | `''` | Yes | Password to use for the SMTP server specified in EMAIL_HOST. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-host-password) |
| `EMAIL_USE_TLS` | `False` | No | Whether to use a TLS (secure) connection when talking to the SMTP server. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-use-tls) |
| `EMAIL_USE_SSL` | `False` | No | Whether to use an implicit TLS (secure) connection when talking to the SMTP server. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-use-ssl) |
| `EMAIL_TIMEOUT` | `None` | No | A timeout in seconds for blocking operations like the connection attempt. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-timeout) |
| `EMAIL_SSL_KEYFILE` | `None` | No | The filename of a private key file for use in SSL connections. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-ssl-keyfile) |
| `EMAIL_SSL_CERTFILE` | `None` | No | The filename of a certificate file for use in SSL connections. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-ssl-certfile) |
| `DEFAUL_CHARSET` | `utf-8` | No | The default character set to use for the email. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#default-charset) |
| `SERVER_EMAIL` | `root@localhost` | No | The email address that error messages come from, such as those sent to ADMINS and MANAGERS. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#server-email) |
Raw data
{
"_id": null,
"home_page": "https://github.com/Carlososuna11/backend-base",
"name": "backend-base",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "",
"author": "Carlos Osuna",
"author_email": "carlosalvaroosuna1@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/7d/2a/b8597f6512fadcc46ba8333f749da47259cd4ed815454535e147a340576d/backend-base-0.1.3.tar.gz",
"platform": null,
"description": "# Backend Base\n\nAllows you to implement basic backend functionality for your application. Based on the [Django Framework](https://www.djangoproject.com/). It contains the followings packages of the Django Framework:\n\n- [django.conf](https://docs.djangoproject.com/en/4.1/ref/settings/)\n- [django.core.exceptions](https://docs.djangoproject.com/en/4.1/ref/exceptions/)\n- [django.core.mail](https://docs.djangoproject.com/en/4.1/topics/email/)\n- [django.utils.functional](https://docs.djangoproject.com/en/4.1/ref/utils/#module-django.utils.functional)\n\n**Disclaimer**: This project is not affiliated with the Django Framework. This package contains code extracted from the Django framework, with the purpose of using certain functionality in other projects that do not have to do with django. The code has certain modifications but in theory it is based on the django structure\n\n## Usage in your project\n\n### Configuration\n\nYou need to define the following environment variables:\n\n- `SETTINGS_MODULE_ENVIRONMENT_VARIABLE` (default: `config.settigs`): The environment variable that contains the path to the settings module of your project\n\n### Environment variables\n\nThe following environment variables are used:\n\n| Name | Default Value | Overwrite required | Description | Reference |\n| :------------------------------------: | :--------------------------------------------: | :----------------: | ------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------: |\n| `SETTINGS_MODULE_ENVIRONMENT_VARIABLE` | `config.settings` | Yes | The path to the settings module of your project | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#std:setting-DJANGO_SETTINGS_MODULE) |\n| `EMAIL_BACKEND` | `backend_base.mail.backends.smtp.EmailBackend` | Yes | The email backend to use (Replace `django` for `backend_base`) | [Django Documentation](https://docs.djangoproject.com/en/4.1/topics/email/#email-backends) |\n| `EMAIL_HOST` | `localhost` | Yes | The host to use for sending email. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-host) |\n| `EMAIL_PORT` | `25` | Yes | The port to use for the SMTP server specified in EMAIL_HOST. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-port) |\n| `EMAIL_USE_LOCALTIME` | `False` | No | Whether to use the local time when formatting dates in email messages. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-use-localtime) |\n| `EMAIL_HOST_USER` | `''` | Yes | Username to use for the SMTP server specified in EMAIL_HOST. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-host-user) |\n| `EMAIL_HOST_PASSWORD` | `''` | Yes | Password to use for the SMTP server specified in EMAIL_HOST. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-host-password) |\n| `EMAIL_USE_TLS` | `False` | No | Whether to use a TLS (secure) connection when talking to the SMTP server. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-use-tls) |\n| `EMAIL_USE_SSL` | `False` | No | Whether to use an implicit TLS (secure) connection when talking to the SMTP server. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-use-ssl) |\n| `EMAIL_TIMEOUT` | `None` | No | A timeout in seconds for blocking operations like the connection attempt. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-timeout) |\n| `EMAIL_SSL_KEYFILE` | `None` | No | The filename of a private key file for use in SSL connections. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-ssl-keyfile) |\n| `EMAIL_SSL_CERTFILE` | `None` | No | The filename of a certificate file for use in SSL connections. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#email-ssl-certfile) |\n| `DEFAUL_CHARSET` | `utf-8` | No | The default character set to use for the email. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#default-charset) |\n| `SERVER_EMAIL` | `root@localhost` | No | The email address that error messages come from, such as those sent to ADMINS and MANAGERS. | [Django Documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#server-email) |\n",
"bugtrack_url": null,
"license": "",
"summary": "Backend base package based of some django modules",
"version": "0.1.3",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4b9eca66f8b85ee97d4382ea9207aa1919a6fb154e149cc391fdf336c53b242d",
"md5": "13b1b6191039fd1c5a48986035f5d5c4",
"sha256": "4f7b16af7428a13ca8366dccebbc5dc0f52487860904921240479a3a4481c73b"
},
"downloads": -1,
"filename": "backend_base-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "13b1b6191039fd1c5a48986035f5d5c4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 25420,
"upload_time": "2023-01-26T13:27:11",
"upload_time_iso_8601": "2023-01-26T13:27:11.418475Z",
"url": "https://files.pythonhosted.org/packages/4b/9e/ca66f8b85ee97d4382ea9207aa1919a6fb154e149cc391fdf336c53b242d/backend_base-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7d2ab8597f6512fadcc46ba8333f749da47259cd4ed815454535e147a340576d",
"md5": "a137885a699b88e689910cf3800372c5",
"sha256": "e5c63f425c0d3c791992b4a05cfd2f143397c638e5895566f6440cd92ab3bb79"
},
"downloads": -1,
"filename": "backend-base-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "a137885a699b88e689910cf3800372c5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 21221,
"upload_time": "2023-01-26T13:27:15",
"upload_time_iso_8601": "2023-01-26T13:27:15.117819Z",
"url": "https://files.pythonhosted.org/packages/7d/2a/b8597f6512fadcc46ba8333f749da47259cd4ed815454535e147a340576d/backend-base-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-26 13:27:15",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "Carlososuna11",
"github_project": "backend-base",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "backend-base"
}