Re: error with inspectdb using oracle (v0.95)

2006-09-14 Thread world_domination_kites
cx_Oracle seems to be DB-API compliant, no need to stuff about with those pesky oracle data-dictionary views. I did this: def get_table_description(cursor, table_name): "should return a DB-API cursor.description alike sequence" cursor.execute("SELECT * FROM %s WHERE 1=2" %

Has anyone run Django on a cpanel box (w/root access)

2006-09-14 Thread sean
Hi guys, I need to install a django app onto a client's cpanel box. I have root access and can install whatever's needed. But the trouble is that cpanel still uses Apache 1.3 (ugh). And to make matters worse, it uses Apache 1.3 without the mod_proxy module. I can't install Apache2 without

Re: putenv() argument 2 must be string, not list

2006-09-14 Thread Atayal
Fredrik Lundh wrote: > > possible explanation: > > http://code.djangoproject.com/ticket/1154 > > I am not entirely sure what a server side include is. I am not creating any shtml files, though. --~--~-~--~~~---~--~~ You received this message because you are

Re: Psyco & Database Stored Procedures / Prepared Statement

2006-09-14 Thread Jay Parlar
On 9/14/06, frooyo <[EMAIL PROTECTED]> wrote: > > I have two questions about Django. > > 1. Does anyone know if Pythons Psyco performance improver works with > django? http://psyco.sourceforge.net/ I'd be surprised. Psyco does best on heavy numeric operations. > > I'm not asking these

Re: sqlite

2006-09-14 Thread Malcolm Tredinnick
On Thu, 2006-09-14 at 19:59 -0500, James Bennett wrote: > On 9/14/06, Picio <[EMAIL PROTECTED]> wrote: > > Which version of sqlite django support? > > The Python module used by Django to connect to SQLite databases does > not support versions of SQLite older than 3.0. You are going to see aone

Re: Incorrect deletion of records in a relationship table

2006-09-14 Thread Russell Keith-Magee
On 9/15/06, Vizcayno <[EMAIL PROTECTED]> wrote: > But some steps before, Assuming I created the first five records only, > screen for creation of Carla will show: > Data2 ->: Carla > Data4 ->:Choice Maria, Jose or David (only 3 are shown in data4 > because of the Data3 field condition

Re: Psyco & Database Stored Procedures / Prepared Statement

2006-09-14 Thread James Bennett
On 9/14/06, frooyo <[EMAIL PROTECTED]> wrote: > 2. Does Django use prepared statements and/or create and use stored > procedures when interacting with a database? No, it does not. -- "May the forces of evil become confused on the way to your house." -- George Carlin

Re: django_settings_module

2006-09-14 Thread limodou
On 9/15/06, Picio <[EMAIL PROTECTED]> wrote: > > Hello, > If my project dir is /home/picio/blog > (where I have __init__.py, models and the other stuff) > what I have to set for DJANGO_SETTINGS_MODULE = ? > > Thanks. > Picio > There should be a file named settings.py, and this will automaticly

Re: sqlite

2006-09-14 Thread James Bennett
On 9/14/06, Picio <[EMAIL PROTECTED]> wrote: > Which version of sqlite django support? The Python module used by Django to connect to SQLite databases does not support versions of SQLite older than 3.0. -- "May the forces of evil become confused on the way to your house." -- George Carlin

Re: Incorrect deletion of records in a relationship table

2006-09-14 Thread Vizcayno
Russel: Thanks for your attention. I send you an example Assuming the model: class Tab1(models.Model): data1 = models.CharField(maxlength=10) data2 = models.CharField(maxlength=50) data3 = models.BooleanField(default=False) data4 = models.ManyToManyField('self', null=True,

Re: Incorrect deletion of records in a relationship table

2006-09-14 Thread Russell Keith-Magee
On 9/15/06, Vizcayno <[EMAIL PROTECTED]> wrote: > > I need to assume the symmetrical=True and at the same time keep the > condition limit_choices_to={'data3__exact': True}, however when, for > example, I modify data1 or data2 and the corresponding record has > data3=true and is related to another

django_settings_module

2006-09-14 Thread Picio
Hello, If my project dir is /home/picio/blog (where I have __init__.py, models and the other stuff) what I have to set for DJANGO_SETTINGS_MODULE = ? Thanks. Picio --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: django - fastcgi - flup

2006-09-14 Thread Picio
OK done it works well. I've tried also: python manage.py runfcgi help and It went well. Thanks a lot. Picio 2006/9/14, Ivan Sagalaev <[EMAIL PROTECTED]>: > > Picio wrote: > > Thanks Ivan, just done the install. > > Is there a quick way to verify it's ok or do I have just to finish to > > read

sqlite

2006-09-14 Thread Picio
Hello, reading the documentation I saw that django has support for sqlite3, does this means that I can use it (also) with sqlite2 version 2.8.16-1? In other words does Django support earlier versions of sqllite? If I pose thee wrong question, just in few word: Which version of sqlite django

Re: __str__ question

2006-09-14 Thread Ivan Sagalaev
Patrick J. Anderson wrote: > class ExchangeRate(models.Model): > company = ForeignKey(Company) > source = ForeignKey(Currency, related_name = 'source') > destination = ForeignKey(Currency, related_name = 'destination') > rate = FloatField(max_digits = 10, decimal_places = 2) >

Re: django - fastcgi - flup

2006-09-14 Thread Ivan Sagalaev
Picio wrote: > Thanks Ivan, just done the install. > Is there a quick way to verify it's ok or do I have just to finish to > read the doc at > http://www.djangoproject.com/documentation/fastcgi/ ? The usual thing for any python library: go to python prompt and run 'import flup'. If there are

Psyco & Database Stored Procedures / Prepared Statements

2006-09-14 Thread frooyo
I have two questions about Django. 1. Does anyone know if Pythons Psyco performance improver works with django? http://psyco.sourceforge.net/ 2. Does Django use prepared statements and/or create and use stored procedures when interacting with a database? I'm not asking these questions

__str__ question

2006-09-14 Thread Patrick J. Anderson
I'm not totally clear, perhaps it's a Python and not Django-specific question, but in my e-commerce app model, I have Currency and ExchangeRate classes: class Currency(models.Model): name = models.CharField(maxlength = 50) code = models.CharField(maxlength = 3) class Meta:

Resources and pointers

2006-09-14 Thread anil
i would like to find resources for these, pls give me pointers 1) USING webpy + ajax - 2) file uploads 3) better explanation of how to handle ENCODING utf 4) Caching techniques. 5) Geolocating. 7) Email + a mail queue. + Import email addressbooks 8) Ajax snipplets + webpy code. 9). Persistant

