Re: Problem with Tutorial 1 - Django Version = 1.3

2011-06-30 Thread Cal Leeming [Simplicity Media Ltd]
Hi OP, Just as a side note, it's probably worth learning about how Python works before jumping straight into Django. (I'm assuming this based on __unicode__ did not have proper indentation). My apologies if I am wrong though! Cal On Thu, Jun 30, 2011 at 3:19 PM, Jarilyn Hernandez wrote: > Tha

Re: Problem with Tutorial 1 - Django Version = 1.3

2011-06-30 Thread Jarilyn Hernandez
Thanks for your responses. The problem was solved. Best Regards, Eiram On Thu, Jun 30, 2011 at 10:06 AM, Jirka Vejrazka wrote: > > class Poll(models.Model): > >question = models.CharField(max_length=200) > >pub_date = models.DateTimeField('date published') > > def __unicode__(self): > >

Re: Problem with Tutorial 1 - Django Version = 1.3

2011-06-30 Thread Jirka Vejrazka
> class Poll(models.Model): >    question = models.CharField(max_length=200) >    pub_date = models.DateTimeField('date published') > def __unicode__(self): >        return self.question > > class Choice(models.Model): >    poll = models.ForeignKey(Poll) >    choice = models.CharField(max_length=20

Re: Problem with Tutorial 1 - Django Version = 1.3

2011-06-30 Thread Daniel Roseman
Op donderdag 30 juni 2011 14:57:46 UTC+1 schreef Eiram het volgende: > > Greetings!! > > In the past few days I have been trying to learn about Django. I > started doing the Tutorial 1. During the tutorial I'm getting a > strange error. I was hoping if someone can help me to understand what >

Re: Problem with Tutorial 1 - Django Version = 1.3

2011-06-30 Thread Kenneth Gonsalves
On Thu, 2011-06-30 at 06:57 -0700, Eiram wrote: > Poll(objetcs.all) Poll.objects.all() -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Problem with Tutorial 1 - Django Version = 1.3

2011-06-30 Thread Eiram
Greetings!! In the past few days I have been trying to learn about Django. I started doing the Tutorial 1. During the tutorial I'm getting a strange error. I was hoping if someone can help me to understand what I'm doing wrong and how can I fix it. This is the code I had: class Poll(models.Mode

AW: problem with tutorial

2011-02-08 Thread Szabo, Patrick (LNG-VIE)
Nachricht- Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im Auftrag von Tom Evans Gesendet: Dienstag, 08. Februar 2011 16:05 An: django-users@googlegroups.com Betreff: Re: problem with tutorial On Tue, Feb 8, 2011 at 2:43 PM, Szabo, Patrick (LNG-VIE) wrote: >

Re: problem with tutorial

2011-02-08 Thread Tom Evans
On Tue, Feb 8, 2011 at 2:43 PM, Szabo, Patrick (LNG-VIE) wrote: >  Hi, > > I startet exploring django today and I'm currently stuck. > Right now I'm doing the 3 part of the tutorial, where it says Design > your URLs. > > I editet the urls.py so it looks like this: > > from django.conf.urls.default

problem with tutorial

2011-02-08 Thread Szabo, Patrick (LNG-VIE)
Hi, I startet exploring django today and I'm currently stuck. Right now I'm doing the 3 part of the tutorial, where it says Design your URLs. I editet the urls.py so it looks like this: from django.conf.urls.defaults import * from django.contrib import admin admin.autodiscover() urlpatterns

Re: Strange "problem" with tutorial

2009-02-07 Thread Chris Baker
I've had a similar problem on many of my python projects, where a package seems to be on the pythonpath and everything is perfect but for some reason I can't import it. Almost always the problem is that I forgot to include an __init__.py in the package. If a directory does not have an __init__.py,

Re: Strange "problem" with tutorial

2009-02-07 Thread Steve Holden
Joshua Russo wrote: > > On Feb 3, 6:04 pm, Adam Yee wrote: > >> On Feb 3, 9:49 am, Joshua Russo wrote: >> >> >>> I'm working through the tutorials and have encountered a strange >>> problem. So far everything works but Python doesn't acknowledge my >>> base site as a package. So everywhe

Re: Strange "problem" with tutorial

2009-02-03 Thread Joshua Russo
On Feb 3, 6:04 pm, Adam Yee wrote: > On Feb 3, 9:49 am, Joshua Russo wrote: > > > I'm working through the tutorials and have encountered a strange > > problem. So far everything works but Python doesn't acknowledge my > > base site as a package. So everywhere that you see a reference like > >

Re: Strange "problem" with tutorial

2009-02-03 Thread Adam Yee
On Feb 3, 9:49 am, Joshua Russo wrote: > I'm working through the tutorials and have encountered a strange > problem. So far everything works but Python doesn't acknowledge my > base site as a package. So everywhere that you see a reference like > "mysite.poll" I need to use only "poll". I think

Strange "problem" with tutorial

2009-02-03 Thread Joshua Russo
I'm working through the tutorials and have encountered a strange problem. So far everything works but Python doesn't acknowledge my base site as a package. So everywhere that you see a reference like "mysite.poll" I need to use only "poll". I think that my problems stem from the following section

problem with tutorial(polls)app, database problem

2008-06-02 Thread circularfunc
self.connection ) Database.connect(conn_string, **self.options) psycopg2.OperationalError: missing "=" after "owner" in connection info string did this to create the database: CREATE USER django_user PASSWORD 'passwd'; CREATE DATABASE django owner=django_user; --~--~-~--~~-

Re: Problem with Tutorial

2008-05-08 Thread Martin Diers
On May 8, 2008, at 7:39 AM, Boodlooder wrote: > > I'm logged in as root, trying to execute: > > python mange.py syncdb > > the command is returning: > ... >super(Connection, self).__init__(*args, **kwargs2) > _mysql_exceptions.OperationalError: (1049, "Unknown database > 'reinhardt'") > > Whe

Problem with Tutorial

2008-05-08 Thread Boodlooder
I'm logged in as root, trying to execute: python mange.py syncdb the command is returning: Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File "/usr/lib/python2.5/site-packages/django/core/management.py", line 1672, in execute_manager exe