-
Clone this repository to your computer.
git clone https://github.com/KimelirR/django-water-quality.git
-
Change file directory
cd django-water-quality
-
Create .env file
pip install virtualenv
-
We will name our virtual environment as env
python3 -m venv env
-
Activate virtual environment on linux
source env/bin/activate
-
Install required dependencies through
pip install -r requirements.txt
-
Migrate databases
python3 manage.py makemigrations
python3 manage.py migrate
Note!
- Ensure you create SuperUser to manage django admin
python3 manage.py createsuperuser
Lastly! Run your django app
-
All the functions and classes are inside src folder.
python3 manage.py runserver
-
In your browser go to address below localhost
-
Check as well this Register For Earth Engine
-
Register social account email Social-account
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
On Ubuntu you need this to install mysqlclient
sudo apt-get install python3-dev default-libmysqlclient-dev build-essential
scopes=ee.oauth.SCOPES.append(google_api))
credentials = ee.ServiceAccountCredentials(email=service_account, key_file=privateKey)
from
scopes=ee.oauth.SCOPE + ' https://www.googleapis.com/auth/drive ')
credentials = ee.ServiceAccountCredentials(service_account, privateKey)