Re: Writing your first Django app, part 1 (1.6)

2013-12-11 Thread Suhendri
Dear all,

The problem is solved..

The root cause were in models.py. I missed type a variable for return value 
on Choice Class.

Anyway, big thanks for all your supports


On Wednesday, December 11, 2013 5:19:48 AM UTC+7, Suhendri wrote:
>
> Hi,
>
> I'm new in Django, I'm excited with Django so I have to following the 
> existing tutorial to knew how to create a program with Django.
>
> I started with tutorial 1, Writing your first Django app, part1. I used 
> Django 1.6 and SQLite
>
>
> I followed the instructions from the starting of the tutorial, until the 
> line of *# Create three choices* I got an error.
>
> When I typed p.choice_set.create(choice_text='Not much', votes=0), I got 
> an error:
> *AttributeError: Traceback (most recent call last):*
> *...*
> *AttributeError: 'Choice' object has no attribute 'question'*
>
> I followed the tutorial exactly as it shown on web, but I got an error on 
> that line. Did I missed something in the tutorial ?
>
> Could you help me, to solve this problem so i can continue learn the 
> tutorial.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/34ca401d-6697-4314-9348-9a23073f920b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Writing your first Django app, part 1 (1.6)

2013-12-10 Thread Suhendri
Hi,

I'm new in Django, I'm excited with Django so I have to following the 
existing tutorial to knew how to create a program with Django.

I started with tutorial 1, Writing your first Django app, part1. I used 
Django 1.6 and SQLite


I followed the instructions from the starting of the tutorial, until the 
line of *# Create three choices* I got an error.

When I typed p.choice_set.create(choice_text='Not much', votes=0), I got an 
error:
*AttributeError: Traceback (most recent call last):*
*...*
*AttributeError: 'Choice' object has no attribute 'question'*

I followed the tutorial exactly as it shown on web, but I got an error on 
that line. Did I missed something in the tutorial ?

Could you help me, to solve this problem so i can continue learn the 
tutorial.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8714d33c-ab05-4a70-b88f-b3b52707549e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.