How to show rsync progress in Django?

2012-11-29 Thread Sachit Adhikari
I am using the development version of rsync with --info-progress option. I am writing a django front-end app which transfer files from server to local computer using rsync. This is the code I am using: finalresult = subprocess.Popen(['sshpass', '-p', password, 'rsync', '-avz', '--info=progress2'

Re: How to show rsync progress in Django?

2012-11-29 Thread Adnane Belmadiaf
Please ask questions about using Django on django-users. The topic of this list is the development of Django itself. Thanks. 2012/11/29 Sachit Adhikari > I am using the development version of rsync with --info-progress option. I > am writing a django front-end app which transfer files from ser

Re: I'd like to make a contribution to the wiki

2012-11-29 Thread James Pic
I've set up the test_project of one of my apps - http://jpic.pythonanywhere.com/ (user/pass: test/test) it went pretty well. Great work ! One question thought, most of the time, free accounts disappear at some point, when the company grows. Are you committed to maintaining free accounts ? Thanks

Re: I'd like to make a contribution to the wiki

2012-11-29 Thread Harry Percival
Hey, We're definitely committed to the freemium model, so there should always be a free plan + free web hosting. What we might do is tweak the bandwidth and cpu usage restrictions to encourage heavy users to start paying, but people running a small webapp shouldn't have anything to worry about

Re: A.objects.getdefault

2012-11-29 Thread Wim Feijen
Hi Anssi, When I thought about it, the most prominent usecase seemed to me of getting one of a set of many and expecting just one result. In that case, get_or_none would suffice. However, as a method name, I prefer first() for being concise. For me it is ok to just have the first() method wit

Re: Proposal: Composite Foreign Keys

2012-11-29 Thread Ron Smith
So here we are 4 years later, version 1.5 is about to be released and we still don't have a solution for composite primary keys in the code base? Or am I missing it in the docs somewhere? -- You received this message because you are subscribed to the Google Groups "Django developers" group. To

Re: Proposal: Composite Foreign Keys

2012-11-29 Thread Alex Gaynor
No, there is no such solution in the codebase. Are you aware of a patch we should be reviewing on this issue? Alex On Thu, Nov 29, 2012 at 2:43 PM, Ron Smith wrote: > So here we are 4 years later, version 1.5 is about to be released and we > still don't have a solution for composite primary ke

Re: Proposal: Composite Foreign Keys

2012-11-29 Thread Jacob Kaplan-Moss
On Thu, Nov 29, 2012 at 4:43 PM, Ron Smith wrote: > So here we are 4 years later, version 1.5 is about to be released and we > still don't have a solution for composite primary keys in the code base? Or > am I missing it in the docs somewhere? I'm not sure if you meant to, but your tone here come

Re: I'd like to make a contribution to the wiki

2012-11-29 Thread Russell Keith-Magee
Hi Harry, That particular page has been locked down due to problems we've had with spam. If you let us know what you want to add, I can add an entry to the list on your behalf. Yours, Russ Magee %-) On Tue, Nov 27, 2012 at 10:57 PM, Harry Percival wrote: > It's for promotional purposes really -

Re: Proposal: Composite Foreign Keys

2012-11-29 Thread Ron Smith
I'm sorry, I did not indent for it to be hostile or rude but, after reading it I guess it could sound that way. I was more frustrated because I was sure I was missing something somewhere. On Thu, Nov 29, 2012 at 5:06 PM, Jacob Kaplan-Moss wrote: > On Thu, Nov 29, 2012 at 4:43 PM, Ron Smith wrote

Re: Proposal: Composite Foreign Keys

2012-11-29 Thread Ron Smith
I thought there were several patches or workarounds proposed in the thread that I commented on. I did not mean to kick a hornets nest. I'll just back away quietly now and see if I can switch everything over to SQLAlchemy like one of the other comments suggested. On Thu, Nov 29, 2012 at 5:02 PM, Al