WHAT IS WORKING
I'm following wsgi documentation to run django. I'm testing that it's all working before start to use nginx. I succeeded running manage.py and loading the webpage in my browser:
python manage.py runserver 0.0.0.0:8000

WHAT IS NOT WORKING
The problem comes when I try to run it using uwsgi:
uwsgi --http :8000 --module metrics.wsgi
I can run it without errors, but when I try to load it in my browser I get AppRegistryNotReady error from uwsgi. Any idea about what could be the reason? This is my wsgi.py file:
import os, sys, site, django.core.handlers.wsgi
SITE_DIR = '/home/ubuntu/web/metrics.com/app/'
site.addsitedir(SITE_DIR)
sys.path.append(SITE_DIR)
os.environ['DJANGO_SETTINGS_MODULE'] = 'metrics.settings'
application = django.core.handlers.wsgi.WSGIHandler()
my project structure:
/ubuntu
/www
/metrics.com
/app # here's my manage.py file
metrics/ # here's my wsgi.py and settigs.py files