Installing and running
Clone the repository
Add ALLOWED_HOSTS
in mycalendar/settings.py
for deployment
Install pip first
sudo apt-get install python3-pip
Then install virtualenv using pip3
pip3 install virtualenv
Now create a virtual environment
virtualenv venv
you can use any name insted of venv
Active your virtual environment:
source venv/bin/activate
Run the following commands in project directory.
You might need to delete db.sqlite3 to start afresh.
pip install -r requirements.txt
python manange.py makemigrations
python manage.py migrate --run-syncdb
python manage.py collectstatic
python manage.py createsuperuser
python manage.py runserver
Go to http:localhost:8000/admin and sign in as superuser.
Add Google OAuth2.0 API Key's credentials in admin Social Applications.
For running the web-app on the server as a background process, use nohup.
nohup python manage.py runserver &
This will output a PID, which can be later used to kill the process.