A simple use-case for adding Celery to a Django project without RabbitMQ.

2010-07-11 Thread Shawn Milochik
Here's a little blog post I just wrote. It provides instructions for what I think is the simplest possible way to add Celery to your Django project. Feedback (including critical) is always welcome. http://shawnmilo.blogspot.com/2010/07/simple-celery-with-django-how-to.html Shawn -- You receiv

Free (legal) jQuery book, from Novice to Ninja for 24 hours.

2010-07-11 Thread Shawn Milochik
Yes, this is slightly off-topic, but all the Django developers I know use jQuery in their projects. The publisher is giving away the e-book as promotional stunt related to the World Cup. http://sale.sitepoint.com/ The download includes PDF, .mobi, and .epub versions! Shawn Disclaimer: None.

Re: How to commit ManyToManyField with ModelForm

2010-07-11 Thread yugori
I tried to recreate tables, and it's done. But it makes no change to my plobrem. Please help me out (;_;) On 7月9日, 午後7:59, Sævar Öfjörð wrote: > Have you tried resetting your database and syncing it again? > If there are columns missing it sounds like you added them after you > did a manage.py s

Re: debugging CSRF trouble

2010-07-11 Thread Karen Tracey
On Sun, Jul 11, 2010 at 7:11 PM, John Griessen wrote: > I'm using a package django-page-cms that uses CSRF and can't > follow the docs for CSRF for django 1.2. > > They say I should add these lines to MIDDLEWARE_CLASSES, > >'django.middleware.csrf.CsrfViewMiddleware' >'django.middleware.cs

debugging CSRF trouble

2010-07-11 Thread John Griessen
I'm using a package django-page-cms that uses CSRF and can't follow the docs for CSRF for django 1.2. They say I should add these lines to MIDDLEWARE_CLASSES, 'django.middleware.csrf.CsrfViewMiddleware' 'django.middleware.csrf.CsrfResponseMiddleware' but when I do, I get an error: File

RE: How to access help_text attribute of model field

2010-07-11 Thread Sells, Fred
> I would like to access the help_text attribute of my model fields when > responding with XML like this > > I'm nut using Django forms but responding to Flex with XML.  There must > be some way to access this information, but I've been through the docus > and google with no luck. > > Does anyone

Re: Admin site not formatted

2010-07-11 Thread John Griessen
Darren wrote: I have had that happen a long time ago. I think my problem was that apache didn't gave permission to the CSS. I know that's not much to go on. But, maybe it will help. Or it can be lack of an alias in the apache2 config. John -- You received this message because you are subscribe

Re: How to access help_text attribute of model field

2010-07-11 Thread Daniel Roseman
On Jul 11, 9:58 pm, "Sells, Fred" wrote: > I would like to access the help_text attribute of my model fields when > responding with XML like this > > I'm nut using Django forms but responding to Flex with XML.  There must > be some way to access this information, but I've been through the docus

How to access help_text attribute of model field

