Skip to content

vline/vline-django-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vLine Django Example

The vLine Django Example shows you how to create a Django app that is integrated with the vLine API.

Getting Started

  1. Sign up for a [vLine developer account] (https://vline.com/developer/) and create your vLine service.
  2. Make note of your API Secret on the Service Settings tab in the vLine Developer Console.
  3. Install Django and PyJWT (version 0.1.5 or newer): sudo pip install "Django" "PyJWT>=0.1.5"
  4. Clone this repository.
  5. Set up the database: python manage.py syncdb (create a superuser when prompted)
  6. Open vline_example/vline.py and replace API_SECRET with the secret from the previous steps. Also replace SERVICE_ID with the name of your service.
  7. Run the server: python manage.py runserver 8080
  8. In your browser, go to http://localhost:8080/admin/
  9. Add at least one additional user.
  10. Open http://localhost:8080 in one regular browser window and one incognito window.
  11. Log in as different users in the two windows.
  12. Click on a username to call that user.

About

Simple Django app built with vline.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages