Add details regarding venue, date, time, speakers, number of tickets. Change the status of a registration to Hold/Cancelled/Confirmed/Registered.
User can register for the conference, and user will be notified via email regarding the registration and status of registration. When a registration is cancelled, user under hold will be automatically given status as 'registered'. Once a registration is cancelled, user with status 'hold' position will be automatically assigned status as 'registered'.
-
Create a virtual enviroment If using conda , install using the command
conda create --prefix ./envs -
Activate virtual environment
conda activate ./envs -
Install following packages
pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib pip install -r requirements.txt -
Create a project, in Google accounts, setup OAuth consent screen and create an OAuthID. ![Watch the video for step by step setup]
-
Add a test user in the OAuth consent screen with the required email id.
-
Enable Gmail API.
-
Download the credentials as Json file and save as client_secret.json in conference/webpage/email_api/ directory.
-
Perform migrations.
python manage.py makemigrations python manage.py migrate -
Create a superuser
python manage.py createsuperuser -
Run the command
python manage.py runserverA prompt screen will appear, if running for the first time. Configure by using the test user email id given in step 5.
-
If "No such table " error happens, run the following command
python manage.py migrate --run-syncdb
If refresh error occur, then delete the token files and rerun.
