Re: HTTP_REFERER

2005-11-07 Thread PythonistL
Thank you Andreas and Luke for help and explanation Regards, L.

Re: django-admin not seeing settings.py

2005-11-07 Thread Marcos Sánchez Provencio
You might try executing python with the -v option El lun, 07-11-2005 a las 15:21 +0800, limodou escribió: > > I just noticed that the line breaks (in the comments) on the first two > > lines were actual line breaks, not just wrapping text. I fixed that, > > but still no go. The last two lines ar

Re: django-admin not seeing settings.py

2005-11-07 Thread stan8688
I got this problem too. when i use postgresql. but I solved it . when I drop old db and create new db set owner=postgres , tablespace= pg_default and public . maybe you are the same problem. holp to help you. Waylan Limberg wrote: > I'v gone through the first toturial before on another box no

Editing inline object individually

2005-11-07 Thread [EMAIL PROTECTED]
Hi I have classes that are edited inline. When you come to edit them indivdually in the admin interface they error with teh following message. ProgrammingError: ERROR: invalid input syntax for integer: "" because in the admin screen the foregin key field that is defined as inline edited is

Re: django-admin not seeing settings.py

2005-11-07 Thread Adrian Holovaty
On 11/6/05, Waylan Limberg <[EMAIL PROTECTED]> wrote: > I'v gone through the first toturial before on another box no problem, > but on this machine I can't seem to get it to work. After setting the > database conection info in myproject/settings.py I try to run > 'django-admin.py init --settings=m

Re: Editing inline object individually

2005-11-07 Thread Adrian Holovaty
On 11/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > It's a bit of a problem for me because i want to do this. > > Allow users to create a Purchase Order which has several Items (of > equipment) so item's are edited inline with purchase orders. > > Then for each Item needs to be edited indiv

Re: django-admin not seeing settings.py

2005-11-07 Thread Waylan Limberg
On 11/7/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 11/6/05, Waylan Limberg <[EMAIL PROTECTED]> wrote: > > I'v gone through the first toturial before on another box no problem, > > but on this machine I can't seem to get it to work. After setting the > > database conection info in myproj

Re: Using API to bulk populate data

2005-11-07 Thread wrb
Adrian Holovaty wrote: > On 11/4/05, wrb <[EMAIL PROTECTED]> wrote: > > What's the syntax to change or populate ForeignKey and ManyToMany > > fields? > > See the documentation: > > http://www.djangoproject.com/documentation/db_api/#relationships-joins > http://www.djangoproject.com/documentation/

Re: django-admin not seeing settings.py

2005-11-07 Thread rockmh
I am using FCGI on my host and I find that I am often required to "pkill python" in order to make certain types of changes actually show up. Annoying, but not a problem for my users. Just a thought...

Re: Using API to bulk populate data

2005-11-07 Thread Jacob Kaplan-Moss
I do, however, see methods for **set_relatedclass** when I dir the primary class. The documentation, to the best of my knowledge, doesn't mention how to use these methods. Check out http://www.djangoproject.com/documentation/models/ many_to_many/. The basic syntax is ``obj.set_realtedclasse

Re: Editing inline object individually

2005-11-07 Thread Robert Wittams
Adrian Holovaty wrote: > On 11/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >>It's a bit of a problem for me because i want to do this. >> >>Allow users to create a Purchase Order which has several Items (of >>equipment) so item's are edited inline with purchase orders. >> >>Then for each

Aggregating multiple models

2005-11-07 Thread Joe Topjian
Hello - I finally have some time to check out Django and I absolutely love it. I started my first project yesterday, so I'm sorry if something like this has already come up on the list before. I'm going to have several different models: articles, headlines, reviews, etc.  All have to do with publ

Re: Using API to bulk populate data

2005-11-07 Thread Kevin
I'm working on a similar script to convert a legacy database. Just a hint from a tough lesson learned, you work the opposite order that OO may teach you and you save() first, then aggregate. So example: class PhoneNumber(meta.Model): number = meta.CharField() class Contact(meta.Model):

FormField Length

2005-11-07 Thread Kevin
In my code, I have: zip_code = meta.CharField(maxlength=9) But when it's rendered as a form, it's always given a SIZE="30". Now I saw that sub-classes like USStateField override the length parameter in the TextField.__init__ method, but I really don't want to go creating all kinds of sub-classe

Re: Aggregating multiple models

2005-11-07 Thread Joe Topjian
I'm going to have several different models: articles, headlines, reviews, etc.  All have to do with publishing stories, but all are different in their own ways.  For instance, an article just has a title and a body but a review has a title, body, amazon url, etc. I'd like for all of these differe

Date issues

2005-11-07 Thread tomass
I'm getting the following error when I try to upload a photo: File "/usr/lib/python2.3/site-packages/django/core/meta/fields.py", line 327, in get_db_prep_save value = value.strftime('%Y-%m-%d') AttributeError: 'str' object has no attribute 'strftime' Here's my model: from django.core impo

Re: django-admin not seeing settings.py

2005-11-07 Thread Waylan Limberg
On 11/7/05, Waylan Limberg <[EMAIL PROTECTED]> wrote: > On 11/7/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > > > > > Django isn't finding your settings.py file. It's falling back to > > "postgresql" because that's the default fallback (according to the > > file django/conf/global_settings.py