From ce0c1e1743410cd0e84d0f865f58457afdc67613 Mon Sep 17 00:00:00 2001 From: Ali Karbassi Date: Mon, 26 Aug 2019 19:42:59 -0500 Subject: [PATCH 1/3] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e12d8aa5..02c069fd 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,11 @@ We, the community and staff, have been building a custom Django application to h 1. Fork and clone this repository locally. 1. Download and install Docker for [Mac][docker-mac] or [Windows][docker-windows]. -1. Create a new file names `.env` based on `.env.sample`. Create values for any instances of `REPLACEME`. +1. Create a new file names `.env` based on `.env.sample`. Create values for any instances of `CHANGEME`. 1. Run the following to get a random Django secret key. + ```sh -python -c "import string,random; uni=string.ascii_letters+string.digits+string.punctuation; print repr(''.join([random.SystemRandom().choice(uni) for i in range(random.randint(45,50))]))" +python -c "import string,random; uni=string.ascii_letters+string.digits+string.punctuation; print(repr(''.join([random.SystemRandom().choice(uni) for i in range(random.randint(45,50))])))" ``` 1. Enter the output inside the `.env` file. 1. Navigate into the project directory via terminal and run `docker-compose build`. From 78a4494ad99eb61f9399a1d7bb9b4406ea0bb73e Mon Sep 17 00:00:00 2001 From: Ali Karbassi Date: Mon, 26 Aug 2019 19:46:24 -0500 Subject: [PATCH 2/3] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 02c069fd..e4fe2af1 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,14 @@ We, the community and staff, have been building a custom Django application to h 1. Fork and clone this repository locally. 1. Download and install Docker for [Mac][docker-mac] or [Windows][docker-windows]. -1. Create a new file names `.env` based on `.env.sample`. Create values for any instances of `CHANGEME`. +1. Create a new file names `.env` based on `.env.sample`. 1. Run the following to get a random Django secret key. ```sh python -c "import string,random; uni=string.ascii_letters+string.digits+string.punctuation; print(repr(''.join([random.SystemRandom().choice(uni) for i in range(random.randint(45,50))])))" ``` -1. Enter the output inside the `.env` file. + +1. Enter the output inside the `.env` file for `SECRET_KEY`. Be sure to include the double quotes (`"`) around the key. It'll look like the following `SECRET_KEY=""`. 1. Navigate into the project directory via terminal and run `docker-compose build`. 1. Once complete, run `docker-compose up`. 1. Load up your browser and go to http://127.0.0.1:8000. From b8e220877439520955b165ee49729f4ce324463c Mon Sep 17 00:00:00 2001 From: Ali Karbassi Date: Mon, 26 Aug 2019 19:47:16 -0500 Subject: [PATCH 3/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e4fe2af1..31bbc7ac 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@ python -c "import string,random; uni=string.ascii_letters+string.digits+string.p ``` 1. Enter the output inside the `.env` file for `SECRET_KEY`. Be sure to include the double quotes (`"`) around the key. It'll look like the following `SECRET_KEY=""`. -1. Navigate into the project directory via terminal and run `docker-compose build`. -1. Once complete, run `docker-compose up`. +1. Navigate into the project directory via terminal and run `docker-compose build` +1. Once complete, run `docker-compose up` 1. Load up your browser and go to http://127.0.0.1:8000. 1. When you are done, you can stop the project via `ctrl+c`