From 0eab82c9a326eeb35694fa41a79cef2c8b68aff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Sat, 2 Jan 2016 18:02:47 +0200 Subject: [PATCH] Add hc.payments to INSTALLED_APPS and braintree to requirements.txt so hc.payments tests can be run too. --- hc/settings.py | 3 ++- hc/urls.py | 6 +----- requirements.txt | 1 + 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/hc/settings.py b/hc/settings.py index 1b743fec..e755d55e 100644 --- a/hc/settings.py +++ b/hc/settings.py @@ -36,7 +36,8 @@ INSTALLED_APPS = ( 'hc.accounts', 'hc.api', - 'hc.front' + 'hc.front', + 'hc.payments' ) MIDDLEWARE_CLASSES = ( diff --git a/hc/urls.py b/hc/urls.py index 8038c1d9..f3f39a12 100644 --- a/hc/urls.py +++ b/hc/urls.py @@ -1,4 +1,3 @@ -from django.conf import settings from django.conf.urls import include, url from django.contrib import admin @@ -7,8 +6,5 @@ urlpatterns = [ url(r'^accounts/', include('hc.accounts.urls')), url(r'^', include('hc.api.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'))) diff --git a/requirements.txt b/requirements.txt index d2fd8cff..fb6e3381 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +braintree django-appconf==1.0.1 django-ses-backend==0.1.1 Django==1.9