Re: or-ing to QuerySets turns INNER into LEFT OUTER joins?

2014-02-14 Thread Carsten Fuchs
Hi, Am 14.02.2014 22:28, schrieb Sharath Gururaj: Did you find a fix for this problem? I'm running into the same issue. I am manually doing a union in python to avoid the left outer join. Unfortunately, I've not found anything else, and ended up using what I described in my earlier posts:

Re: or-ing to QuerySets turns INNER into LEFT OUTER joins?

2014-02-14 Thread Sharath Gururaj
Hi Carsten, Did you find a fix for this problem? I'm running into the same issue. I am manually doing a union in python to avoid the left outer join. What I would like to know is: 1. Is there a reason why mysql performance is so slow on left outer join? (even with indexes) 2. How do I force

Re: Django + PostgresSQL. I'm a newbie.

2014-02-14 Thread Jonathan Querubina
And he is using gTranslate, for sure. Maybe he is not aware of what he wants... Віталій: Search Google First Jonathan Querubina Diretor de Tecnologia +55(12)98864-1594 www.phocus.com.br > On Feb 14, 2014, at 18:10, "C. Kirby" wrote: > > The topics you are asking about

Re: Django + PostgresSQL. I'm a newbie.

2014-02-14 Thread C. Kirby
The topics you are asking about are all over Google. Please do a little work before asking here. No one want to do your research for you, or re-type what is already available to you. If you have searched google and don't understand a reference then you should ask specifically about what you

Django + PostgresSQL. I'm a newbie.

2014-02-14 Thread Віталій Лисенко
As work in the Postgres Sql in Django. Give a link to the desired site or explain in detail. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Creating database in windows

2014-02-14 Thread Nicholas Perez
Hello. I am currently using Django version 1.6.2 trying to learn to use Geodjango on a windows machine. My issue is that i have followed Geodjango installation for windows to the letter(everything is installed in the default directory). my geodjango folder is on my desktop As i follow the

Re: Newbie Question - Where to store application constants?

2014-02-14 Thread Mark Phillips
Thanks! Very clear and helpful. Mark On Feb 14, 2014 9:54 AM, "Bill Freeman" wrote: > It depends on the complexity of the issue. > > The price of gold does fluctuate. On the grounds that I might want to > change it more often than I would want to ssh in, edit a file, and

Re: I badly speak in English

2014-02-14 Thread carlos
Hi maybe use http://south.readthedocs.org/en/latest/ for migrate your schema! Cheers On Fri, Feb 14, 2014 at 10:50 AM, Віталій Лисенко wrote: > I'm a newbie. I have question: > How to upgrade the database, if introduced in her structural remove > > -- > You received

Aptana Studio 3 + PyDev + Git

2014-02-14 Thread Віталій Лисенко
> > I badly speak and write English, but i have question: 1. describe the main advantages of development in Aptana Studio 3 Django proects 2.write a detailed ìnfstrukcìû of how to lay out a project on github, I have nothing -- You received this message because you are subscribed to

I badly speak in English

2014-02-14 Thread Віталій Лисенко
I'm a newbie. I have question: How to upgrade the database, if introduced in her structural remove -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Newbie Question - Where to store application constants?

2014-02-14 Thread Bill Freeman
It depends on the complexity of the issue. The price of gold does fluctuate. On the grounds that I might want to change it more often than I would want to ssh in, edit a file, and restart, I would tend to put price of gold in the database, that is, in a model of which there may only be one

Re: Not pure Django. Chrome versus Safari discrepancy

2014-02-14 Thread C. Kirby
You can try using the @never_cache decorator on the view that captures the page view from django.views.decorators.cache import never_cache That should instruct safari not to cache the page. Sometimes that won't work due to how browsers respect the headers. You can also try the decorator:

Newbie Question - Where to store application constants?

2014-02-14 Thread Mark Phillips
Where should one put application specific constants - those that change sometimes(1) and those that never change? For example, I am creating a simple inventory application for my mother's estate. Several quotes for her jewelry are based on the weight of the jewelry and the current price of gold.

Admin inline foreignkey queryset not being cached

2014-02-14 Thread john . parton
I have the Django admin configured with a TabularInline, and the inline model has a ForeignKey reference to a third model. Every row in the inline generates a new query to fetch all of the instances of the third model. Here's an overview of my code: # models.py > from django.db import models >

Re: List of default Django tags that are "mid-block" like else

2014-02-14 Thread Tom Evans
On Fri, Feb 14, 2014 at 1:08 PM, Ram Rachum wrote: > Thanks! > > But empty and the various forloop don't concern me because they're {{ }} > rather than {% %}, they don't start a block. > > Anything else? > If you are truly interested, look at the source for

Digging Up Django Class-based Views

2014-02-14 Thread Leonardo Giordani
Hi all, the third issue of the small series "Digging Up Django Class-based Views" is out. This latest post is about form views. You find the whole series here http://lgiordani.github.io/blog/categories/django/ I hope you will find it interesting and useful. Cheers, Leo Leonardo Giordani

Re: List of default Django tags that are "mid-block" like else

2014-02-14 Thread Ram Rachum
Thanks! But empty and the various forloop don't concern me because they're {{ }} rather than {% %}, they don't start a block. Anything else? On Fri, Feb 14, 2014 at 12:19 AM, C. Kirby wrote: > Not sure if this is what you mean, but: > > for > --empty >

Not pure Django. Chrome versus Safari discrepancy

2014-02-14 Thread Andrew Taylor
Hi, I have been working my way through the tango with django tutorial, which I have to say I have found to be excellent. http://www.tangowithdjango.com/book/chapters/tango_too.html There is one section (above link) whereby you track the number of times a url has been clicked. This is done by

Re: is_valid

2014-02-14 Thread Jonathan Querubina
blank = True on the model field On Feb 14, 2014, at 8:53 AM, fabricio wrote: > how do i django not validate some fields > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop

Re: Login at the end of form wizard

2014-02-14 Thread parnigot
To work around the problem I'm now trying to include the login form as a step of the wizard view. But I've encountered another problem. How can i login the user after it completed the login step? Does WizardView have a method executed at the end of each step that I can override to do this?

is_valid

2014-02-14 Thread fabricio
how do i django not validate some fields -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send

error is_valid

2014-02-14 Thread fabricio
I have this model class Pedido(models.Model): idpedido = models.IntegerField(verbose_name=u'Código', primary_key=True,default=-1 , blank=True) idsys_point_cliente = models.CharField(max_length=60, default="-1") idempresa = models.CharField(max_length=60, default="-1") dtemissao

Re: FieldError, But Only In Production

2014-02-14 Thread Rich Jones
> are you using virtualenv? it's possible that mod_wsgi was executing > in a different environment than the test server. > >Or mod_wsgi is compiled for a different version of python and thus is >finding completely different libraries. Heh, it was neither of those things. No virtualenv on the

Re: FieldError, But Only In Production

2014-02-14 Thread Tom Evans
On Fri, Feb 14, 2014 at 12:38 AM, Javier Guerra Giraldez wrote: > On Thu, Feb 13, 2014 at 7:09 PM, Rich Jones wrote: >> We're good now. No idea what the hell was happening, but this works now. >> Humbling to realize how little I know about the ORM

Re: Login at the end of form wizard

2014-02-14 Thread parnigot
Thanks Thomas, I've replaced the SessionWizardView with a NamedUrlSessionWizard but it still doesn't work. I've tried to redirect the user after the login to the base url (the one without steps), to the last step and to the done step but the wizard always restart at the beginning or is empty.