Re: Maintain server-initiated FTP connection between client requests?

2011-12-29 Thread Jordon Wing
Thanks! That looks to be exactly what I needed. I'll try implementing that and post on here if I have any further questions but it looks rather straightforward. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the

Re: no plus-sign to add related object in admin

2011-12-29 Thread Furbee
Just taking a stab in the dark, are the ones without the + sign editable in the Admin? If they are not editable, I would imagine Django would not show the + in the Admin. Furbee On Thu, Dec 29, 2011 at 12:58 PM, K.C. Smith wrote: > I've got a project where when I pull up

no plus-sign to add related object in admin

2011-12-29 Thread K.C. Smith
I've got a project where when I pull up the admin page to add an object (an object that has several foreign keys), some of the FK fields show the little green plus-sign links to add a new related object for that field and other FK fields do not. In the past, I've seen the plus-sign link to add a

Re: CACHE_MIDDLEWARE_ANONYMOUS_ONLY isn't working for me

2011-12-29 Thread Brian Neal
I did some more experimenting. Perhaps I misunderstood the purpose of CACHE_MIDDLEWARE_ANONYMOUS_ONLY. The view in my example below is a simple generic list view, and it did not interrogate request.user or make any request.user.is_authenticated() type checks. If I add those checks to the

Re: How I could reset django admin pass in a buildout project

2011-12-29 Thread Reinout van Rees
On 29-12-11 17:48, Ashkan Roshanayi wrote: Ouch! now I get: Traceback (most recent call last): File "./bin/django", line 35, in import djangorecipe.manage ImportError: No module named djangorecipe.manage should I set something in project/settings.py? That error is normally

Re: How I could reset django admin pass in a buildout project

2011-12-29 Thread Ashkan Roshanayi
Ouch! now I get: Traceback (most recent call last): File "./bin/django", line 35, in import djangorecipe.manage ImportError: No module named djangorecipe.manage should I set something in project/settings.py? Best, -- You received this message because you are subscribed to the Google

Re: Maintain server-initiated FTP connection between client requests?

2011-12-29 Thread francescortiz
You will have to create a connection pool as a resident thread. Briefly, a connection pool will take care of: - Create a new connection if there is no connection available. - Reuse a connection if possible. - Remove connections that are no longer being used or that commanded to close. Then, your

Re: How I could reset django admin pass in a buildout project

2011-12-29 Thread Reinout van Rees
On 29-12-11 16:43, Ashkan Roshanayi wrote: Hi, basically my project is that I don't know how can I access django shell in a buildout project! I assume you're using djangorecipe? In that case: bin/django. That's the equivalent of "python manage.py", only with the right enviroment variable to

Re: Good notation for showing MVC interactions (i.e. Django)

2011-12-29 Thread Alec Taylor
An example of a BPMN2 diagram with swimlanes, which I created for a project: http://i40.tinypic.com/262r6nr.jpg What I am looking for is something suited towards showing architecture bounds and the interactions between each section of MVC. > I find that when thinking something through at the

How I could reset django admin pass in a buildout project

2011-12-29 Thread Ashkan Roshanayi
Hi, basically my project is that I don't know how can I access django shell in a buildout project! Marry Christmas :) -- Ashkan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Constraints on a one-to-many relationship and related problems

2011-12-29 Thread Bart Nagel
At 2011-12-28 06:59:31 -0800, Jay De Lanoy wrote: > I'd go for a separate table instead, with something like > > class BillingInfo(models.Model): > customer = models.OneToOneField(Customer) > billing_address = models.OneToOneField(Address) > > and then just have logic in the

Re: Constraints on a one-to-many relationship and related problems

2011-12-29 Thread Bart Nagel
At 2011-12-28 06:21:38 -0800, Dan Gentry wrote: > Just looking at the models, I'd like to make a couple of suggestions. > > Instead of using a Foreign Key relationship in Customer to indicate > the billing address, I would include a flag called 'billing_address' > in the Address table that would

Good notation for showing MVC interactions (i.e. Django)

2011-12-29 Thread Alec Taylor
Good morning, I'm developing various websites and functionality to cater to various different use-cases up in Django. Is there a good notation for showing what behaviour is at each stage, i.e. using swimlanes? I use BPMN 2 notation for everything, but I feel I am overusing this, and that there