Design and implementation of a Django application with User and ActivityPeriod models and write a custom management command to populate the database with some dummy data , and design an API to serve that data in the json format.
http://dishvyas.pythonanywhere.com/
-
Clone Repositry
git clone https://github.com/dishvyas/User-PeriodActivity-Model-using-Django.git
-
Install virtualenv if not installed
pip install virtualenv
-
Create virtual environment for Python 3 and activate
virtualenv venv -p python3
source venv/bin/activate
-
Install all the packages
pip install -r requirements.txt
-
Migrate
python manage.py migrate
-
Custom management command
python manage.py create_dummy_users number
-
Run Server
python manage.py runserver