Re: Trying to run jobs in the background using multiprocessing

2013-11-27 Thread Pau Creixell
Hi again, Thanks for all your answers. Yes, I also found out many recommend Celery, but I was hoping for a "simpler" solution, if there is one... Doug, I already tried without the self in arguments, but got the same error, unfortunately. I guess if there isn't another simpler way, I'll have to

Admin permissions for proxy ModelAdmins?

2013-11-27 Thread Brad Smith
Hello all, I want to have multiple admin interfaces for editing the same model under different circumstances. The way I've been doing this is to register multiple proxy models, each with their own ModelAdmins. However, the proxy models don't seem to generate permissions, so they don't show up

Re: Render User Selected Communities (as Checkboxes) in Multiple Choice Form

2013-11-27 Thread JJ Zolper
So I guess no one knows what to do? No one has ever dealt with the multiple choice field or multiple choice selections and the UX for it? On Tuesday, November 26, 2013 9:48:03 AM UTC-5, JJ Zolper wrote: > > > I know it's sort of a need by case basis but has anyone tried to do this > before? Has

Re: GET and POST in forms. Please help me understand the logic!

2013-11-27 Thread Thomas
I understand the confusion. Part of it is probably that GET and POST, is not part of Django per se, but part of the HTTP standard. Also confusing is that Django, especially in that code you pasted below, a lot is abstracted away. Sorry for the lack of detail, typing from iMe, just wanted to

GET and POST in forms. Please help me understand the logic!

2013-11-27 Thread Andrew Taylor
Hi, I'm struggling with the concepts of get and post and where these status come from in the workflow. I have worked my way through the official pages on forms but I have not quite understood this to my satisfaction. I get the gist that: - get is for requesting data and - the query

Re: Trying to run jobs in the background using multiprocessing

2013-11-27 Thread Doug Blank
On Wed, Nov 27, 2013 at 2:58 PM, Pau Creixell wrote: > Hi there! > > I am trying to run jobs in the background using the following (minimal) > code: > > Under views.py: > > def submit(request): >model = MyModel() >model.RunInAThread(ReferenceSeparator,

Re: Why is RequestContext used in this way?

2013-11-27 Thread Andrew Taylor
Thanks guys this was very helpful On Friday, 15 November 2013 14:12:50 UTC, Tom Evans wrote: > > On Fri, Nov 15, 2013 at 12:59 PM, Andrew Taylor > > wrote: > > > > > > Hi, > > > > I've followed some example code which is is follows: > > > > def index(request): > >

Re: discution

2013-11-27 Thread Avraham Serour
Not everybody can express their problems in english, there are many django communities in each language, if not at least regional python communities exists around the globe. I'm almost certain that there is at least one french django list, maybe some french speaking soul here can direct him On

Re: Trying to run jobs in the background using multiprocessing

2013-11-27 Thread Avraham Serour
maybe your webserver won't permit multiprocessing, it depends on how you are running django. In any case I would also recommend celery, in this case you have control on how many workers are running, having a webrequest open yet another process means you won't have control on how many processes

Re: DjangoProject.com community feeds

2013-11-27 Thread Russell Keith-Magee
Hi Silvio, I've just checked the record for the feed in our database, and it worked as expected -- it's a valid RSS feed, currently showing 4 articles. Unfortunately, I can't offer any advice as to why this isn't being picked up by the community aggregator. I know the feed aggregator has been a

Re: DjangoProject.com community feeds

2013-11-27 Thread Silvio J. Gutierrez
Could you please confirm the URL that's in the system? That way I can double check that everything works. Much appreciated, Silvio On Tue, Nov 26, 2013 at 6:22 PM, tim wrote: > Your feed was approved on Oct. 14. I'm not sure why your recent entries > haven't appeared. >

Re: Trying to run jobs in the background using multiprocessing

2013-11-27 Thread Timothy W. Cook
When I asked about this it seems that the best solution is to use Celery in combination with Django. There seems to be quite a bit of good experience here using them together. HTH, Tim On Wed, Nov 27, 2013 at 5:58 PM, Pau Creixell wrote: > Hi there! > > I am trying to

Re: Virtualenv and Hudson/Jenkins

2013-11-27 Thread Timothy W. Cook
Interesting in how you think that PHP is more mature and better documented than Python. Anyway, the OP asked about virtualenv with Hudson and Jenkins, not about Django. So maybe they asked in the wrong place. Django running virtualenv is quite well documented. But any Python app runs the same

Trying to run jobs in the background using multiprocessing

2013-11-27 Thread Pau Creixell
Hi there! I am trying to run jobs in the background using the following (minimal) code: Under views.py: def submit(request): model = MyModel() model.RunInAThread(ReferenceSeparator, MutationSeparator) Under models.py: class MyModel(models.Model): def RunInAThread(self,

Re: Virtualenv and Hudson/Jenkins

2013-11-27 Thread shadowy m
Yes, I would like to know to also. This has been typical of my Django/Python experience. The OP asked how and that they could not find good documentation and got several responses of why and "google it, lots of good info". Maybe good info if you already mostly know what you are doing and

Re: lambda callable in foreignkey default

2013-11-27 Thread Bill Freeman
Probably not it, but try: ...(RestaurantType, default = lambda: (RestaurantType.objects.all()[0])) And note that your alternate will fail if RestaurantType object with id==1 is ever deleted. On Tue, Nov 26, 2013 at 7:31 AM, Philippe Raoult wrote: > > I ran into a

Re: discution

2013-11-27 Thread Rafael E. Ferrero
Almost everyone on this group can read and write in English, i'll recomend you to write in English to have a really good answer. >From http://translate.google.com: Presque tout le monde sur ce groupe peut lire et écrire en anglais, je vous le recommande d'écrire en anglais pour avoir une très

Django Developers wanted, junior and senior. Remote welcome, European timezones.

2013-11-27 Thread Jon Atkinson
Hi, I’m Technical Director at FARM Digital. We’re a digital agency based in the UK. We’re currently looking for Django developers, both junior and senior. There are two job descriptions on our website, available at: Senior Developer - http://farmd.co.uk/1bhm1Cn Junior Developer -

discution

2013-11-27 Thread Assane Ka
je suis sur un projet qui utilise django mais j'ai encore peu d'idée sur le fonctionnement de django ( ses capacités, dans les script python, avec les sgbd, ses limite, ses failles) -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Form cleaned_data

2013-11-27 Thread Timothy W. Cook
Thanks Tom. On Wed, Nov 27, 2013 at 8:13 AM, Tom Evans wrote: > > No, "form" is an instance of your form. Model forms have a method > called save(), when you call this method, the model form updates an > instance of the model with the values from the form, saves the >

Re: Form cleaned_data

2013-11-27 Thread Tom Evans
On Wed, Nov 27, 2013 at 9:50 AM, Timothy W. Cook wrote: > On Tue, Nov 26, 2013 at 9:34 AM, Daniel Roseman wrote: >> On Monday, 25 November 2013 21:42:51 UTC, Timothy W. Cook wrote: >> >> But that's just what form.save() does. In your original code, you

Re: Form cleaned_data

2013-11-27 Thread Timothy W. Cook
On Tue, Nov 26, 2013 at 9:34 AM, Daniel Roseman wrote: > On Monday, 25 November 2013 21:42:51 UTC, Timothy W. Cook wrote: > > But that's just what form.save() does. In your original code, you called it > and a new Review object was saved in the database (it was also