Congratulations! Don't worry about sounding "stupid". Most people will make allowances for the fact that you are writing in a foreign language.
regards Steve On 8/16/2010 9:56 PM, John Yeukhon Wong wrote: > I added the wsgi scripts and incluced that in my views.py > It works... > > I know that for every project there is only one views can exist... so > is that the really way??? > > I want to have some guides here, thank you, and I am sorry for being > stupid if I sound like one.... > > On Aug 16, 9:39 pm, John Yeukhon Wong <gokoproj...@gmail.com> wrote: >> I have the book "The definitive Guide to DJango: Web Development Done >> Right". >> Both editions use mod_python, and not mod_wsgi. >> >> I have the setup correctly. >> >> The first program was display the current datetime >> >> views.py >> >> from django.http import HttpResponse >> import datetime >> >> def current_datetime(request): >> now = datetime.datetime.now() >> html = "<html><body>It is now %s.</body></html>" % now >> return HttpResponse(html) >> >> The urls.py >> >> from django.conf.urls.defaults import * >> from mysite.views import current_datetime >> >> urlpatterns = patterns('', >> >> (r'^time/$', current_datetime), >> ) >> >> I am getting nothing but again, the blue page withhttp://domain/time/ >> >> As a beginner, I can't find a book that use mod_wsgi.... >> >> So how do I set up this, and for the future (as there are multiple >> pages in the future...) >> >> Thank you. > -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- 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.