I've worked through http://docs.djangoproject.com/en/1.1/intro/tutorial01/ to 
tutorial04
then read up on WSGI, got that to go with a hello world output.

Then I decided to copy the tutorial to a name of a site I want to test over the 
internet -- one with
DNS pointing to its name, industromatic.com.  I made this directory
on my local machine, not over internet yet.

The line
os.environ['DJANGO_SETTINGS_MODULE'] = 'industromatic_com.settings'
refers to a dir I made, /home/john/WEBprojects/industromatic_com, that I copied 
the
contents of mysite into.  mysite as it was at the end of the tuturial.

I changed mysite to industromatic_com everywhere in the files and the project 
still runs fine
if I do
python manage.py runserver  and browse  http://127.0.0.1:8000/polls/1

but when I use the apache2 <VirtualHost  127.0.0.1:8080> setup for 
industromatic.com

I get errors (from the debug = True output), that always contain this that I 
think is a clue:

Exception Value:        No module named polls.urls

/usr/lib/pymodules/python2.5/django/utils/importlib.py in import_module

35.  __import__(name)

name     'polls.urls'

Does that give anyone a clue?  I'm thinking I need more on the python path, or 
cloning a project
by copying and text processing is bad to do...

Thanks,

John

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to