F.A.Q. (Frequently Asked Questions) service app written in Django/Python using ONEmSDK.
Works with Python 3.6. Preferably to work in a virtual environment, use virtualenvwrapper to create a virtual environment.
mkvirtualenv -p python3 faq
git clone git@github.com:AlexandruPascal/django-faq-onem.git
pip install -r requirements.txt
python manage.py makemigrations faq
python manage.py migrate --run-syncdb
python manage.py loaddata onem_faqs.json
python manage.py runserver
ngrok http 8000
Register the app on the ONEm developer portal (https://testtool.dhq.onem:6060/); Set the callback URL to the forwarding address obtained from ngrok's output; Go to https://testtool.dhq.onem/ or in the "Test Client" option on sidenav and send the registered name with # in front
- Please access the app in admin mode first.(the request headers should contain
the
is_admin=True
flag) This will enable you to add/edit/delete Q.A.;