Django ONEm F.A.Q. app

by AlexandruPascal

GitHub Readme.md

django-faq-onem

F.A.Q. (Frequently Asked Questions) service app written in Django/Python using ONEmSDK.

Quickstart

Works with Python 3.6. Preferably to work in a virtual environment, use virtualenvwrapper to create a virtual environment.

  1. mkvirtualenv -p python3 faq
  2. git clone git@github.com:AlexandruPascal/django-faq-onem.git
  3. pip install -r requirements.txt
  4. python manage.py makemigrations faq
  5. python manage.py migrate --run-syncdb
  6. python manage.py loaddata onem_faqs.json
  7. python manage.py runserver
  8. ngrok http 8000

Testing the app

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

Important

  1. 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.;

Deploy to Heroku

Deploy