Hello everyone :) .. I get the following error:
AttributeError: 'module' object has no attribute 'setup'
The error is prodduced when executing the last line of this (this is my wsgi.py file):
activate_this = '/home/tupini07/.virtualenvs/django17/bin/activate_this.py'
with open(activate_this) as f:
code = compile(f.read(), activate_this, 'exec')
exec(code, dict(__file__=activate_this))
import os
import sys
path = '/home/tupini07/Friendonator'
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'Friendonator.settings'
import django
django.setup()
I know that older versions of django thank 1.7 don't have the atribute 'setup' so I'm assuming that I'm not activating properly the virtualEnv (which works great if activated from the console). I would really appreciate if someone could help me. thanks!