On Mon, Jun 14, 2010 at 1:14 PM, JRMAbock <joshua.matl...@comcast.net>wrote:

> 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)
>
> this is what it looks like....its exactly how they tell me to show
> it....Python located my hello module before so I cant understand why
> this is not working...The code is absolutely correct and python is
> able to read otehr modules except tusing datetime. although in the
> python shell datetime works.
>
>
That code now looks to be properly indented. However, the Python interpreter
is still isn't finding it. From the traceback Python is finding your
mysite/urls.py file at:

C:\Users\Josh\Django-1.2.1\django\bin\mysite\..\mysite\urls.py

Is the file you are editing for views.py:

C:\Users\Josh\Django-1.2.1\django\bin\views.py

?

or is there a views.py file somewhere else? Possibly you are editing one
file and Python is finding another.

Note putting your mysite directory under django\bin seems a bit odd.
Ordinarily you would have your project directory somewhere entirely outside
of the django tree, like c:\Users\Josh\mysite, for example.

Karen
-- 
http://tracey.org/kmt/

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