You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Matt Huntington 911010a22a
changing heroku domain
5 years ago
contacts_api deleting contacts_api 5 years ago
django_rest_api changing heroku domain 5 years ago
.README.md.swp changing heroku domain 5 years ago
.gitignore ignore pycache 5 years ago
Procfile procfile 5 years ago
README.md changing heroku domain 5 years ago
manage.py all the ham 5 years ago
requirements.txt whitenoise for static files 5 years ago

README.md

Deployment Instructions

Local Installation

Create Local Repo

  • Fork this repo and then clone the fork to your local computer
  • Make sure you are using a venv python environment
    • e.g. source ~/ga-env/bin/active
    • create a new environment and use that
  • Install dependencies with python -m pip install -r requirements.txt

Postgres

  • Open app Postgres App
  • From menu icon, next to "New Server", choose "Start" and then "Open Postgres"
  • Double click on a sub-database and, in the terminal window that opens, run CREATE DATABASE django_contacts to create the sub database

In Terminal

  • Run python manage.py migrate to set up the tables in the DB
  • Run python manage.py runserver to start the server