Re: Understanding virtual environment paths

2012-11-21 Thread André Dieb
The virtual environment is like a sandbox that has its own python executable and its own python libraries. Your .db file is perfectly accessible from inside the env. On Wed, Nov 21, 2012 at 9:30 PM, Luisa Beck wrote: > I have a question about virtual environments: > > Say I've activated a virtu

Re: from django.contrib.admin.models import User

2012-11-06 Thread André Dieb
On Tue, Nov 6, 2012 at 8:55 AM, André Dieb wrote: > Em segunda-feira, 5 de novembro de 2012, Russell Keith-Magee escreveu: > > >> On Mon, Nov 5, 2012 at 7:50 PM, André Dieb wrote: >> >>> From what I see on django's source code (dev)

Re: from django.contrib.admin.models import User

2012-11-06 Thread André Dieb
Em segunda-feira, 5 de novembro de 2012, Russell Keith-Magee escreveu: > > On Mon, Nov 5, 2012 at 7:50 PM, André Dieb > > > wrote: > >> From what I see on django's source code (dev), there used to be an import >> of django.contrib.auth.models.User inside dj

Re: from django.contrib.admin.models import User

2012-11-05 Thread André Dieb
>From what I see on django's source code (dev), there used to be an import of django.contrib.auth.models.User inside django.contrib.admin.models, which means the answer to your question may be: there was no difference. Though, probably best to use contrib.auth on any older version. On Mon, Nov 5

Re: Reverse and kwargs...

2012-10-29 Thread André Dieb
On Mon, Oct 29, 2012 at 8:11 PM, Lachlan Musicman wrote: > Hi, > > I'm struggling to get the syntax right for a url reverse function. > > I have a form that asks for a Model type (ChoiceField with strings) > and a year (CharField). > > The logic then if/elifs the ChoiceField and then redirects to