Re: Model Inheritance Update?

2006-10-15 Thread Malcolm Tredinnick
On Sun, 2006-10-15 at 21:52 -0500, Edward A. Muller wrote: > Just looking to see if there is any recent news on the Model Inheritance > project/code? Not really and no news is not good news on this one. I've been the one dragging us down here. Sorry, I suck. Some jobs and a couple of other non-

help with sessions

2006-10-15 Thread anil
I tried creating sessions for each app and then did htis code def session_mw(app): sessionStore = DiskSessionStore(storeDir="%s/sessions/" % os.getcwd(), timeout=5) sessionStore= sessionStore.createSession() return SessionMiddleware(sessionStore, app) def initsession(session): ses

Model Inheritance Update?

2006-10-15 Thread Edward A. Muller
Just looking to see if there is any recent news on the Model Inheritance project/code? -- Edward Muller Manager - Interlix, LLC 417.862.0573 http://interlix.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: SyncDB INT -> BIGINT

2006-10-15 Thread Malcolm Tredinnick
On Sun, 2006-10-15 at 12:45 -0700, MindsX wrote: > Hi all, > > Anyone got a quick hack to turn _all_ INTs in SQL generated code to > BIGINT? > > either in the models or running code accross the source > > I grep'd the db directory - > > backends/ado_mssql/creation.py:'PositiveIntegerFi

Re: legacy db import problems

2006-10-15 Thread Malcolm Tredinnick
On Sun, 2006-10-15 at 09:52 +, a wrote: > I m trying to import these legacy databases into the dbadmin system of > django > thanks for any help > > CREATE TABLE choices > ( > id serial NOT NULL, > poll_id int4 NOT NULL, > choice text, > vote int4 NOT NULL DEFAULT 0, > created timest

Re: doctests and type(_) is bool ?

2006-10-15 Thread Malcolm Tredinnick
On Sat, 2006-10-14 at 21:30 +0200, [EMAIL PROTECTED] wrote: > Hi all, > > I'm currently writing some doctests for a model and got the following error > message which I don't understand: > > Failed example: > print q > Exception raised: > Traceback (most recent call last): > File "

Re: admin interface for legacy database

2006-10-15 Thread Malcolm Tredinnick
On Sat, 2006-10-14 at 04:47 -0700, Ewout ter Haar wrote: > I am trying to make use of the django admin, to use with a database > which is normally managed by another (PHP) application. I ran > inspectdb, and after tweaking the models a little bit, it works for > basic fields like InterFields, Char

Re: [django-users] suggestion

2006-10-15 Thread Don Arbow
On Oct 15, 2006, at 3:18 PM, Marcus Mendes wrote: > > Hello all, > what about if we put "[django-users]" (or something like this) string > at the begining of subject of our e-mails? It will be more easy to > identify all e-mails tha came from that list. Why clutter the subject lines with redund

Re: [django-users] suggestion

2006-10-15 Thread James Bennett
On 10/15/06, Marcus Mendes <[EMAIL PROTECTED]> wrote: > what about if we put "[django-users]" (or something like this) string > at the begining of subject of our e-mails? It will be more easy to > identify all e-mails tha came from that list. Big -1. I'm not sure that would really make it any "

Re: reading RSS feeds

2006-10-15 Thread gabor
code enquest wrote: > I need to do the following with Django. > I need to read diffrent RSS or Atom feeds And print the latest on a page > according date. > > How would I do this with Django? What would be the best practice to > achieve this? > there is nothing specific regarding django... y

[django-users] suggestion

2006-10-15 Thread Marcus Mendes
Hello all, what about if we put "[django-users]" (or something like this) string at the begining of subject of our e-mails? It will be more easy to identify all e-mails tha came from that list. Thanks. Marcus -- Marcus Mendes "A coragem é a forma de todas as virtudes em ponto de prova" C.S.Lew

Returning an average from a Related Field.

2006-10-15 Thread MerMer
I have two Models. 1. Product 2. Review - There can be many reviews for any product (one -to many relationship) One of the fields of Review is "Rating". This holds an integer between 1 and 5. I want to display a list of Products, and display the average review rating for each product. I c

Re: Hosting on GoDaddy?

2006-10-15 Thread iain duncan
On Sun, 2006-15-10 at 08:20 +, [EMAIL PROTECTED] wrote: > Ian, > > First off congrats on the project and your good sense to do it in > Django. :) I've not used Python CGI but I presume it follows the > standard cgi model of having to launch a new process for each request. > This will craw

