A Django deployment package for all hosting types.
Project description
Setup:
First, create an YAML file similar to sample_config.yaml and fill the configuration details.
Next, create a
fabfile.py
in your project directory and import all functions(fab commands/tasks) from django_spanner.Finally, call setup() function with your configuration yaml file path.
Here is an example fabfile -
# fabfile.py
from django_spanner.commands import *
setup("fabconfig.yaml")
Usage:
To list all the fab commands:
fab -l
To install the requirements on your local system, you can run the command as follows
fab run_local activate_env_install_requirements
(or)
fab activate_env_install_requirements
To run a command on staging/live host,
fab [run_local/run_stage/run_live] <command_name>
NOTE:
By default, all the functions will run on the local system.
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
django-spanner-0.0.3.tar.gz
(6.1 kB
view details)
File details
Details for the file django-spanner-0.0.3.tar.gz
.
File metadata
- Download URL: django-spanner-0.0.3.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4487edbe960cc734bc8910e510bfd4a8fb9957c2161761ece0874a0c6ae2a3c |
|
MD5 | b12a9ff8e603952d7cbb26dfefd8eab7 |
|
BLAKE2b-256 | 1944ce71868d3bb5f4ea047662b781a35ea4b95463dfbc6db0a1e5cca92a3119 |