Re: django - fastcgi - flup

2006-09-14 Thread Picio
Thanks Ivan, just done the install. Is there a quick way to verify it's ok or do I have just to finish to read the doc at http://www.djangoproject.com/documentation/fastcgi/ ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: django - fastcgi - flup

2006-09-14 Thread Ivan Sagalaev
Picio wrote: > Hello, > I have a very cheap and small home webserver that uses lighttpd + fastcgi. > I've read http://www.djangoproject.com/documentation/fastcgi/ > but I don't understand how to install and use "flup". This is a Python library that you can get here:

django - fastcgi - flup

2006-09-14 Thread Picio
Hello, I have a very cheap and small home webserver that uses lighttpd + fastcgi. I've read http://www.djangoproject.com/documentation/fastcgi/ but I don't understand how to install and use "flup". Can someone point me in the right direction or provide me a little guide? Of course django is

RE: Admin app (one class) hanging Firefox on Mac OS X

2006-09-14 Thread Hancock, David \(DHANCOCK\)
Indeed, resizing the window wakes it back up. Many thanks for the tip--lets me keep using FF on the Mac! Sorry for the off-topic post--the only place I'd see this was in Django admin. Cheers! -- David Hancock | [EMAIL PROTECTED] | 410-266-4384 -Original Message- From:

