Re: loaddata not looking for natural keys

2014-03-23 Thread bobhaugen
Ok, now I am really confused. Here's the code where the error originates in django/core/serializers/python.py: # Handle FK fields elif field.rel and isinstance(field.rel, models.ManyToOneRel): if field_value is not None: import pdb; pdb.

Re: Django and Long Polling

2014-03-23 Thread Kakar Nyori
You mean requesting db in the given time? On Sun, Mar 23, 2014 at 8:50 AM, Venkatraman S wrote: > Why not use (async)callbacks? > > -V > > > On Sun, Mar 23, 2014 at 1:11 AM, Robin Lery wrote: > >> Hello, >> I need to implement long polling in my application to retrieve the >> events. But I hav

[OT] How to get rid of caching completely

2014-03-23 Thread Mrinmoy Das
Hi, This is a totally off topic question but is there a way to stop caching at all level? I have added *expires -1;* *add_header Cache-Control "private, must-revalidate, max-age=0";* *add_header Last-Modified "";* this on my nginx server block, but there are still some c

Re: Model validation across relationships

2014-03-23 Thread Simon Charette
I'd say that's exactly what you should use `Model.clean()` for. In this case you're *doing validation that requires access to more than a single field.* What sounds vague to you in the documentation? Le vendredi 21 mars 2014 19:43:07 UTC-4, Joshua Pokotilow a écrit : > > Given these models, wou

run manage.py commands within app

2014-03-23 Thread judy wawira
Hello I have a django app using haystack and a solr backend to power searches There is dynamic addition of data and wonder if there are other ways to automatically rebuild the solr index without manually going to the command line to run manage.py rebuild_index Thanks -- You received this mes

Re: run manage.py commands within app

2014-03-23 Thread Lachlan Musicman
I use cron and a script - but would love to hear other methods as well. Notes: Need to add virtualenv to PATH: crontab -e SHELL=/bin/bash PATH=/home/erp/.virtualenvs/prod/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin # # m h dom mon dow command 0 * * * * cd /home/www/prod/

Re: Deployment in Django

2014-03-23 Thread Aryak Sengupta
Is there any proper guideline or tutorial for creating a git repository for Django projects before using pythonanywhere for publishibg it? Thanks On 22 Mar 2014 20:20, "Amim Knabben" wrote: > Probably the ones you read there... > > If you aren't new on Linux, install the env on Virtualenv (go f