Skip to content

rodguinea/lalosite

Repository files navigation

Install Project

1. Install Python

brew install python3

2. Install Virtual Environment

sudo pip3 install virtualenv

3. Make project folder and setup virtual environment

mkdir project

copy this project in project folder

4. Project Settings

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'.

5. Run the server

python manage.py runserver

Check localhost:8000 in web browser.
Check localhost:8000/admin for admin site.