Sean,

When you read a tutorial about django, check the version you using and
version used on the tutorial.

Check again: http://www.jetbrains.com/pycharm/quickstart/django_guide.html

This guide is for *1.4.3* and you using django *1.6.2*

Always check the version, sometimes has some incompatibilities.

I recommend you read official django documentation
*https://docs.djangoproject.com/en/1.6/intro/tutorial01/
<https://docs.djangoproject.com/en/1.6/intro/tutorial01/>*

The Jetbrains guide is good, but not is compatible with your have installed
version of Django.

Anyway, try change '*polls*' to '*MyDjangoApp.polls*' inside
*INSTALLED_APPS*

Don't be frustrated! :)

Greetings


On Wed, Feb 12, 2014 at 5:31 PM, Sean Luke <192.sean.l...@gmail.com> wrote:

> models.py
>
> from django.db import models
>
> # Create your models here.
>
>
> class Poll(models.Model):
>     question = models.CharField(max_length=200)
>     pub_date = models.DateTimeField('date published')
>
>
> class Choice(models.Model):
>     poll = models.ForeignKey(Poll)
>     choice = models.CharField(max_length=200)
>     votes = models.IntegerField()
>
> views.py
>
> from django.shortcuts import render
>
> # Create your views here.
> from django.shortcuts import render_to_response
>
>
> def index(request):
>     return render_to_response('index.html')
>
>
> def detail(request, poll_id):
>     return render_to_response('detail.html')
>
>
> def results(request, poll_id):
>     return render_to_response('results.html')
>
>
> def vote(request, poll_id):
>     return render_to_response('vote.html')
>
> --
> 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/a1164929-b6aa-4ca8-8dd1-6012a05dfb50%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Lucas Klassmann
Desenvolvedor de Software

Email: lucasklassm...@gmail.com
Web site: http://www.lucasklassmann.com

-- 
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/CAOz50p%2Br6JszOuk1xNS0n%3DM1Gg%3Dr9A37MpZQXcqSfuQwR%3DRE%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to