Re: Boolean logic in .filter on QuerySets

2006-09-14 Thread James Bennett
On 9/14/06, Hawkeye <[EMAIL PROTECTED]> wrote: > Obviously that syntax isn't valid, but does something exist to allow > that sort of logic? http://www.djangoproject.com/documentation/db_api/#complex-lookups-with-q-objects -- "May the forces of evil become confused on the way to your house."

Boolean logic in .filter on QuerySets

2006-09-14 Thread Hawkeye
Is is possible to make use of boolean logic in QuerySet filters? Say I have two dates: my_model.foo_date my_model.bar_date I'd like to do my_model.objects.filter(foo_date__gt=somedate OR bar_date__gt=somedate) Obviously that syntax isn't valid, but does something exist to allow that sort of

Re: installing django an an alien server

2006-09-14 Thread Frankie Robertson
On 14/09/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > On 14-Sep-06, at 2:56 PM, [EMAIL PROTECTED] wrote: > > > As i'm still rather new to this django stuff, here is my simple > > question: > > Is it possible to install django on an alien server? > > as long as you have shell access you

Re: Admin app (one class) hanging Firefox on Mac OS X

2006-09-14 Thread robbie
Hancock, David (DHANCOCK) wrote: > The hang scenario is loading the add or change page for a Trip, click in a > textbox, and that particular Window of Firefox goes dead (mouse pointer > doesn¹t change at all, no clicks have any effect). Other windows of Firefox > are unaffected, but all tabs in

Re: template and special character problem

2006-09-14 Thread Jorge Gajon
Hi, On 9/12/06, Phil <[EMAIL PROTECTED]> wrote: > When I render index.html, the special character from base.html are > rendered normaly but the ones from index.html are shown as '?'. Make sure that the editor you are using is writing your files to disk with the correct encoding.

Incorrect deletion of records in a relationship table

