No, that doesn't work either.  Let me summarize - I'm simply trying to
get the example in chpt 3 at djangobook.com working using apache:

My /homedir/djangoProj/fun contains the following in urls.py:

from django.conf.urls.defaults import *
from fun.views import current_datetime

urlpatterns = patterns('',
   (r'^now/$', current_datetime),
)
---------------
I've not edited my settings.py file after its automatic creation, nor
have I created any subdirs or symlinks in my /var/www.

Running the django web server, I can go to:
http://127.0.0.1:8000/now/
and it prints out the date & time (using views.py in /fun).   This is
good.
Somewhat surprisingly, simply pointing to:  http://127.0.0.1:8000/
will generate the error:

Using the URLconf defined in fun.urls, Django tried these URL patterns,
in this order:
  1. ^now/$
The current URL, /, didn't match any of these.

Then, all of the following fail:
http://localhost/fun/
--> Using the URLconf defined in fun.urls, Django tried these URL
patterns, in this order:
  1. ^now/$
The current URL, /fun/, didn't match any of these.

http://localhost/fun/now/
--> same as above... /fun/now, didn't match...

http://localhost/now
--> URL was not found...

I'm starting to feel really dense.  Can someone offer a clue?
-Randy


On Jan 18, 5:49 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
How about try this url?

http://localhost/fun/now

Your application is seemed like to serve urls that starts 
withhttp://localhost/fun.
"/now" should be followed by /fun to served by apache and passed to
mod-python handler.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to