Re: Using a message queue from Django to write to database asynchronously

2010-05-08 Thread justin randell
hi, On 8 May 2010 14:44, Continuation wrote: > After a user submitted data to my app, I'd like to write to the > database asynchronously, possibly through a message queue. > > How do I set up such a system? Are there any pluggable Django apps > that do such message queue-based database writes? >

Re: send an email to users after saving is_active=True

2010-05-08 Thread Alessandro Ronchi
2010/5/4 zinckiwi > On May 4, 9:49 am, Sander wrote: > > I don't want to check if if_active = True > > I wan't to check if if_active is changed to True > > If you use the pre_save signal, you can get the object as it currently > exists (based in the signalled instance's pk) and compare the exist

Bit Flags Field

2010-05-08 Thread Mietkins
Hi Have a django bit flags field ?? For example i have int field in base whit name "flags". The flags can be 0=empty, 1=locked . 2=unused I need to save this flags i one int field locked/unused =3 . I change this code http://www.djangosnippets.org/snippets/1200/ to use Int db field and its wo

Localeurl and django-multilingual

2010-05-08 Thread Alessandro Ronchi
I need to have links with language code prefix, and different contents. I've achieved that with both localeurl and django-multilingual, and I can get the tranlated version if i choice the correct url: for example http://mydomain.com/it/c/auto-intere/1/ and http://mydomain.com/pl/c/auto-intere/1/

Hi

2010-05-08 Thread Shyam chandran
How can we display manay to many field in list_display? pls help. -- Shyam Chandran Computer Science and Engineering Model Engineering College -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@go

Re: Using a message queue from Django to write to database asynchronously

2010-05-08 Thread kmeta...@gmail.com
On 8 Μάϊος, 07:44, Continuation wrote: > After a user submitted data to my app, I'd like to write to the > database asynchronously, possibly through a message queue. > > How do I set up such a system? Are there any pluggable Django apps > that do such message queue-based database writes? > > Woul

django with mod_wsgi on centos

2010-05-08 Thread Ivan Uemlianin
Dear All I know this is strictly speaking off topic, so please forgive me. I have asked at the mod_wsgi list. On an Ubuntu machine I have a working django site, using nginx, apache and mod_wsgi. Now I am having to install the site on a CentOS machine. Everything is working, apart form one

Re: django with mod_wsgi on centos

2010-05-08 Thread Kenneth Gonsalves
On Saturday 08 May 2010 20:32:51 Ivan Uemlianin wrote: > Can anyone suggest to me which permissions I need to change and to > what? Presumably read/write permissions to some file or directory but > which one(s)? > I do not know whether this will help, but I have seen permission denied errors

Thread safety, transactions and best practices

2010-05-08 Thread Adrián Ribao
Hello, I have a question about transactions and thread safe applications. I have an invoice app, where I have a model like this: class Counter(models.Model): client = models.ForeignKey(Client) number = models.CharField(max_length=10, db_index=True) class Meta: unique_together =

Re: Hi

2010-05-08 Thread Dennis Kaarsemaker
On za, 2010-05-08 at 16:04 +0530, Shyam chandran wrote: > How can we display manay to many field in list_display? > pls help. You can't. http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display -- Dennis K. They've gone to plaid! -- You received th

Re: Hi

2010-05-08 Thread Mietkins
On 8 Maj, 12:34, Shyam chandran wrote: > How can we display manay to many field in list_display? > pls help. U can do this. " If you want to do this nonetheless, give your model a custom method, and add that method's name to list_display. (See below for more on custom methods in list_display.)

Re: Open source CMS (if based on Django better)

2010-05-08 Thread Jon
Right now i'm evaluating which technology learn to develope applications (web app). I'm thinking on CMS and lately in Flex (also pyjamas) or more interactive technologies, thinking in develope an application to monitoring remote systems through the Internet. I have to consider the most requested s

Quotas for Django models

2010-05-08 Thread x13
Hi! I'm starting using Django and I have a little problem, may be someone can help me. Thanks in advance. My problem: 1. I have 2 models: Places and Photos. 2. There is a ManyToMany relation between Places and Photos through a custom model 'PlacePhotos' Class Photo(models.Model): ... Class P

Additional Text Form Field within a Models Admin Screen

2010-05-08 Thread Nick Taylor
Hi all, I'm pretty new to Django so bare with me if this is a simple question. Basically, I have an Article model which is simply title, body, status etc. Now, I want to add an additional TextBox to the admin for the model, but I don't want to add it as part of the Article model, as I don't want

Re: Errors while attempting to enable admin

2010-05-08 Thread Andrew Burns
:( As Daniel pointed out this is a simple case of RTFM. I didn't read and my eyes and brain ASSUMED (you know what that does) that 'django.contrib.auth' was 'django.contrib.admin' and just needed to be uncommented in urls. Well, guess what? When you add the proper line IT WORKS! I am extremely

Is Django's session lazy?

2010-05-08 Thread Continuation
If I don't access Django's User object in a view, does Django still retrieve the session data from the session backend? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubs