Skip to content

Commit

Permalink
Rename django backend sub-module. Naming a module django sounds like …
Browse files Browse the repository at this point in the history
…asking for trouble.
  • Loading branch information
Mark Lavin committed Feb 21, 2013
1 parent c71f140 commit 7a717f7
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/quick-start.rst
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions docs/settings.rst
Expand Up @@ -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.
4 changes: 2 additions & 2 deletions docs/usage.rst
Expand Up @@ -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::
Expand Down
2 changes: 1 addition & 1 deletion healthcare/api.py
Expand Up @@ -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)
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion healthcare/tests/backends/test_django.py
Expand Up @@ -6,4 +6,4 @@


class DjangoBackendTestCase(BackendTestMixin, TestCase):
backend = 'healthcare.backends.django.DjangoStorage'
backend = 'healthcare.backends.djhealth.DjangoStorage'
4 changes: 2 additions & 2 deletions runtests.py
Expand Up @@ -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',
)
Expand Down

0 comments on commit 7a717f7

Please sign in to comment.