2006-09-14 Thread Vizcayno
Hello: I have next model: class Tab1(models.Model): data1 = models.CharField(maxlength=1) data2 = models.CharField(maxlength=5) data3 = models.BooleanField(default=False) data4 = models.ManyToManyField('self', null=True, blank=True, filter_interface=models.HORIZONTAL,

Re: Access to models in validators

2006-09-14 Thread Jay Parlar
On 9/14/06, Marcin Jurczuk <[EMAIL PROTECTED]> wrote: > > Hello, > I'm trying to make my own validator which require access to models: > class Network(Model): > city = > CharField('Miejscowosc',maxlength=128,default='Bialystok') > description = CharField('Opis',maxlength=128) >

Re: generic views and forms

2006-09-14 Thread Guillermo Fernandez Castellanos
Cheers, > It's not totally clear to me why i would want to go the way of creating code > & using manipulators > if all that can be done automatically :) It can indeed be automatically done for an object creation. But what about sending a mail? Or what about a form involving two models? Or made

Re: Strange behaviour of django webapp on dreamhost

2006-09-14 Thread Jay Parlar
I highly recommend you subscribe to Dreamhost's status RSS feed (http://www.dreamhoststatus.com/feed/). They've been having some well documented network and system issues recently, and have recently done a bunch of *massive* hardware swaps/upgrades to solve the problems. I was seeing horrible

generic views and forms

2006-09-14 Thread Benedict Verheyen
Hi,in the "docs forms, fields, and manipulators" documentation,it's stated that you can't have the forms automatically created so you need to createyour own forms.In there there's an example that deals with a view & manipulators and a template. However, if you use

Admin app (one class) hanging Firefox on Mac OS X

2006-09-14 Thread Hancock, David (DHANCOCK)
Title: Admin app (one class) hanging Firefox on Mac OS X Possibly off-topic, sorry.  I have a model that reliably hangs Firefox on Mac OS X (but not Safari on Mac, not IE on Windows, not Firefox on Windows). The hang scenario is loading the add or change page for a Trip, click in a textbox, and

Re: syncdb without prompt

2006-09-14 Thread Henhiskan
Ok Russ, I'll try with SVN version. Thanks for all -- Richard Rossel Valparaiso, Chile --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Re: syncdb without prompt

2006-09-14 Thread Russell Keith-Magee
On 9/14/06, Henhiskan <[EMAIL PROTECTED]> wrote: > > Hi Magee, > That was what I thought at the begining, but I read the option > --noinput in 0.95 documentation. Ah - it looks like we might need to branch the documentation for v0.95 (in the same way we did for v0.91 and v0.90). Apologies for

RE: OS X install problem: No module named django.core.management

2006-09-14 Thread Fast, Adam
Thank you, that was the solution. site-packages/ was in the path, but I added site-packages/django and now everything's working great. Adam -Original Message- From: django-users@googlegroups.com on behalf of James Bennett Sent: Thu 9/14/2006 12:45 AM To: django-users@googlegroups.com

Re: Re: Many-to-many and Forms

2006-09-14 Thread Russell Keith-Magee
On 9/14/06, Gniss <[EMAIL PROTECTED]> wrote: > else: > errors = {} > new_data = specimen.__dict__ This last line is the problem. If you replace it with: new_data = manipulator.flatten_data() you should get the preselected items shown on the select widget. Having a

Re: syncdb without prompt

2006-09-14 Thread Russell Keith-Magee
On 9/14/06, Henhiskan <[EMAIL PROTECTED]> wrote: > > Hi fellows, > > How can I run manage.py syncdb without ask me for a user admin. > I try with manage.py syncdb --noinput but didn't work. Hi Richard I just tried this; both manage.py syncdb --noinput manage.py --noinput syncdb work fine for

Re: putenv() argument 2 must be string, not list

2006-09-14 Thread Fredrik Lundh
"Atayal" <[EMAIL PROTECTED]> wrote: > When I open my browser for http://192.168.0.22/photoalbum/helloworld/ > > I run into the following error message: > TypeError: putenv() argument 2 must be string, not list > === > > I am on Debian,

Access to models in validators

2006-09-14 Thread Marcin Jurczuk
Hello, I'm trying to make my own validator which require access to models: class Network(Model): city = CharField('Miejscowosc',maxlength=128,default='Bialystok') description = CharField('Opis',maxlength=128) network_ip = IPAddressField(unique=True) network_prefix =

Re: Mac vs. PC for Django work.

2006-09-14 Thread spacedman
I use Windows at home for video and audio editing, and getting Django things to work on there can be annying at times - its usually file paths to python, and things like #!/bin/env and all that, and whether you run from cygwin or DOS shell. Aaargh, the horror. I wrote my poker blog at home on

Re: Request for 'transaction' disambiguation

2006-09-14 Thread Hawkeye
Yeah... I added a comment to the docs, but "default-storage-engine=innodb" is the way that I configured it, and it works. Thanks for the feedback though. --Ben --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

putenv() argument 2 must be string, not list

2006-09-14 Thread Atayal
I am new to Django. I have done a new project called photoalbum in the DocumentRoot directory and created a helloworld.py in the photoalbum directory, and add a following line in urls.py (r'^helloworld/', 'helloworld.index') When I open my browser for

Re: Comments framework

2006-09-14 Thread Guillermo Fernandez Castellanos
Hi, Thanks for all your answers. I have found them all useful. I am studying right now the code and the Jeff Lost-Theories code (and will look fo other examples in other projects). It is indeed a very helpful example! I will try to write a bit about what I find. Baxter, concerning the Karma

Re: finnish translation

2006-09-14 Thread Kenneth Gonsalves
On 14-Sep-06, at 3:57 PM, Jyrki Pulliainen wrote: >> hi, >> i find that django doesnt seem to have finnish. Is anyone working on >> it? If not I will have to get it done. > > I'd be interested to review it as soon as you get your hands on it. > Perhaps I could contribute some time to it, but I

Re: finnish translation

2006-09-14 Thread Jyrki Pulliainen
On 9/14/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > hi, > i find that django doesnt seem to have finnish. Is anyone working on > it? If not I will have to get it done. I'd be interested to review it as soon as you get your hands on it. Perhaps I could contribute some time to it, but I

finnish translation

2006-09-14 Thread Kenneth Gonsalves
hi, i find that django doesnt seem to have finnish. Is anyone working on it? If not I will have to get it done. -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received this message because you are

Re: installing django an an alien server

2006-09-14 Thread Kenneth Gonsalves
On 14-Sep-06, at 2:56 PM, [EMAIL PROTECTED] wrote: > As i'm still rather new to this django stuff, here is my simple > question: > Is it possible to install django on an alien server? as long as you have shell access you can do so -- regards kg http://lawgon.livejournal.com

installing django an an alien server

2006-09-14 Thread vm
As i'm still rather new to this django stuff, here is my simple question: Is it possible to install django on an alien server? Alien in the meaning of having it hosted by a provider. Similar to having mambo or phpbbs or what have you in php flavored systems. thanks! Floris van Manen

Re: Strange behaviour of django webapp on dreamhost

2006-09-14 Thread Lachlan Cannon
Dreamhost has come up a fair few times for funkiness issues, with Django. Personally, I moved my business web site (still coming) to webfaction, and that's where I get my clients hosted too. The support is excellent and understands django, and there haven't been flakiness issues. Dreamhost is

Re: stripping html of tags

2006-09-14 Thread a
i dont understand patches i ll appreciate if you can send me the html file thanks SmileyChris wrote: > How about slicing to 1000 (or however much you want to be safe that > you'll get 200 of non-tags), then strip, then slice down to 200. > > For a slightly different approach there is a patch I

Re: is not JSON serializable

2006-09-14 Thread Michael Samoylov
The real solution and patch: http://code.djangoproject.com/ticket/2727/ --~--~-~--~~~---~--~~ 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

Re: Mac vs. PC for Django work.

2006-09-14 Thread Kenneth Gonsalves
On 14-Sep-06, at 1:48 PM, brian corrigan wrote: > The only problem I came across with the Mac (iBook) was that there is > no c compiler installed. You can download xcode tools it is there on the install CD, but not in the default install -- regards kg http://lawgon.livejournal.com

Strange behaviour of django webapp on dreamhost

2006-09-14 Thread Marco Pantaleoni
Hello! We have a simple web application hosted on dreamhost.com. Our customer has started complaining about some intermittent problems. This happens most of the time between 9am - 11am PDT. From the error e-mails received I see that the server raises a ViewDoesNotExist exception, but with

Re: Mac vs. PC for Django work.

2006-09-14 Thread Roodie
Fortunately the xcode tools is on the install DVD for the newer OSX versions. > > The only problem I came across with the Mac (iBook) was that there is > no c compiler installed. You can download xcode tools (I think) from > the apple developer site which will give you gcc. The problem is

Re: Mac vs. PC for Django work.

2006-09-14 Thread Johannes Beigel
brian corrigan schrieb: > The only problem I came across with the Mac (iBook) was that there is > no c compiler installed. You can download xcode tools (I think) from > the apple developer site which will give you gcc. The problem is that > xcode is about a 1GB (latest

Re: Mac vs. PC for Django work.

2006-09-14 Thread brian corrigan
The only problem I came across with the Mac (iBook) was that there is no c compiler installed. You can download xcode tools (I think) from the apple developer site which will give you gcc. The problem is that xcode is about a 1GB (latest realease). Takes a while to download. Other than that

Re: Mac vs. PC for Django work.

2006-09-14 Thread Kenneth Gonsalves
On 13-Sep-06, at 8:51 PM, Eric Walstad wrote: > was that there were some differences in the capabilities of the Mac > Python do you have to use Mac Python? Cant you install the standard python like on other BSDs? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/