brew install python3
sudo pip3 install virtualenv
mkdir project
copy this project in project folder
Go to mysite/settings.py and line 142, 143
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'your gmail password'
Update it to your gmail informations.
Login your gmail in web browser.
And go to this url. https://myaccount.google.com/lesssecureapps
Set the option Allow less secure apps:
to ON
cd project
virtualenv venv -p python3
source venv/bin/activate
cd mysite
python manage.py makemigrations
python manage.py migrate
Create admin user by command
python manage.py createsuperuser
Input username, email, password and enter 'y'.
python manage.py runserver
Check localhost:8000 in web browser.
Check localhost:8000/admin for admin site.