- Python
- Django
- Django Rest Framework
Python 3.10
pip install -r requirements.txt
python manage.py runserver
atlan_task
- Django Related Foldercollect
- Django App to simulate collect(Form, Response, Questions, Answers)core
- Integration Processor/Engineintegrations
- Integrations built in a plug and play fashion.utils
- utility file to create google 0auth token details.
After running the server, go to http://127.0.0.1:8000/admin
and login with username admin
& password admin@123
.
As to generate 0Auth tokens required to run this, I have created a small script you can use to generate your google 0auth tokens, it resides in utility/authorize.py
.
to run the file:
cd utility
python authorize.py
after successful authentication it creates a token.json
, copy its content.
visit http://127.0.0.1:8000/collect/integration/
paste the contents of token.json
in the input
field as follows:
{
"google_auth" : <PASTE-IT-HERE>
}
after request completes, integration will be linked to the form
visit http://127.0.0.1:8000/collect/form/submit/
use demo response object as input with id=2
by pasting the following in the content
{
"response" : 2
}
a successful response should show all the integration details.
go to collect->form->add
or simply visit http://127.0.0.1:8000/admin/collect/form/add/
in the browser.
go to collect->response->add
or simply visit http://127.0.0.1:8000/admin/collect/response/add/
in the browser.