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
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):
> >
> 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
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
>
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
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
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:
>
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
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
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,
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
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
> >
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
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
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;
--~--~-~--~~-
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
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
17 matches
Mail list logo