The Terra API
Project description
This is the Terra API.
Requirements
On Ubuntu, do not use the system packages, which are too old.
- docker-ce: https://docs.docker.com/install/linux/docker-ce/ubuntu/
- docker-compose:
sudo pip3 install docker-compose
Usage
First launch
Create a docker.env file:
mv docker.env.dist docker.env
- Edit the settings
Build Container
docker-compose build
Running the project
docker-compose up
docker-compose down
docker-compose up
(postgres image)
Running tests
docker-compose exec django bash
django@container_id:/code$ source venv/bin/activate
(venv) django@353cfc271a48:/code$ tox
(global)
Applying Django migrations
docker-compose run --rm django /code/venv/bin/python3.6 ./manage.py migrate
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
terra-common-0.3.2.tar.gz
(38.4 kB
view details)
Built Distribution
File details
Details for the file terra-common-0.3.2.tar.gz
.
File metadata
- Download URL: terra-common-0.3.2.tar.gz
- Upload date:
- Size: 38.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df24ec4c47e6e8d7e13fdf57fa9d374b2aa14152d10508c00e19c8b1b0ef4440 |
|
MD5 | 1989387d50babbb49c4b43ce3d1c214a |
|
BLAKE2b-256 | 46ecf9aec4a42d5f7227650c23117305111974bf283ac93c1454b8272c83a02b |
File details
Details for the file terra_common-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: terra_common-0.3.2-py3-none-any.whl
- Upload date:
- Size: 76.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb6f3e916335df26c895ebfa523bcca55d245c23ae46a35fc61451c0b91c9089 |
|
MD5 | 100419572b82ce150a08552ce15eb155 |
|
BLAKE2b-256 | 5f8711984d6397f98307212269e61cea75716ded5f81c00f3b8811dcf7557040 |