Problem installing a django project with virtualenv in debian

0

I have a problem, I already installed the virtual environment and I already installed with pip django, only that there is a problem when creating the project structure, the following appears:

(venv)padawan@debian:~/Documents/Git/landing-page$ django-admin startproject clinkcapital .
Traceback (most recent call last):
  File "/home/padawan/Documents/Git/landing-page/venv/bin/django-admin", line 11, in <module>
    sys.exit(execute_from_command_line())
  File "/home/padawan/Documents/Git/landing-page/venv/lib/python3.4/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "/home/padawan/Documents/Git/landing-page/venv/lib/python3.4/site-packages/django/core/management/__init__.py", line 316, in execute
    settings.INSTALLED_APPS
  File "/home/padawan/Documents/Git/landing-page/venv/lib/python3.4/site-packages/django/conf/__init__.py", line 53, in __getattr__
    self._setup(name)
  File "/home/padawan/Documents/Git/landing-page/venv/lib/python3.4/site-packages/django/conf/__init__.py", line 41, in _setup
    self._wrapped = Settings(settings_module)
  File "/home/padawan/Documents/Git/landing-page/venv/lib/python3.4/site-packages/django/conf/__init__.py", line 97, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/home/padawan/Documents/Git/landing-page/venv/lib/python3.4/importlib/__init__.py", line 109, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2212, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2212, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2224, in _find_and_load_unlocked
ImportError: No module named 'cashflow'

Where No module named 'cashflow' refers to another project with the same name. I do not know if I will have moved anything to virtualenv or what will have happened.
Or I do not know if maybe where is pulling it and why does that happen if the other project I have it in a virtual environment ... maybe in one of those misadventures I installed it without a virtual environment, I do not know.

Thank you very much

    
asked by Ramsés Martínez Ortiz 07.12.2016 в 00:49
source

1 answer

1

The problem came from the DJANGO_SETTINGS environment variable that I had defined in ~ / .bashrc, I had it configured for another project, but I had forgotten that configuration.

The solution was to install virtualenvwrapper to have several environments with different configurations in a very simple way.

    
answered by 08.12.2016 / 05:08
source