urls.py 957 B

123456789101112131415161718
  1. # -*- coding: utf-8 -*-
  2. # !/usr/bin/env python
  3. from django.conf.urls import patterns, url
  4. from .views import *
  5. urlpatterns = patterns('',
  6. url(r'^openCabinetDoor$', openCabinetDoor, name = 'openCabinetDoor'),
  7. url(r'^startCharging$', startCharging, name = 'startCharging'),
  8. url(r'^openAndStartCharging$', openAndStartCharging, name = 'openAndStartCharging'),
  9. url(r'^getDevicePortInfo$', getDevicePortInfo, name = 'getDevicePortInfo'),
  10. url(r'^stopChargingWithOpenDoor$', stopChargingWithOpenDoor,
  11. name = 'stopChargingWithOpenDoor'),
  12. url(r'^stopChargingWithCloseDoor$', stopChargingWithCloseDoor,
  13. name = 'stopChargingWithCloseDoor'),
  14. url(r'^getPortInfoYwt$', getPortInfoYwt, name = 'getPortInfoYwt')
  15. )