urls.py 482 B

12345678910
  1. from django.conf.urls import patterns, url
  2. from coin.vpn.views import VPNView, VPNGeneratePasswordView
  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. )