Skip to main content

Backend base package based of some django modules

Project description

Backend Base

Allows you to implement basic backend functionality for your application. Based on the Django Framework. It contains the followings packages of the Django Framework:

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
EMAIL_BACKEND backend_base.mail.backends.smtp.EmailBackend Yes The email backend to use (Replace django for backend_base) Django Documentation
EMAIL_HOST localhost Yes The host to use for sending email. Django Documentation
EMAIL_PORT 25 Yes The port to use for the SMTP server specified in EMAIL_HOST. Django Documentation
EMAIL_USE_LOCALTIME False No Whether to use the local time when formatting dates in email messages. Django Documentation
EMAIL_HOST_USER '' Yes Username to use for the SMTP server specified in EMAIL_HOST. Django Documentation
EMAIL_HOST_PASSWORD '' Yes Password to use for the SMTP server specified in EMAIL_HOST. Django Documentation
EMAIL_USE_TLS False No Whether to use a TLS (secure) connection when talking to the SMTP server. Django Documentation
EMAIL_USE_SSL False No Whether to use an implicit TLS (secure) connection when talking to the SMTP server. Django Documentation
EMAIL_TIMEOUT None No A timeout in seconds for blocking operations like the connection attempt. Django Documentation
EMAIL_SSL_KEYFILE None No The filename of a private key file for use in SSL connections. Django Documentation
EMAIL_SSL_CERTFILE None No The filename of a certificate file for use in SSL connections. Django Documentation
DEFAUL_CHARSET utf-8 No The default character set to use for the email. Django Documentation
SERVER_EMAIL root@localhost No The email address that error messages come from, such as those sent to ADMINS and MANAGERS. Django Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

backend-base-0.1.3.tar.gz (21.2 kB view hashes)

Uploaded Source

Built Distribution

backend_base-0.1.3-py3-none-any.whl (25.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page