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?
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?
What comes out of heroku logs ?