Re: Learning Django: DjangoProject Poll application

2012-02-29 Thread Tom Evans
On Wed, Feb 29, 2012 at 6:07 AM, WuWoot  wrote:
> https://docs.djangoproject.com/en/dev/intro/tutorial01/
>
> I'm using the Djangostack (Python 2.7.2+; Django 1.3.1-1) from Bitnami
> ran on Ubuntu 11.10 with PostgreSQL 9.1.2
>

You're doing the dev/trunk tutorial but have django 1.3 installed.

Either use the django 1.3 tutorial, or install the beta of the next
release. If you are a beginner, stick to released software.

Cheers

Tom

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Learning Django: DjangoProject Poll application

2012-02-29 Thread Denis Darii
try to use DjangoStack 1.4b1-0 instead of 1.3.1-1

On Wed, Feb 29, 2012 at 7:07 AM, WuWoot  wrote:

> https://docs.djangoproject.com/en/dev/intro/tutorial01/
>
> I'm using the Djangostack (Python 2.7.2+; Django 1.3.1-1) from Bitnami
> ran on Ubuntu 11.10 with PostgreSQL 9.1.2
>
> Sorry for my newbie question.
>
> I got to the portion where it asks me to import timezone from the
> django.utils module but all I manage to receive is:
>
> >>> from django.utils import timezone
> Traceback (most recent call last):
>  File "", line 1, in 
> ImportError: cannot import name timezone
>
> If I cannot do the above, I cannot get to the next line in the shell:
>
> >>> p = Poll(question="What's new?", pub_date=timezone.now())
>
>
> Anybody ever encounter this issue? I've attempted to look for a
> timezone setting in my settings.py and the only setting I can modify
> seems to be the location. A preliminary Google search and
> StackOverflow search turned up nothing. Your help is greatly
> appreciated. Thanks!
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Learning Django: DjangoProject Poll application

2012-02-29 Thread WuWoot
https://docs.djangoproject.com/en/dev/intro/tutorial01/

I'm using the Djangostack (Python 2.7.2+; Django 1.3.1-1) from Bitnami
ran on Ubuntu 11.10 with PostgreSQL 9.1.2

Sorry for my newbie question.

I got to the portion where it asks me to import timezone from the
django.utils module but all I manage to receive is:

>>> from django.utils import timezone
Traceback (most recent call last):
  File "", line 1, in 
ImportError: cannot import name timezone

If I cannot do the above, I cannot get to the next line in the shell:

>>> p = Poll(question="What's new?", pub_date=timezone.now())


Anybody ever encounter this issue? I've attempted to look for a
timezone setting in my settings.py and the only setting I can modify
seems to be the location. A preliminary Google search and
StackOverflow search turned up nothing. Your help is greatly
appreciated. Thanks!

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.