Alejandro Veintimilla
Alejandro Veintimilla

Reputation: 11523

Heroku looking for the wrong wsgi file. Django

I'm on Django, but I'm not sure if it matters. Anyway, I get an Application Error, and when I check the logs I see the error:

 ImportError: No module named redlibros.wsgi

And it is fine cause the wsgi file is not name "redlibros.wsgi", I don't even know where it gets that name. The module is named

WSGI_APPLICATION = 'letrasclub.wsgi.application' # on my settings

web: gunicorn letrasclub.wsgi --log-file -   # on my procfile

and on my folders it looks like this:

LetrasClub
    letrasclub
       wsgi.py
    templates
    static
    ...

Any idea where to find the error?

EDIT

Ok, some extra info: I have a different repo, with a different Heroku remote. I copied that repo, changed the app, created a new Heroku remote and then pushed to the new one.

So, if I write

git remote -v
heroku  https://git.heroku.com/letrasclub2.git (fetch)
heroku  https://git.heroku.com/letrasclub2.git (push)
origin  https://github.com/Alejoss/LetrasClub2.0.git (fetch)
origin  https://github.com/Alejoss/LetrasClub2.0.git (push)

Looks fine, if I go to the old app location and write the same command I get the old remote, the one that is related to the "redlibros.wsgi" app, perfect.

Now, why when I try to push the new app to the new heroku remote, I get the error that means Heroku is looking for the Old wsgi file, I changed the wsgi name, I changed the Procfile, I changed the wsgi file declaration on the settings, what am I missing?

Upvotes: 0

Views: 211

Answers (1)

Tomasz Jakub Rup
Tomasz Jakub Rup

Reputation: 10680

You look at wrong project.

You look at https://github.com/Alejoss/redlibros (I guess it's Your project), not at https://github.com/Alejoss/LetrasClub2.0

Upvotes: 1

Related Questions