2010-07-11 Thread Sells, Fred
I would like to access the help_text attribute of my model fields when responding with XML like this class A(MDSSection): A0100A= models.CharField(max_length=10, help_text='''National Provider Identifier (NPI)''') A0100B= models.CharField(max_length=12, help_text='''CMS Certi

Re: Admin site not formatted

2010-07-11 Thread Darren
I have had that happen a long time ago. I think my problem was that apache didn't gave permission to the CSS. I know that's not much to go on. But, maybe it will help. Darren On Jul 10, 2010, at 12:50 PM, octopusgrabbus wrote: > Using Apache and not the built-in Django web server, I can reac

Re: mod_wsgi problem with installation

2010-07-11 Thread John Griessen
tazimk wrote: hi, Trying to figure out why make gives following errors . What is wrong with installation ? Saw similar with buildout when a package could not be found. How are you installing? -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Major Tech Start up – NYC –Python Devel oper - Django/ Python Java/J2ee

2010-07-11 Thread CLIFFORD ILKAY
On 07/11/2010 12:36 PM, John Handelaar wrote: On 11 July 2010 14:17, Tech Scout wrote: Major Tech Start up – NYC –Python Developer - Django/ Python Java/J2ee FTE opportunity View, Refer or Apply confidentially here: http://bitURL.net/3df Tech Scout Why you just got spam filtered: Apparent

Re: New tutorial added to Django by Example

2010-07-11 Thread Rainy
On Jul 9, 9:41 pm, John M wrote: > WOW, this is very cool, you should see if you can add it to the main > django tutorial someway? Thanks! I don't think it will be added to main tutorial but I added the link to the list of tutorials on Django Wiki. -ak -- You received this message because you

Re: Forms.is_valid() Always return False

2010-07-11 Thread maroxe
The problem occurs only when using AuthenticationForm! On Jul 11, 4:14 pm, maroxe wrote: > Hi all, > I have a problem with django 1.2: >  is_valid returns always False, and form.errors is empty. > I use AuthentificationForm provided by django. > I have created a bound form: > form = Authentificat

Re: Major Tech Start up – NYC –Python Developer - Django/ Python Java/J2ee

2010-07-11 Thread John Handelaar
On 11 July 2010 14:17, Tech Scout wrote: >  Major Tech Start up – NYC –Python Developer - Django/ Python Java/J2ee FTE > opportunity > View, Refer or Apply confidentially here: http://bitURL.net/3df > Tech Scout Why you just got spam filtered: 1) Posting in HTML 2) No name 3) No phone number 4)

python logging and multiple process issue?

2010-07-11 Thread ydjango
Python logging has know limitation with multiple processes logging to same file. (I am using rotatingfilehandler.) Which in case of prefork MPM will always be an issue and can be an issue for worker mpm as well? Python doc recommends logging to sockets. What workarounds are you using and can re

Re: update least syntax?

2010-07-11 Thread Doug Warren
Just to be sure though, I don't need to call save on the instances unless I need to emit the save events right? Reading the manual: Be aware that the update() method is converted directly to an SQL statement. It is a bulk operation for direct updates. It doesn't run any save() methods on your mod

Forms.is_valid() Always return False

2010-07-11 Thread maroxe
Hi all, I have a problem with django 1.2: is_valid returns always False, and form.errors is empty. I use AuthentificationForm provided by django. I have created a bound form: form = AuthentificationForm(request.POST) and this request.POST: I believe it's a probleme related to django new securit

cant get contact_form to send an email, fails silently every time

2010-07-11 Thread shofty
all, im really struggling with django contact_form http://bitbucket.org/ubernostrum/django-contact-form/overview/ it doesn't send the email. i've stepped through it locally and it hits all the right lines of code. obviously it won't send it locally. but on the server, it should send however it ne

Re: Testing many-to-many models on a legacy database

2010-07-11 Thread derek
On Jul 11, 4:23 pm, derek wrote: > On Jul 10, 4:40 pm, Rolando Espinoza La Fuente > wrote: > > > > > On Sat, Jul 10, 2010 at 9:31 AM, Derek wrote: > > > Running Django 1.2.1 under Python 2.6. > > > I am obviously missing something cruccial, but I am just not sure where > > > this > > > is... >

Re: Testing many-to-many models on a legacy database

2010-07-11 Thread derek
On Jul 10, 4:40 pm, Rolando Espinoza La Fuente wrote: > On Sat, Jul 10, 2010 at 9:31 AM, Derek wrote: > > Running Django 1.2.1 under Python 2.6. > > I am obviously missing something cruccial, but I am just not sure where this > > is... > > I have a setup which includes a number of many-to-many mo

Major Tech Start up – NYC –Python Developer - Dj ango/ Python Java/J2ee

2010-07-11 Thread Tech Scout
* Major Tech Start up – NYC –Python Developer - Django/ Python Java/J2ee FTE opportunity * *View, Refer or Apply confidentially here: **http://bitURL.net/3df * * * * **Tech Scout * -- You received this message because you are subscribed to the Google

Testing custom inclusion tag

2010-07-11 Thread Julian
Hi, I've written a custom inclusion tag for a project of mine. The problem is: how can i test it? I've got a TestCase which has some methods: def get_tagcloud_template(self, argument): return """{%% load taggit_extras %%} {%% include_tagcloud %s %%} """ % arg

Re: update least syntax?

2010-07-11 Thread euan.godd...@googlemail.com
Django doesn't support the query type you're trying to do. You've already discovered F which is about as complicated as it gets, bt the update syntax is pretty much limited to setting a field's value to a consant. Looping over the minimum set of things and calling save on each one if your only opt

Re: How to pass a GET param that contains multiple items

2010-07-11 Thread euan.godd...@googlemail.com
This is a standard encode/decode situation you are descibing. Django automatically decodes the GET string the the browser encodes. If you need spaces, then they wil be encoded and decoded appropriately, so don't worry about that. If you want to pass a list in the GET string, do: url?var=1&var=2&v

Re: django template variables

2010-07-11 Thread Syed Ali Saim
:) -- 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 unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group a