B
B
blazer052016-02-16 16:19:32
Django
blazer05, 2016-02-16 16:19:32

Module error - how to fix?

I'm trying to launch a website on pythonanywhere.com. I can not execute one script that adds records to the database. I'm getting an error! What module is needed?

ImportError: No module named tangotest.settings
(rango) 13:07 ~/tangotest/rango (master)$ python populate.py
Traceback (most recent call last):
  File "populate.py", line 10, in <module>
    django.setup()
  File "/home/blazer05/.virtualenvs/rango/local/lib/python2.7/site-packages/django/__init__.py", line 17, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/home/blazer05/.virtualenvs/rango/local/lib/python2.7/site-packages/django/conf/__init__.py", line 48, in __getattr__
    self._setup(name)
  File "/home/blazer05/.virtualenvs/rango/local/lib/python2.7/site-packages/django/conf/__init__.py", line 44, in _setup
    self._wrapped = Settings(settings_module)
  File "/home/blazer05/.virtualenvs/rango/local/lib/python2.7/site-packages/django/conf/__init__.py", line 92, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named tangotest.settings

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Martyanov, 2016-02-16
@vilgeforce

tangotest.settings, it's written in Russian in white!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question