diff --git a/.README.md.swp b/.README.md.swp new file mode 100644 index 0000000..72fb3ee Binary files /dev/null and b/.README.md.swp differ diff --git a/README.md b/README.md new file mode 100644 index 0000000..0eb8972 --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# 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 diff --git a/django_rest_api/.settings.py.swp b/django_rest_api/.settings.py.swp new file mode 100644 index 0000000..bd64ca9 Binary files /dev/null and b/django_rest_api/.settings.py.swp differ diff --git a/django_rest_api/settings.py b/django_rest_api/settings.py index 96661d6..8898d8d 100644 --- a/django_rest_api/settings.py +++ b/django_rest_api/settings.py @@ -27,7 +27,7 @@ SECRET_KEY = '6d*ktt0=6-!)i1bdxk4(^)*ls-eseg(k12m2vefor1-g@vc5kn' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = ['localhost', 'desolate-thicket-29906.herokuapp.com'] +ALLOWED_HOSTS = ['localhost', 'blooming-fjord-06511.herokuapp.com'] # Application definition