Hi... I am using python 2.5.1 with django .97 pre. I am trying to have a page from the url config
(r'^users/', include('dbp.users.views.show')),
I have my view as
from django.http import HttpResponse
def show(request):
return HttpResponse("some thing here.")
on trying to access the page using url http://localhost:8000/users/ I get the error
ImportError at /users/
No module named show
Request Method: GET
Request URL: http://localhost:8000/users/
Exception Type: ImportError
Exception Value: No module named show
On commenting the line return...... , the error changes to
IndentationError at /users/
expected an indented block (views.py, line 6)
Request Method: GET
Request URL: http://localhost:8000/users/
Exception Type: IndentationError
Exception Value: expected an indented block (views.py, line 6)
Plz help. Thanks alot.