Wednesday 15 September 2010

virtualenv - django.core.exceptions.ImproperlyConfigured:constance.backends.database app isn't installed correctly -



virtualenv - django.core.exceptions.ImproperlyConfigured:constance.backends.database app isn't installed correctly -

hi setting django virtualenv when run python manage.py migrate, got error.

file "/users/anh/testradicards/env/lib/python2.7/site- packages/constance/backends/database/init.py", line 27, in init "the constance.backends.database app isn't installed " django.core.exceptions.improperlyconfigured: constance.backends.database app isn't installed correctly. create sure it's in installed_apps setting.

this setup, running mac osx 10.5, on python 2.7: 1. cd project dir 2. run virtualenv --no-site-packages env 3. activate virtualenv source/env/bin/activate 4. pip install django (currently 1.7.1) 5. git clone django project repo called radicards 6. cd radicards 7. run python.manage.py runserver

(the repo radicards have sqlite db setup, there's no need migration).

i followed error code , open settings.py , include this:

installed_apps = ( 'constance', 'constance.backends.database', 'rd_suit', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'paintstore', 'cards', )

'contance.backends.database' included. heard django 1.7 has issues unique name error. should do? set up.

django virtualenv

No comments:

Post a Comment