To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit 0b490196 authored by Liam Hayes's avatar Liam Hayes
Browse files

small changes so it works on ec2

parent 2dfee1b9
......@@ -21,6 +21,8 @@ On remote machine:
## Database setup
The remote django project uses PostGres database.
check that postgres and libpq-dev are be installed, and psycopg2 is in the virtual environment
On remote machine:
......@@ -33,4 +35,22 @@ On remote machine:
- GRANT ALL PRIVILEGES ON DATABASE windatlas_db TO windatlas_user;
- \q
On remove machine:
- ./manage migrate
If it complains that "django.db.utils.ProgrammingError: relation "farms_powercurve" does not exist"
then try commenting out "initial=PowerCurve.objects.get(name='Vestas V126-3450')," from farms/forms.py
## S3 setup
The remote machine needs the credentials to access the S3 bucket.
~/.aws/config:
[default]
region = ap-southeast-2
~/.aws/credentials (something like this, make some real credentials on AWS)
[default]
aws_access_key_id = LSKEJFLKJESLKJFLKEJJ
aws_secret_access_key = LKj34lknol2krlkjlij+lkjkjkeLLkwnLkngleks
......@@ -32,6 +32,7 @@ DEBUG = (LOCATION == 'home')
ALLOWED_HOSTS = [
'localhost',
'windatlas.xyz',
'52.65.32.132',
]
# Application definition
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment