Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 June 11, 2010 17:58:46

J.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Import error with current_datetime


I have configured my url to call ^time/$, current_datetime

ive also imported datetime into my views.py file which the django
tutorial ahs told me.

I keep getting an import error unable to import current datetime

I also have tried simply reateign the module now which calls the
current dateime with python alone not using dkango.

I can never get the time to show up. The module datetime IS in python
and I can import it, can someone help me touch up the code. I dont
know how to insert code in this particular forum or I would show it.

Also, I want to change the timezone in settings.py but Im not sure
what to chang Chicago to. In settings.py it show America, Chicago so I
have just used America, Eastern because I am in the eastern timezone.
Should I use my state instead?

--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 19th of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support