I'm only seeing the 500 page on Heroku

First of all, everything is working perfect on local. My index page shows and the admin shows. But on Heroku, all I see is the 500 template I created. I've added the index.html template as well as the 'catch all' url. I've added the following to base.py:

DEBUG = False ALLOWED_HOSTS = ['myproject.herokuapp.com']

Here is the url I added to my urls.py:

from django.views.generic import TemplateView

urlpatterns = patterns('', url(r"$", TemplateView.as_view(template_name="index.html")), url(r'admin/', include(admin.site.urls)), )

Any ideas?

Sorry You must be a logged in, registered user to answer a question.

Answers

similar to my problem change DEBUG=True in base.py and it works in django 1.5.1 (worked for me) But still don't know the reason behind it. Is this something to do with bulid dir not included in git repo ??

That's very strange. Assuming your domain name in ALLOWED_HOSTS is correct for your Heroku instance, I don't see why it would throw any errors. If, on Django 1.5.1, you set DEBUG = True, does it work or throw an error page?

I'm an idiot. Started looking at my base.py again and discovered that Django 1.5.1 adds the 'ALLOWED_HOSTS' setting. So I had the one I created with my Heroku domain in it. And then there was the one created by Django and it was set to []. Removed that and it works now. Thanks for your help!
Jeff Self on

What comes out of heroku logs ?

Only a 500 status. I've switched back from Django 1.5.1 to 1.4.3 and the error goes away.
Jeff Self on