Permalink
Browse files

Rename django backend sub-module. Naming a module django sounds like …

…asking for trouble.
  • Loading branch information...
1 parent c71f140 commit 7a717f76728fbbcc910548fd2e2a2c40afb63b14 @mlavin mlavin committed Feb 21, 2013
View
@@ -33,7 +33,7 @@ If you are using the default storage backend you need to change your ``INSTALLED
INSTALLED_APPS = (
# Other apps go here
- 'healthcare.backends.django',
+ 'healthcare.backends.djhealth',
)
If you are using a different backend then you can skip this step.
View
@@ -10,12 +10,12 @@ their default values.
HEALTHCARE_STORAGE_BACKEND
------------------------------------
-Default: ``'healthcare.backends.django.DjangoStorage'``
+Default: ``'healthcare.backends.djhealth.DjangoStorage'``
Controls where rapidsms-healthcare stores patient and provider data. The default
backends provided are:
* :ref:`healthcare.backends.dummy.DummyStorage <DummyStorage>`
-* :ref:`healthcare.backends.django.DjangoStorage <DjangoStorage>`
+* :ref:`healthcare.backends.djhealth.DjangoStorage <DjangoStorage>`
Additional backends can be written as needed.
View
@@ -28,10 +28,10 @@ all of the available backends included in the rapidsms-healthcare distribution.
DjangoStorage
____________________________________
-Path: ``'healthcare.backends.django.DjangoStorage'``
+Path: ``'healthcare.backends.djhealth.DjangoStorage'``
This is the default storage backend. It stores the patient and provider information using the
-Django ORM. To use this backend you must include ``'healthcare.backends.django'`` in your
+Django ORM. To use this backend you must include ``'healthcare.backends.djhealth'`` in your
``INSTALLED_APPS`` setting to create the necessary tables.
.. warning::
View
@@ -113,7 +113,7 @@ def __init__(self, backend):
self.providers = ProviderWrapper(self.backend)
-STORAGE_BACKEND = getattr(settings, 'HEALTHCARE_STORAGE_BACKEND', 'healthcare.backends.django.DjangoStorage')
+STORAGE_BACKEND = getattr(settings, 'HEALTHCARE_STORAGE_BACKEND', 'healthcare.backends.djhealth.DjangoStorage')
client = HealthcareAPI(STORAGE_BACKEND)
@@ -6,4 +6,4 @@
class DjangoBackendTestCase(BackendTestMixin, TestCase):
- backend = 'healthcare.backends.django.DjangoStorage'
+ backend = 'healthcare.backends.djhealth.DjangoStorage'
View
@@ -19,9 +19,9 @@
},
INSTALLED_APPS=(
'healthcare',
- 'healthcare.backends.django',
+ 'healthcare.backends.djhealth',
),
- HEALTHCARE_STORAGE_BACKEND='healthcare.backends.django.DjangoStorage',
+ HEALTHCARE_STORAGE_BACKEND='healthcare.backends.djhealth.DjangoStorage',
SITE_ID=1,
SECRET_KEY='this-is-just-for-tests-so-not-that-secret',
)

0 comments on commit 7a717f7

Please sign in to comment.