Re: after_acreate after_change

2006-07-04 Thread Malcolm Tredinnick
On Wed, 2006-07-05 at 01:59 +, DavidA wrote: > > Malcolm Tredinnick wrote: > > On Tue, 2006-07-04 at 02:11 +, DavidA wrote: > > I'm not sure a created() method is going to be the right API, since this > > event has very transitory relevance, but your example does suggest we > > may need

Re: Managing database privileges

2006-07-04 Thread Douglas Campos
you can specify what user/password to connect to database in settings.py file, under your project dir http://www.djangoproject.com/documentation/tutorial1/#database-setup On 7/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I am in the process of moving my Django project from using the >

Re: Null values in Foreign Keys?

2006-07-04 Thread DavidA
One related question on nullable foreign keys: does the Django ORM always use inner/left joins for select_related() calls? If so, null FKs will cause rows to be excluded from a query so you may have to handle these with direct SQL. Personally, I often create an "unknown" row in a table (and do a

Re: Packaging django/flup for ubuntu

2006-07-04 Thread Douglas Campos
thanx On 7/4/06, Jan Claeys <[EMAIL PROTECTED]> wrote: > > On ma, 2006-06-26 at 22:26 -0300, Douglas Campos wrote: > > does anyone have some light for me? I'm new to this ubuntu thing > > > > I want to mantain a nightly .deb build from django svn, to help the poor > > (tm) > > There is a

Re: after_acreate after_change

2006-07-04 Thread DavidA
Malcolm Tredinnick wrote: > On Tue, 2006-07-04 at 02:11 +, DavidA wrote: > I'm not sure a created() method is going to be the right API, since this > event has very transitory relevance, but your example does suggest we > may need something extra here at some point. I agree that created()

Re: Packaging django/flup for ubuntu

2006-07-04 Thread Jan Claeys
On ma, 2006-06-26 at 22:26 -0300, Douglas Campos wrote: > does anyone have some light for me? I'm new to this ubuntu thing > > I want to mantain a nightly .deb build from django svn, to help the poor (tm) There is a packaging guide in the included help (System --> Help --> first item there) as

Re: Code exectution and persistent object question

2006-07-04 Thread Steven Armstrong
On 07/05/06 03:34, Iain Duncan wrote: > I stumbled on some behaviour that I'm sure is explained somewhere but > not in the tutorials so I haven't found it. > > I made a global log object for debugging. I noticed instantiating > objects in the view global name space executes before anything else

Re: Any examples of AJAX (preferrably JSON) form validation using Django?

2006-07-04 Thread [EMAIL PROTECTED]
Currently the only AJAX and Django documentation, that I know of, is at: http://code.djangoproject.com/wiki/AjaxDjangoDojoForm I've never really worked w/ AJAX validation, so I'm not sure how hard it would be to expand on those 3 tutorials to allow it. I'm currently experimenting with AJAX and

Any examples of AJAX (preferrably JSON) form validation using Django?

2006-07-04 Thread Scott Chapman
I'd love to see some good examples of form validation using AJAX and Django. Field-by-field AJAX(J) validation as well as final-submit validation (also could be done via AJAX(J)) examples are needed. TIA, Scott --~--~-~--~~~---~--~~ You received this message

Re: Try to tweak given manipulators or start from scratch?

2006-07-04 Thread Todd O'Bryan
On Jul 4, 2006, at 11:34 AM, Jorge Gajon wrote: > The odd thing is that the FormWrapper, when rendering the select > field, will pre-select the country according to the value in > new_data['country_id'] instead of new_data['country']. But when the > form is POSTed to the view, the selected value

Re: Null values in Foreign Keys?

2006-07-04 Thread Iain Duncan
>>foo = models.ForeignKey( bar, null=True, blank=True ) > > > Give this one a go again. This is the form that should work. Perhaps > there was another problem that got in the way? BTW there is nothing > wrong with using a null field for your foreign key relationship in most > schemas, from a

Deletion of foreign key relations in admin view?

2006-07-04 Thread Iain Duncan
One of my very few gripes with the otherwise amazing admin interface is the way deletions are handled when foreign key relationships are there. If you want to delete one item, it takes out any others depending on this item. Makes sense in a way, but could be very dangerous in the hands of a

Code exectution and persistent object question

2006-07-04 Thread Iain Duncan
I stumbled on some behaviour that I'm sure is explained somewhere but not in the tutorials so I haven't found it. I made a global log object for debugging. I noticed instantiating objects in the view global name space executes before anything else in the views module on page load, very useful

Re: Django & Apache 1.x

2006-07-04 Thread Iain Duncan
>>Well... Mod_python is the easiest method of running django, FastCGI >>setup is more advanced and usually requires basic knowledge about >>forking vs. threading, writing init scripts etc. These are things that >>makes it harder for beginners to understand Django itself so in my >>opinion it's

Re: Conceptual difference between a project and an application

2006-07-04 Thread Frankie Robertson
On 04/07/06, Spider <[EMAIL PROTECTED]> wrote: > > Can someone explan to me the underlying concept behind the distinction > between django "projects" and "applications"? > > I know that an application is part of a project, and it's many-to-many, > so an app can be part of more than one project,

Conceptual difference between a project and an application

2006-07-04 Thread Spider
Can someone explan to me the underlying concept behind the distinction between django "projects" and "applications"? I know that an application is part of a project, and it's many-to-many, so an app can be part of more than one project, and a project can contain more than one app. But what to

Managing database privileges

2006-07-04 Thread nate-django
I am in the process of moving my Django project from using the development server to Apache and mod_python. I created the PostgreSQL databases as myself and ran the development server as myself. Now that I'm getting stuff going with mod_python, it'll start running as user "www-data" under

Re: Try to tweak given manipulators or start from scratch?

2006-07-04 Thread Jorge Gajon
Hi Todd, > > and for a ForeignKey: > > related_object = OtherObject.objects.get(pk=23) > > new_data['related_object'] = str(related_object.id) > > This, not so much. The related object entry is in the data field of > the FormWrapper when I look at it, but if I render the SelectField it >

Problem with apps in admin

2006-07-04 Thread Enrico
I'm following the tutorial: http://www.djangoproject.com/documentation/tutorial2/ And I couldn't get the admin working by just uncommenting the "Uncomment this for admin:" line. My project name is "rico", I had to change the url to "rico/admin/" instead of only "admin/". This way I can log

Re: save an object to the session and call back the object in another page

2006-07-04 Thread bernadet
thx jay, recalling the saved objects from session can be from any function. the second point is solved, dont worry.thx again --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: save an object to the session and call back the object in another page

2006-07-04 Thread Jay Parlar
On 7/4/06, bernadet <[EMAIL PROTECTED]> wrote: > > hii, > > now i have another question related to the session: > if i save an object to the session from a certain view > (request.session['myperson']=new_person), can i recall it from another > view by request.session['myperson']. ( i mean from 2

Re: Hola

2006-07-04 Thread Douglas Campos
I think that a "official translation team" would be awesome. If we can concentrate the resources, noobs will find their way easily On 7/4/06, Frankie Robertson <[EMAIL PROTECTED]> wrote: > > No, I would like to see a unified effort, if you look at the comments > for a lot of the documentation

Re: Hola

2006-07-04 Thread Frankie Robertson
No, I would like to see a unified effort, if you look at the comments for a lot of the documentation you'll find links to translations into the commenters native tounge. It would be nice to see what the core team had to say about this. On 03/07/06, Douglas Campos <[EMAIL PROTECTED]> wrote: > Is

Re: Django & Apache 1.x

2006-07-04 Thread Gábor Farkas
Carlos Yoder wrote: >>> Can anybody confirm having a Django app running under Apache 1.x + >>> FastCGI? Is this actually a silly question, since let's say Dreamhost >>> gives only Apache 1.x support? :-) >> i have a website served by apache 1.x + fastcgi. no problems. >> >> gabor > > Thank you

Re: Django & Apache 1.x

2006-07-04 Thread Carlos Yoder
> > Can anybody confirm having a Django app running under Apache 1.x + > > FastCGI? Is this actually a silly question, since let's say Dreamhost > > gives only Apache 1.x support? :-) > > i have a website served by apache 1.x + fastcgi. no problems. > > gabor Thank you very much, or should I say

Re: Container level logic

2006-07-04 Thread Malcolm Tredinnick
On Tue, 2006-07-04 at 09:19 +0200, toth anna wrote: > I asked you before about how to implement "cointainer level > logic" in django. > You suggested me to override save() method (example was: > object can decide from the "fields" to create more "records" > instead just saving oneself). It worked

Re: Django & Apache 1.x

2006-07-04 Thread Carlos Yoder
> > I wonder if more people were/are confused by that sentence (found > > here: http://www.djangoproject.com/documentation/install/)...? > > Well... Mod_python is the easiest method of running django, FastCGI > setup is more advanced and usually requires basic knowledge about > forking vs.

Re: Django & Apache 1.x

2006-07-04 Thread Ivan Sagalaev
Carlos Yoder wrote: > I wonder if more people were/are confused by that sentence (found > here: http://www.djangoproject.com/documentation/install/)...? Well... Mod_python is the easiest method of running django, FastCGI setup is more advanced and usually requires basic knowledge about forking

Re: Django & Apache 1.x

2006-07-04 Thread Carlos Yoder
>> Hello people! >> Since I only found *one* place stating that Django "requires Apache >> 2.x and mod_python 3.x", I felt I should check :-) >> Just to be absolutely sure... Django does NOT work under Apache 1.x, correct? > Not correct. This 2.0 thing is mentioned because Django works under >

Re: Django & Apache 1.x

2006-07-04 Thread Ivan Sagalaev
Carlos Yoder wrote: > Hello people! > > Since I only found *one* place stating that Django "requires Apache > 2.x and mod_python 3.x", I felt I should check :-) > > Just to be absolutely sure... Django does NOT work under Apache 1.x, correct? Not correct. This 2.0 thing is mentioned because

Container level logic

2006-07-04 Thread toth anna
I asked you before about how to implement "cointainer level logic" in django. You suggested me to override save() method (example was: object can decide from the "fields" to create more "records" instead just saving oneself). It worked well, but... What do you suggest if i have to interact with

Re: save an object to the session and call back the object in another page

2006-07-04 Thread bernadet
hii, now i have another question related to the session: if i save an object to the session from a certain view (request.session['myperson']=new_person), can i recall it from another view by request.session['myperson']. ( i mean from 2 different functions) and please according to link the user

Re: Null values in Foreign Keys?

2006-07-04 Thread oggie rob
> foo = models.ForeignKey( bar, null=True, blank=True ) Give this one a go again. This is the form that should work. Perhaps there was another problem that got in the way? BTW there is nothing wrong with using a null field for your foreign key relationship in most schemas, from a practical

Django & Apache 1.x

2006-07-04 Thread Carlos Yoder
Hello people! Since I only found *one* place stating that Django "requires Apache 2.x and mod_python 3.x", I felt I should check :-) Just to be absolutely sure... Django does NOT work under Apache 1.x, correct? I'm tring to setup a Django env at Servage.net, and they provide Apache 1.x,