Browse Source

Don't load payment views if USE_PAYMENTS=False

pull/14/head
Pēteris Caune 9 years ago
parent
commit
3a93ab77a9
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      hc/urls.py

+ 5
- 1
hc/urls.py View File

@ -1,3 +1,4 @@
from django.conf import settings
from django.conf.urls import include, url from django.conf.urls import include, url
from django.contrib import admin from django.contrib import admin
@ -6,5 +7,8 @@ urlpatterns = [
url(r'^accounts/', include('hc.accounts.urls')), url(r'^accounts/', include('hc.accounts.urls')),
url(r'^', include('hc.api.urls')), url(r'^', include('hc.api.urls')),
url(r'^', include('hc.front.urls')), url(r'^', include('hc.front.urls')),
url(r'^', include('hc.payments.urls')),
] ]
if settings.USE_PAYMENTS:
urlpatterns.append(url(r'^', include('hc.payments.urls')))

Loading…
Cancel
Save