Re: defaults in sql (postgres)

2007-10-23 Thread Derek Anderson
ah, ok. danke. Jacob Kaplan-Moss wrote: > On 10/23/07, Derek Anderson <[EMAIL PROTECTED]> wrote: >> are column defaults not supposed to be set by django under postgres? > > Django doesn't set defaults in the database at all. > > The basic reason is that too many defaults simply couldn't be > r

Re: defaults in sql (postgres)

2007-10-23 Thread Derek Anderson
i had thought they werebut it appears i am wrong. may i ask the core devs: why? derek Yuri Baburov wrote: > 2007/10/24, Derek Anderson <[EMAIL PROTECTED]>: >> are column defaults not supposed to be set by django under postgres? > yes, correct > defaults are never set by django for postgre

Re: defaults in sql (postgres)

2007-10-23 Thread Jacob Kaplan-Moss
On 10/23/07, Derek Anderson <[EMAIL PROTECTED]> wrote: > are column defaults not supposed to be set by django under postgres? Django doesn't set defaults in the database at all. The basic reason is that too many defaults simply couldn't be represented in a database -- especially those oriented a

Re: defaults in sql (postgres)

2007-10-23 Thread Yuri Baburov
2007/10/24, Derek Anderson <[EMAIL PROTECTED]>: > > are column defaults not supposed to be set by django under postgres? yes, correct defaults are never set by django for postgres are they set for other databases? don't know why it's so. > see: > > $ ./manage.py sql auth > BEGIN; > [...] > CREATE

Re: Calling All Django Developers !

2007-10-23 Thread Andrew Durdin
On 10/23/07, Nis Jørgensen <[EMAIL PROTECTED]> wrote: > > Siliconbits skrev: > > We are currently looking for Django developers to join us on a > > freelance basis. Please take this discussion to the django-users list. The django-developers list is for discussion of the development of django its

defaults in sql (postgres)

2007-10-23 Thread Derek Anderson
are column defaults not supposed to be set by django under postgres? see: $ ./manage.py sql auth BEGIN; [...] CREATE TABLE "auth_user" ( "id" serial NOT NULL PRIMARY KEY, "username" varchar(30) NOT NULL UNIQUE, "first_name" varchar(30) NOT NULL, "last_name" varchar(30) NOT NU

Re: Calling All Django Developers !

2007-10-23 Thread Nis Jørgensen
Siliconbits skrev: > We are currently looking for Django developers to join us on a > freelance basis. > > Location is irrelevant as long as you have a fast and reliable > Internet access. > > You will be working from home, so you should be able to work > independently, but also be able to demonst

Re: FileField question

2007-10-23 Thread Robert Coup
On 23/10/2007, Marty Alchin <[EMAIL PROTECTED]> wrote: > > In response to some recent questions regarding FileField usage, I > thought about including a way to format the filename based on details > from the model instance itself. It's looking like it' be best to add > an argument to FileField, ca

Re: FileField question

2007-10-23 Thread Marty Alchin
On 10/23/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > Currently, get_filename uses os.path.basename, and after filestorage > > goes in, get_available_filename will do the same. This means that any > > directory information is lost, unless it's preserved separately. It's > > possible, but

Re: #2539 - Namespacing template tags and libraries

2007-10-23 Thread Andrew Durdin
On 10/23/07, Bruce Kroeze <[EMAIL PROTECTED]> wrote: > Why couldn't both coexist, but be mutually exclusive? > > {% load firstapp.library as mylib %} > {% load thislib thatlib theotherlib %} They could; it would certainly be convenient, and a simple change to implement, but at the expense of a s

Re: FileField question

2007-10-23 Thread Malcolm Tredinnick
On Tue, 2007-10-23 at 08:49 -0400, Marty Alchin wrote: > In response to some recent questions regarding FileField usage, I > thought about including a way to format the filename based on details > from the model instance itself. It's looking like it' be best to add > an argument to FileField, call

Re: Documentation restructuring

2007-10-23 Thread Nis Jørgensen
Kenneth Gonsalves skrev: > one thing I would like to see is: table of contents available on all > pages. Now I have to go to 'documentation' and click on dbiapi. Then, > if I want to go to 'creating models' I go back to 'documentation' and > then to creating models. I bookmark these, but am

FileField question

2007-10-23 Thread Marty Alchin
In response to some recent questions regarding FileField usage, I thought about including a way to format the filename based on details from the model instance itself. It's looking like it' be best to add an argument to FileField, called 'filename' perhaps, which takes a format string, like so (pa

Calling All Django Developers !

2007-10-23 Thread Siliconbits
We are currently looking for Django developers to join us on a freelance basis. Location is irrelevant as long as you have a fast and reliable Internet access. You will be working from home, so you should be able to work independently, but also be able to demonstrate effective people and time ma