Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImproperlyConfigured error after updating to 1.0 #33

Closed
mrob11 opened this issue Mar 2, 2013 · 6 comments
Closed

ImproperlyConfigured error after updating to 1.0 #33

mrob11 opened this issue Mar 2, 2013 · 6 comments

Comments

@mrob11
Copy link
Contributor

mrob11 commented Mar 2, 2013

I had everything working this morning then I updated to the pypi 1.0 version and ran into an error with the database engine:

(tenants)mike@ellie ~/sites/tenants $ ./manage.py validate
ImproperlyConfigured: 'tenant_schemas.postgresql_backend' isn't an available database backend.
Try using 'django.db.backends.XXX', where XXX is one of:
    u'mysql', u'oracle', u'postgresql_psycopg2', u'sqlite3'
Error was: No module named postgresql_backend.base
@chrisfranklin
Copy link
Contributor

I can confirm this issue, code worked before then:

pip install django-tenant-schema --upgrade

and now getting the same error message:

Error was: No module named postgresql_backend.base

It is also worth noting the installer installed django 1.5 for me despite having 1.4.5 already installed.

@bernardopires
Copy link
Owner

Alright, sorry for the mess guys, everything you be working now. The name
"packages" in setup.py is not really intuitive, but I should have had
tested it before anyways. The problem was only the top folder got included, all subfolders like postgresql_backend, managament, etc was not uploaded.

2013/3/3 Chris Franklin notifications@github.com

I can confirm this issue, code worked before then:

pip install django-tenant-schema

and now getting the same error message:

Error was: No module named postgresql_backend.base


Reply to this email directly or view it on GitHubhttps://github.com//issues/33#issuecomment-14340084
.

Bernardo Pires Carneiro

@bernardopires
Copy link
Owner

Is it working again for you Chris?

@chrisfranklin
Copy link
Contributor

Hey,

Yeah the version from pip seems to be working for me now, I am having an issue with User Profiles but that is unrelated, I am currently upgrading to 1.5 as this will prevent me having to mess around with this profile stuff only to rip it out later. I will report back here when everything is working on my project again.

Thanks for your hard work =)

@bernardopires
Copy link
Owner

Alright I'm closing this issue then. Feel free to create a new issue for any doubt you have! :)

@rjdp
Copy link

rjdp commented Jan 6, 2017

in case someone dealing with legacy code and facing this issue, use this patch for tenant_schemas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants