Hi Folks,
I have an application that I'd written in an older version of Django
that I'm upgrading to 0.91 and for some reason I'm having problems with
the views.
Here's an excerpt from my urls.py
(r'^admin/', include('django.contrib.admin.urls.admin')),
(r'^jobmonitor/$', include('greenleaftech.jobmonitor.views.index')),
And here's the contents of greenleaftech/jobmonitor/views (without the
import statements):
def index(request):
return HttpResponse("Hello, world. You're at the jobmonitor
index.")
And I get this error if I go to /jobmonitor/
ImportError at /jobmonitor/
No module named index
Request Method: GET
Request URL: http://jobmonitor.greenleaftech.net/jobmonitor/
Exception Type: ImportError
Exception Value: No module named index
Exception Location:
/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/urlresolvers.py
in _get_urlconf_module, line 87
Am I missing something basic here? I'm serving this from Apache which
has the DJANGO_SETTINGS_MODULE configured, and the admin interface
works fine. If I drop into the python shell and do from
greenleaftech.jobmonitor.views import index it works fine.
Thanks, Tom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---