Maybe the easiest tutorial

2005-12-26 Thread limodou
I'v made a easiest and simplest tutorial, just want the study work can be from scratch but not a big one, I hope this will be helpful. This tutorial will only aim to create a "Hello, django!" page, there will be no more things except it. So there is almost nothings in it, but it can be run in djan

Re: Is Django right now me?

2005-12-26 Thread limodou
2005/12/27, Tom Tobin <[EMAIL PROTECTED]>: > > On 12/27/05, reiale <[EMAIL PROTECTED]> wrote: > > > > Does Django sound right for this project? > > I don't know; I couldn't tell which of the dozen of your > (accidentally, I assume) copy-and-pasted sections of your email to > read. :-p > maybe it

Re: Is Django right now me?

2005-12-26 Thread Tom Tobin
On 12/27/05, reiale <[EMAIL PROTECTED]> wrote: > > Does Django sound right for this project? I don't know; I couldn't tell which of the dozen of your (accidentally, I assume) copy-and-pasted sections of your email to read. :-p

Is Django right now me?

2005-12-26 Thread reiale
I am starting a new project in Python and have set out to create some high level metadata that maps some XML like this: 1 2

Re: Upgrading models...

2005-12-26 Thread limodou
2005/12/27, James Bennett <[EMAIL PROTECTED]>: > > On 12/26/05, limodou <[EMAIL PROTECTED]> wrote: > > May be sqlite can do like that, but other databases can not just > > remove the database file. And this appoach will destroy all the > > tables, but what I want may be just a single app, not the

Re: Upgrading models...

2005-12-26 Thread James Bennett
On 12/26/05, limodou <[EMAIL PROTECTED]> wrote: > May be sqlite can do like that, but other databases can not just > remove the database file. And this appoach will destroy all the > tables, but what I want may be just a single app, not the whole > project. So if there is not a "reinstall"(or rein

Re: Upgrading models...

2005-12-26 Thread limodou
2005/12/27, James Bennett <[EMAIL PROTECTED]>: > > On 12/26/05, limodou <[EMAIL PROTECTED]> wrote: > > I suggest that there may be a admin command just like: django-admin.py > > reinstall app > > to do the things like: django-admin.py sqlreset appname | psql dbname > > > > I think this will be hel

Re: Upgrading models...

2005-12-26 Thread James Bennett
On 12/26/05, limodou <[EMAIL PROTECTED]> wrote: > I suggest that there may be a admin command just like: django-admin.py > reinstall app > to do the things like: django-admin.py sqlreset appname | psql dbname > > I think this will be helpful in developing period. I'd be against it, just because I

Re: Upgrading models...

2005-12-26 Thread limodou
2005/12/27, quentinsf <[EMAIL PROTECTED]>: > > There's also some stuff here: > > http://code.djangoproject.com/wiki/DocumentationSuggestions > I suggest that there may be a admin command just like: django-admin.py reinstall app to do the things like: django-admin.py sqlreset appname | psql dbname

Registered and unregistered users

2005-12-26 Thread quentinsf
I'm building a site where some users will be registered, and allowed to do lots of things, and some will be identified, and able to do fewer things, but not required to register (by which I mean not required to create a password etc - They will be invited to the site by others, and sent URLs by e

Re: Upgrading models...

2005-12-26 Thread quentinsf
There's also some stuff here: http://code.djangoproject.com/wiki/DocumentationSuggestions Quentin

Editing objects inline with admin, _manipulator_validate not used?

2005-12-26 Thread wietze van Winden
Hi,_manipulator_validate_ is not used in the admin interface when editing an object inline?Below the model being used.When Property is edited inline with Item, _manipulator_validate_value is not used.When Property is edited by itself, _manipulator_validate_value is used normaly.Wietze.class Item(me

Re: troubles with admin interface

2005-12-26 Thread Robert Wittams
[EMAIL PROTECTED] wrote: > Hi! > > After reading tutorial about Django, try to write simple app. App > contain only one model: > class PressureRecord(meta.Model): > record_date = meta.DateField() > record_time = meta.TimeField() > sys_press = meta.IntegerField() > dia_press = meta

Re: Translate db api in model

2005-12-26 Thread Andreas Stuhlmüller
> I get the following error. 'WorkOrder' object has not attribute > 'get_values'. Any ideas? Try this: def _pre_save(self): lastid = get_values(fields=['id'])[-1]['id'] self.wonum = 'WO-'+lastid+1 Andreas

Translate db api in model

2005-12-26 Thread Burhan
Hello: I'm having a problem trying to convert something that works great on the python interpreter into the model. I need to set a property of a model before it is saved. This propery is dependent on the primary key (serial) of the record. I tried first to do it using _post_save() but the i