- virtualenv env_userlogs
- source env_userlogs/bin/activate
- pip install -r requirements.txt
- Create mysql database with DATABASE NAME:
weavedin, DATABASE USER:weavedinuserand password:passwordor edit the settings.py DATABASES according to the database created. - Run
./manage.py makemigrations - RUn
./manage.py migrate - Create Superuser to access admin:
./manage createsuperuser - Run Server:
./manage.py runserver
Create Items and Variants in Admin using url: http://localhost:8000/admin/
Edit the items and Variants to record view it's history
For looking history of a user: http://localhost:8000/apiv1/user/1/
For looking complete Logs: http://localhost:8000/apiv1/logs/
For Filtering logs by time:
http://localhost:8000/apiv1/user/1/?start_time=2018-02-24T19:30:54.856515Z
http://localhost:8000/apiv1/user/1/?end_time=2018-02-24T19:30:54.856515Z
http://localhost:8000/apiv1/user/1/?start_time=2018-02-19T19:15:21.036567Z&end_time=2018-02-19T19:16:10.476414Z