I started with the official tutorial to build the polls app.
Everything works fine. I then tried to use wsgi on Apache. Everything
still works, though with some defects explained below. I have a few
questions to ask as a beginner:

Assume I create mysite under E:\www.

1. In the settings.py file, there is a line to set the ROOT_URLCONF:

ROOT_URLCONF = 'mysite.urls'

However, sys.path is configured to contain 'E:\www\mysite' not 'E:
\www'. So how can python find the module mysite.urls? In the tutorial
example, everything works fine, and I don't know why. When I moved to
wsgi+Apache, I had to either add 'E:\www' to sys.path or change
'mysite.urls' to 'urls' to make things work.

2. After I moved to wsgi+Apache, the 'fancy' admin site was gone.
Although the basic functions seem to be still there, each page became
plain text as in the polls app.

3. Do I have to restart the apache server every time after I add,
modify or remove files?

Thanks,
Zheng


-- 
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