Parcourir la source

Use pluggable URLs for vpn app

Jocelyn Delande il y a 8 ans
Parent
commit
f5cb787746
3 fichiers modifiés avec 14 ajouts et 1 suppressions
  1. 0 1
      coin/urls.py
  2. 1 0
      vpn/__init__.py
  3. 13 0
      vpn/apps.py

+ 0 - 1
coin/urls.py

@@ -37,7 +37,6 @@ urlpatterns = patterns(
     url(r'^members/', include('coin.members.urls', namespace='members')),
     url(r'^billing/', include('coin.billing.urls', namespace='billing')),
     url(r'^subscription/', include('coin.offers.urls', namespace='subscription')),
-    url(r'^vpn/', include('vpn.urls', namespace='vpn')),
 
     url(r'^admin/', include(admin.site.urls)),
 

+ 1 - 0
vpn/__init__.py

@@ -0,0 +1 @@
+default_app_config = 'vpn.apps.VPNConfig'

+ 13 - 0
vpn/apps.py

@@ -0,0 +1,13 @@
+# -*- coding: utf-8 -*-
+
+from django.apps import AppConfig
+import coin.apps
+
+from . import urls
+
+
+class VPNConfig(AppConfig, coin.apps.AppURLs):
+    name = 'vpn'
+    verbose_name = "Gestion d'accès VPN"
+
+    exported_urlpatterns = [('vpn', urls.urlpatterns)]