Django: url and content creation results in 500 and no apache error log entry

Posted by user1684082 on Stack Overflow See other posts from Stack Overflow or by user1684082
Published on 2012-11-26T17:01:50Z Indexed on 2012/11/26 17:03 UTC
Read the original article Hit count: 179

Filed under:

If i try to open a created url i get an 500 error.

My procedure was:

First python manage.py startapp black

I added in project/settings.py under INSTALLED_APPS 'black',

I added in project/urls.py url(r'^test/', include('black.urls')),

Content of black/urls.py is:

from django.conf.urls import patterns, url
from black import views

urlpatterns = patterns('',
url(r'^$', views.index, name='index')
)

And content of black/views.py:

from django.http import HttpResponse

def index(request):
        return HttpResponse("SHOW ME: BLACK")

After all i synced the database.

I can't see any error in apache-error-log and also not in my posted django files. What could cause this?

© Stack Overflow or respective owner

Related posts about django