hi - I am having the same problem to this and wondering if anyone found a solution? I dont really want to move on until i solve this.
I have tried to change the text in the "Hello world" section but the browser continues to show "hello world". I also tried to develop a url similar to "Hello" using my name and this refused to work also. Any ideas? On Thursday, 19 April 2012 04:47:12 UTC+10, asherakhet06 wrote: > > H all! > > I am fairly new to programming (went over LPTHW) and now going through the > Djangobook on the internet. Quick beginners question: In Chapter 3, where > I am looking at a dynamic webpage in the 2nd example I am running into some > problems with the current_datetime function I am trying to set up. When, in > views.py I insert the "datetime.datetime.now()" statement and "import > current_datetime" into my urls.py file, I get the following error message > when I try to call up the webpage via runserver. It seems like my pure > python script is not being picked up by the server: > > "ImportError cannot import name current_datetime". > > I know this is most likely an easy question for most of you, but it's been > a real puzzle for me to be honest:/ Anybody have any tips on how to solve > this error? I know it is really important to be careful to copy EXACTLY as > mentioned in the programming book(s), so I am pretty sure I am not making > any spelling/character errors. I am using windows btw. I also have python > 2.7 and django 1.4 installed on my computer. Anybody kind enough to help > me out? Much appreciated! > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.