urls.py 642 B

123456789101112
  1. from django.conf.urls import patterns, url
  2. from coin.vpn.views import VPNView, VPNGeneratePasswordView, get_graph
  3. urlpatterns = patterns(
  4. '',
  5. # This is part of the generic configuration interface (the "name" is
  6. # the same as the "backend_name" of the model).
  7. url(r'^([0-9]+)$', VPNView.as_view(template_name="vpn/vpn.html"), name="openvpn_ldap"),
  8. url(r'^password/([0-9]+)$', VPNGeneratePasswordView.as_view(template_name="vpn/password.html"), name="generate_password"),
  9. url(r'^graph/(?P<vpn_id>.+)/(?P<period>[a-z]+)$', get_graph, name="get_graph"),
  10. url(r'^graph/(?P<vpn_id>.+)$', get_graph, name="get_graph"),
  11. )