Re: Problem with custom forms and related objects

2007-01-02 Thread JMCameron
Thanks Justin! I just figured this out myself. I'll include the updated RoomForm definition below since I've cleaned it up a bit and made a small fix to the save function: -- from django.db.models.related import

Re: [Django-users] how about a subject prefix???

2007-01-02 Thread Jacob Kaplan-Moss
On 1/2/07 9:59 PM, LD 'Gus' Landis wrote: Would it be possible to have something like the above subject prefix put on the Django lists? Please? Would help visually enhance Django stuff from other noise. TIA for your consideration. This comes up every few months; please search the

[Django-users] how about a subject prefix???

2007-01-02 Thread LD 'Gus' Landis
Dear Django-users List Mangler, Would it be possible to have something like the above subject prefix put on the Django lists? Please? Would help visually enhance Django stuff from other noise. TIA for your consideration. Cheers, --ldl -- --- LD Landis - N0YRQ - de la tierra del encanto

Re: Javascript not being picked up in AJAX based application

2007-01-02 Thread newbie
Yes, it is in the head. These are external scripts. Also, on the server console I see no errors. I get a HTTP 200 when the form is posted [02/Jan/2007 18:18:15] "POST /ajax/ HTTP/1.1" 200 2824 Kenneth Gonsalves wrote: On 03-Jan-07, at 4:17 AM, newbie wrote: > When I click the form

Re: Sharing models between apps

2007-01-02 Thread Rubic
Russell Keith-Magee wrote: You have imported the 'source' model to allow access to referral type as a Python module - but have you added 'source' to INSTALLED_APPS? If you don't do this step, Django doesn't know about the model, so it can't validate the foreign key. Of course. Thanks for the

Re: Sharing models between apps

2007-01-02 Thread Russell Keith-Magee
On 1/3/07, Rubic <[EMAIL PROTECTED]> wrote: referral.referralsource: 'referralType' has relation with model ReferralType, which has not been installed 1 error found. You have imported the 'source' model to allow access to referral type as a Python module - but have you added 'source' to

Re: Javascript not being picked up in AJAX based application

2007-01-02 Thread Kenneth Gonsalves
On 03-Jan-07, at 4:17 AM, newbie wrote: When I click the form submit button, the ajax callback does not kick in. I simply get a refresh if the page...On the server console I see that the request is seeking the right JS code. The question is - How should I debug this ? where is the js code?

Re: looking for a part time django developer

2007-01-02 Thread Silas
I'd be interested in working with you, e-mail [EMAIL PROTECTED] and we'll see how I can help. -- Silas On Jan 2, 9:23 am, "professorhojo" <[EMAIL PROTECTED]> wrote: hi all, we're looking for a part time django developer to work remotely a few hours here and there, as your schedule permits.

Re: What user does django server runs?

2007-01-02 Thread Kenneth Gonsalves
On 03-Jan-07, at 1:58 AM, Jacob M wrote: Then create a postgresql user and password in psql. that is createuser saraswati -P -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received this message

Re: What user does django server runs?

2007-01-02 Thread Kenneth Gonsalves
On 02-Jan-07, at 11:18 PM, Michel Thadeu Sabchuk wrote: without success, the error message tells me: FATAL: Ident authentication failed for user "saraswati". edit pg_hba.conf - change authentication from ident 'sameuser' to password -- regards kg http://lawgon.livejournal.com

Sharing models between apps

2007-01-02 Thread Rubic
I'm responding to a thread over 60 days old: http://tinyurl.com/ycmj9l Guillermo implies that a model should be easily shared between Django applications via import. However, if I attempt to move Model class to a shared module, the model won't validate. For example: class

Re: Problem with custom forms and related objects

2007-01-02 Thread jfagnani
JMCameron wrote: Somehow, the AddManipulator does a bit of magic to make {% for the_chair in form.chair %} work in the template. When it works, as far as I can tell, in first pass, the_chair has a dictionary of all the chair.0.* objects, second pass has a dictionary of all the chair.1.*

Javascript not being picked up in AJAX based application

2007-01-02 Thread newbie
I am new to Django and am still playing with some code available on the internet. I was trying to run the YUI-ext and Django application on B-List. When I click the form submit button, the ajax callback does not kick in. I simply get a refresh if the page...On the server console I see that the

Re: object attibute in different lines

2007-01-02 Thread Nader
Thank you, gkelly! I have found what I was looking for. I am a newbie to Django and I have to learn more about this system. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

[ANN] Django activities at PyCon 2007

2007-01-02 Thread Jacob Kaplan-Moss
Howdy folks -- I want to remind everyone that PyCon 2007 is rapidly approaching -- less than two months! -- and that early-bird registration ends Jan. 15th. I've posted a complete roundup of the Django-related activities on the Django 'blog

Re: newforms - updating ChoiceField choices at runtime

2007-01-02 Thread Honza Král
Hi gordy, I worked around this issue by using: class MyForm( forms.Form ): . customer_id = forms.Field(widget=forms.HiddenInput,required=False) def __init__( self, data=None, **kwargs ): super( MyForm, self ).__init__( data, **kwargs ) self.fields['employee_id'] =

newforms - FileInput