Re: django embedded web server

2006-10-15 Thread Istvan Albert
Russell Keith-Magee wrote: > > I'm sure it could, but I'm almost certain it wont. The only problem with this is that some kind of sites cannot be tested with the development server. If the site streams back the output and incrementally builds it then it cannot for example read in the css even th

SyncDB INT -> BIGINT

2006-10-15 Thread MindsX
Hi all, Anyone got a quick hack to turn _all_ INTs in SQL generated code to BIGINT? either in the models or running code accross the source I grep'd the db directory - backends/ado_mssql/creation.py:'PositiveIntegerField': 'int CONSTRAINT [CK_int_pos_%(column)s] CHECK ([%(column)s] > 0

Re: Extending the user model

2006-10-15 Thread Pitmairen
I have extended the user model like this, but when i edit something in the admin, the userprofile associated with that user gets deleted. Anyone know how i can prevent this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

reading RSS feeds

2006-10-15 Thread code enquest
I need to do the following with Django. I need to read diffrent RSS or Atom feeds And print the latest on a page according date. How would I do this with Django? What would be the best practice to achieve this? Enquest --~--~-~--~~~---~--~~ You received this me

Re: When to

2006-10-15 Thread Frankie Robertson
On 13/10/06, MerMer <[EMAIL PROTECTED]> wrote: > > I can see that I could use inclusion tags or template tags. I've read > the documentation however, I'm still unclear when you would use one > over the other. > > What would be the appropriate use case for a template tag versus an > inclusion tag

Pre-validation form data fixup

2006-10-15 Thread Mikhail Gusarov
Hello, I'd like to propose the following change to Model interface: optional step to fixup the data got from the form before validation. This may easily be done in custom views, but there is no proper way to do it in admin interface. This fixup should operate on whole form data, exactly as valida

Re: translation

2006-10-15 Thread Vittorino Parenti
[EMAIL PROTECTED] wrote: >> i would like translate permissions in "insert group" and "insert user" >> pages. >> how can i do? >> > > Django's Internationalization features are discussed here: > http://www.djangoproject.com/documentation/i18n/ > > Hope this helps! > > > > > I saw that there

Re: Mad SELECT with the admin view.

2006-10-15 Thread Gabriel Gunderson
On 10/15/06, Karen Tracey <[EMAIL PROTECTED]> wrote: > Yah, that does look bizarre. I have no idea what is going on but am a > sucker for puzzles so tried to make some sense of the select. My > feeling is the problem isn't in the StagedOrder class that you posted > but rather one of the ones get

Re: Field to use for a Duration?

2006-10-15 Thread RajeshD
Hi Oli, TimeField seems to be an ideal choice for this purpose. If your only concern is how it displays in the admin "list view", you can take care of that with a custom function in your model. Something like this: def get_duration(self): return self.duration.strftime('%-M:%S') get_dura

[Q] DB filter for inet?

2006-10-15 Thread Sneaky56
Hello there, Getting started with Django (v. 0.95 and postgres), I'm trying to make a first application, and I encounter some problems: I have a database with 2 tables: addresses_network and addresses_ip, both having among others a column "ip_addr" (of type inet, thank you postgres). I want the

Re: Hosting on GoDaddy?

2006-10-15 Thread joebaich
See http://forums.site5.com/showthread.php?t=10236 which deals with installing Django on the Python CGI environment at the hosting company Site 5 (Django Preferred Host). It involves installing Virtual Python and other measures. If you feel that you are up to it, you could refer GoDaddy to the thr

Re: translation

2006-10-15 Thread [EMAIL PROTECTED]
> i would like translate permissions in "insert group" and "insert user" > pages. > how can i do? Django's Internationalization features are discussed here: http://www.djangoproject.com/documentation/i18n/ Hope this helps! --~--~-~--~~~---~--~~ You received this

Re: Adding to a Model while operational?

2006-10-15 Thread [EMAIL PROTECTED]
Thanks a lot, Alex. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTE

Re: Hosting on GoDaddy?

2006-10-15 Thread [EMAIL PROTECTED]
On this subject - what hosting environments would people reccomend? I know about Gypsy hosting but they seem to have suspended signups with no indication as to when they will be reopening. On Oct 15, 9:20 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Ian, > > First off congrats on the

Field to use for a Duration?

2006-10-15 Thread [EMAIL PROTECTED]
Hey Guys, I am developing a site for a band in Django, and obviously it wants to have some music on it. I have a model called Track I want to add a field which specifies the duration of said track. How would I do this? Is there a special field for this which I have missed? At the moment, I am u

legacy db import problems

2006-10-15 Thread a
I m trying to import these legacy databases into the dbadmin system of django thanks for any help CREATE TABLE choices ( id serial NOT NULL, poll_id int4 NOT NULL, choice text, vote int4 NOT NULL DEFAULT 0, created timestamp DEFAULT now(), CONSTRAINT choices_pkey PRIMARY KEY (id), C

Re: Mad SELECT with the admin view.

2006-10-15 Thread Karen Tracey
Yah, that does look bizarre. I have no idea what is going on but am a sucker for puzzles so tried to make some sense of the select. My feeling is the problem isn't in the StagedOrder class that you posted but rather one of the ones getting pulled in as a result of the StagingArea ForeignKey. Th

Re: Hosting on GoDaddy?

2006-10-15 Thread [EMAIL PROTECTED]
Ian, First off congrats on the project and your good sense to do it in Django. :) I've not used Python CGI but I presume it follows the standard cgi model of having to launch a new process for each request. This will crawl under Django if that's the case. You're gonna need something that allo

translation

2006-10-15 Thread Vittorino Parenti
hi, i would like translate permissions in "insert group" and "insert user" pages. how can i do? thanks, -- Vittorino Parenti Thunder Systems Srl Tel. 0258018011 Fax 0258018012 www.thundersystems.it Riservatezza In ottemperanza al D.L. n. 196 del 30/6/2003 in materia di protezione d

Re: Adding to a Model while operational?

2006-10-15 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] написав: > Thanks a lot for your response? How might I do the ALTER TABLE - I'm > not very familiar with SQL! Probably it would be best for you, if you learn SQL, at least to the level you can do 'alter'. basically its simple: 1. execute ./manage.py sql (see plain SQL at t

Re: settings

2006-10-15 Thread [EMAIL PROTECTED]
devel - Fashion Content написав: > EnvironmentError: Could not import settings 'fcsite.settings' (Is it on > sys.path? OK I often get this error even when trying to configure it in mod_python. Exactly to fix that, I add 2 paths to my PYTHONPATH variable: 1. 1st is Path to project itself 2. 2nd

Re: adding related objects

2006-10-15 Thread Joe Pellizzer
con che versione d django stai lavorando ? joe pellizzer yerma srl Il giorno 14/ott/06, alle ore 22:33, Vittorino Parenti ha scritto: > > Hello world, > these my models: > > *class* Anagrafica (models.Model): > /## generic fields/ > dateCreate = models.DateTimeField(auto_now_add=True,

Re: Adding to a Model while operational?

2006-10-15 Thread [EMAIL PROTECTED]
Thanks a lot for your response? How might I do the ALTER TABLE - I'm not very familiar with SQL! On Oct 14, 10:00 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 10/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > If I do this and go to edit an existing entry then django just throws