Riya Gupta
Riya Gupta

Reputation: 63

While running the python manage.py getting this type of error

The django.db.backend is deprecated while running the manage.py .the site packages are not supporting

home/devbase/env/local/lib/python2.7/site-packages/django/utils/functional.py:55: RemovedInDjango18Warning: Accessing django.db.backend is deprecated.
  res = instance.__dict__[self.func.__name__] = self.func(instance)

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/devbase/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "/home/devbase/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute
    django.setup()
  File "/home/devbase/env/local/lib/python2.7/site-packages/django/__init__.py", line 21, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/devbase/env/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models(all_models)
  File "/home/devbase/env/local/lib/python2.7/site-packages/django/apps/config.py", line 197, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/devbase/devbase/queuearoo/main/models.py", line 7, in <module>
    from django_earthdistance.expressions import DistanceExpression
ImportError: No module named django_earthdistance.expressions

Upvotes: 0

Views: 383

Answers (1)

Vaibhav Vishal
Vaibhav Vishal

Reputation: 7138

The module django_earthdistance.expressions is part of package django-earthdistance which seems to be not installed, please run

pip install django-earthdistance

to install it.

Upvotes: 1

Related Questions