2007-01-02 Thread akhen
Hi there I'm trying to use FileInput widget in a Form: image = forms.Field(widget=forms.FileInput) But after a post, I just can get the filename not the data. form.clean_data['image'] Any ideas ? Thanks. --~--~-~--~~~---~--~~ You received this message

Re: What user does django server runs?

2007-01-02 Thread Jacob M
If you're running django under mod_python it will be using whichever account apache is running under - www-data, apache, etc. I typically use password-based authentication instead of same-user ident authentication in postgresql. Look in pg_hba.conf on your system. My pg_hba.conf typically

Re: What user does django server runs?

2007-01-02 Thread Joseph Heck
Assuming that you're running this under Apache+Mod_Python (complete guess - please correct me if I'm wrong), the server will be running as whatever Apache is configured to run as. Typically that's not a local username like "saraswati". If you run Django with a front-end of Lighttpd+FLUP/fgci,

newforms - updating ChoiceField choices at runtime

2007-01-02 Thread gordyt
Howdy Folks, Here is a fragment of a form definition: class AddEditContactHistoryForm(forms.Form): customer_id = forms.Field(widget=forms.HiddenInput,required=False) contact_history_type_id = forms.ChoiceField(label='Contact Type', choices=[(c.id,c.description) for c in

Re: object attibute in different lines

2007-01-02 Thread gkelly
Check out these built-in filters for templates: http://www.djangoproject.com/documentation/templates/#linebreaks If you're writing templates, that whole page is a very valuable resource. --~--~-~--~~~---~--~~ You received this message because you are

object attibute in different lines

2007-01-02 Thread Nader
Hello, I have a model field which is defined as a TextField. If I get the object in a view function by using of next statement : object = get_object_or_404(Object, pk=obj_id) Then I can use in template the next statement : {{ object.attrib }} and I get correctly the text get placed in this

What user does django server runs?

2007-01-02 Thread Michel Thadeu Sabchuk
Hi guys! I'm deploying a django project with postgresql as database backend. I used to create a local user with the same name of the database user (owner of the database), so I just need to run the webserver as the local user and the database should work without problems (this was true for

Re: XMLHttpRequest - HttpResponseRedirect - Issue

2007-01-02 Thread Georgi Stanojevski
Alagu Madhu : I am facing a problem in login screen using XMLHttpRequst sending the data to the controller.controller is getting the value through request.POST. but its not redirecting the same. if result[0]: return HttpResponseRedirect("/main/") else: return

Re: Curious error

2007-01-02 Thread Jorge Gajon
On 1/1/07, Ramdas S <[EMAIL PROTECTED]> wrote: class billnumber(models.Model): date = models.DateTimeField(auto_now_add=True, primary_key = True) def __str__(self): return self.id You added the 'primary_key' attribute to your date field, therefore your model will not have an

XMLHttpRequest - HttpResponseRedirect - Issue

2007-01-02 Thread Alagu Madhu
Hi All, I am facing a problem in login screen using XMLHttpRequst sending the data to the controller.controller is getting the value through request.POST. but its not redirecting the same. from django.http import HttpResponse, HttpResponseRedirect import db def login(request): args =

This IS a Once in a Lifetime Opportunity

2007-01-02 Thread type
Dear Friend, This IS a Once in a Lifetime Opportunity I only do this every once in a while and it's not likely that you'll find me again... I am an independent agent for a company called Cognigen Networks. This company has a five star rating and has a very solid foundation. We are traded on

looking for a part time django developer

2007-01-02 Thread professorhojo
hi all, we're looking for a part time django developer to work remotely a few hours here and there, as your schedule permits. please reply here! thanks :-D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Curious Error

2007-01-02 Thread Daniel Roseman
Ramdas S wrote: I got this model class billnumber(models.Model): date = models.DateTimeField(auto_now_add=True, primary_key = True) def __str__(self): return self.id class Admin: pass class Meta: ordering = ['-date',] Trying to populate the table using

Calendar widget example

2007-01-02 Thread jeffhg58
I have a search form where I would like to add the calendar widget for the date fields. I have been looking at the admin code but I wanted to know if there was any other examples out there. Looking at some other threads I have implemented these steps 1) add an entry to my site's urlpatterns

Re: In Model or Manager? (Sorting, calculations, and non-savable fields)

2007-01-02 Thread ringemup
Right, it makes sense to put display logic in the views/templates. And of course, the actual building of the tables will go there. Does that apply to the actual sorting of the data as well? It seems to me that it's something most efficiently accomplished at the database level. And then...

New Year Horoscope

2007-01-02 Thread Eminaeem
New Year Horoscope Curious to know what the New Year 2007 holds for you? Here comes Travour to kill all your curiosity with the Horoscope 2007 . Get to know about your future in the New Year by having a look attheHoroscope 2007 . http://xrl.us/t34m New Year History Celebrated around the

Re: special characters in model

2007-01-02 Thread Robert Slotboom
Hi Ramiro, In BBedit I saved the file as utf8 and the problem was solved. Thanks Rob Op 31-dec-06 om 19:27 heeft Ramiro Morales het volgende geschreven: Try encoding the models.py file using utf-8 (use iconv to re-encode it if it is encoded in ASCII or ISO 8859-x) and flag the encodig