python - django-sphinx - settings has no attribute DATABASE_ENGINE - -
when running command:
./manage.py generate_sphinx_config cities >> sphinx.conf
it returning error, settings has no attribute database_engine. checking in shell also, cant find database_engine in settings. during setup, had setup databases.
database_engine used here: https://github.com/dcramer/django-sphinx/blob/master/djangosphinx/utils/config.py
def _get_database_engine(): if settings.database_engine == 'mysql': return settings.database_engine elif settings.database_engine.startswith('postgresql'): return 'pgsql' raise valueerror, "only mysql , postgresql engines supported sphinx."
Comments
Post a Comment