And it's not a missing __init__.py program that I can see.
Am trying to move a site to a new server - CentOS to Ubuntu and
version of python are changing from 2.4.3 to 2.5.2 and using wsgi now
instead of mod_python.
I already have one django site running on the new server so the basic
setup is ok.
The old site runs fine on the old server
But when I copy the code across, and the data, and change the settings
and try to run I get
ViewDoesNotExist
Exception Value:
Could not import towns.town.views. Error was: No module named models
The offending line seems to be:
from events.models import Event
There is an events app off the main directory
It has a __init__.py
There is a models.py and it does contain a class Event
The paths look fine.
I've deleted and recopied the whole lot, restarted apache countless
times, deleted the offending line and it just falls over on the next
reference to the events.model file.
Googled till I'm cross eyed - I bet it's something simple but I'm
baffled!
An ideas gratefully received.
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---