Re: Types of projects Django is not well suited for?

2006-12-26 Thread Kenneth Gonsalves
On 27-Dec-06, at 3:32 AM, DavidA wrote: I don't know why everyone is giving you such a hard time. Sure, you could have phrased your question a little bit better, but that's true of many of the questions posted here. I guess no one got what they wanted for Christmas and they are taking it out

Re: FloatField bug ?

2006-12-26 Thread Aaron Jacobs
On 12/26/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: The issue of having "real" floats, in some sense still remains on the table because we have made an unfortunate naming choice: FloatField is a fixed-point (i.e. Python decimal) field, so what do we use for a real float field. I'm

Re: FloatField bug ?

2006-12-26 Thread ak
Well I think the name FloatField was choosen wrong then. As for me - if it sounds like "float", it must be compatible with python's float. And the worst thing is that it can't compare itself to python's float correctly. So may be just overload appropriate operators to make it behave more

Re: 'function' object has no attribute 'rindex'

2006-12-26 Thread Mike Tuller
I printed the book out, so what I have doesn't have the comments. I will download the development version and see what happens. Thanks for the help. On 12/26/06, Don Arbow <[EMAIL PROTECTED]> wrote: On Dec 26, 2006, at 7:46 PM, Adrian Holovaty wrote: > > On 12/26/06, Don Arbow <[EMAIL

edit_inline disables slug prepopulation?

2006-12-26 Thread ringemup
Hello -- I'm having a problem with a model that I have set to edit inline with a related model. Basically, the slugs are not auto-populating from the fields they're supposed to use. Here's the model in question: class Player(models.Model): name = models.CharField(maxlength=50,

Re: old plain db-api

2006-12-26 Thread Alagu Madhu
thanks --~--~-~--~~~---~--~~ 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 PROTECTED] For

Re: 'function' object has no attribute 'rindex'

2006-12-26 Thread Don Arbow
On Dec 26, 2006, at 7:46 PM, Adrian Holovaty wrote: On 12/26/06, Don Arbow <[EMAIL PROTECTED]> wrote: Read the comments in chapter 3 where it says "Let's edit this file to expose our current_datetime view:". According to people that have commented, there's a small bug where this code works

Re: 'function' object has no attribute 'rindex'

2006-12-26 Thread Adrian Holovaty
On 12/26/06, Mike Tuller <[EMAIL PROTECTED]> wrote: I downloaded the 0.95 version. I don't think it was the development version. Is that what I should be using? Hey Mike, Yeah, I'd suggest using the development version, as it's got a lot more cool stuff. We're pretty lax about releasing

Re: 'function' object has no attribute 'rindex'

2006-12-26 Thread Adrian Holovaty
On 12/26/06, Don Arbow <[EMAIL PROTECTED]> wrote: Read the comments in chapter 3 where it says "Let's edit this file to expose our current_datetime view:". According to people that have commented, there's a small bug where this code works with more recent versions of Django (such as from svn),

Re: 'function' object has no attribute 'rindex'

2006-12-26 Thread Don Arbow
On Dec 26, 2006, at 7:13 PM, Mike Tuller wrote: I seem to have everything installed correctly, and the python paths seem to be correct. I am going through the tutorial in the online book, and I run into a problem. When I run the first application http://127.0.0.1/now/ I get the following

Re: 'function' object has no attribute 'rindex'

2006-12-26 Thread Mike Tuller
I downloaded the 0.95 version. I don't think it was the development version. Is that what I should be using? On 12/26/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: On 12/26/06, Mike Tuller <[EMAIL PROTECTED]> wrote: > I seem to have everything installed correctly, and the python paths seem

Re: 'function' object has no attribute 'rindex'

2006-12-26 Thread Adrian Holovaty
On 12/26/06, Mike Tuller <[EMAIL PROTECTED]> wrote: I seem to have everything installed correctly, and the python paths seem to be correct. I am going through the tutorial in the online book, and I run into a problem. When I run the first application http://127.0.0.1/now/ I get the following

'function' object has no attribute 'rindex'

2006-12-26 Thread Mike Tuller
I seem to have everything installed correctly, and the python paths seem to be correct. I am going through the tutorial in the online book, and I run into a problem. When I run the first application http://127.0.0.1/now/ I get the following error: 'function' object has no attribute 'rindex' My

Re: Types of projects Django is not well suited for?

2006-12-26 Thread Kenneth Gonsalves
On 26-Dec-06, at 8:23 PM, DavidA wrote: There is, however, one important set of applications that I'm struggling with. I would call these "drill-down reporting" or "OLAP reporting" tools. The key problem is arbitrary grouping and aggregation of data in the database. The Django DB-API has no

Re: FloatField bug ?

2006-12-26 Thread Malcolm Tredinnick
On Tue, 2006-12-26 at 20:02 +, DavidA wrote: [...] I've run into this: Django's FloatField is not really a Python float. It creates a SQL numeric field in the DB. MySQLdb then maps the MySQL numeric field to a Python decimal.Decimal value so that it retains the full precision and range of

Re: Please comment on this small newforms sample

2006-12-26 Thread gordyt
Thanks Adrian and Alex! Adrian: gotta tell ya I really enjoy working with Django. We had a nice talk about it at our Python user's group meeting here in Houston on 12/19. One of the guys there is the author of the http://houstoncrimemaps.com/ site (pure Django!) --gordy

Re: Changing the session lifetime per user for Remember Me functionality

2006-12-26 Thread Joseph Heck
You can tweak out the sessions to enable the system to remember the person, or you could enable a custom mechanism in your code to store some identifying information in a cookie, and then check that cookie when they hit your site. We did a little of this to remember the user name that logged in

Re: pass extra_context to feeds?

2006-12-26 Thread ringemup
I'm trying to pass additional variables to the feed templates, if that makes any sense. Anything I try results in the template error I mentioned above. Or maybe I'm not understanding how to use the feeds properly. Thanks. --~--~-~--~~~---~--~~ You received

Changing the session lifetime per user for Remember Me functionality

2006-12-26 Thread Vadim Macagon
Hi, I'm trying to figure out how to implement the "Remember Me" check-box on my login page, oddly enough I haven't managed to find any code snippets for this seemingly common functionality. It seems to me that right now the only way to change the lifetime of sessions is by changing

Re: Please comment on this small newforms sample

2006-12-26 Thread Adrian Holovaty
On 12/23/06, gordyt <[EMAIL PROTECTED]> wrote: I'm very new to Django and have been experimenting with newforms. I would be most grateful if anyone would care to take a look at this small sample to see if I'm doing things in an efficient manner. It works great, but I want to make sure I'm not

Re: Types of projects Django is not well suited for?

2006-12-26 Thread DavidA
Saurabh, The other thing I was going to say was that what I really found helpful about Django was the community and how patient and helpful they were. And then I read the other replies to your question. I don't know why everyone is giving you such a hard time. Sure, you could have phrased your

<-- Heart Attacks -->

2006-12-26 Thread SONAM
*Heart Attacks* [image: Heart Attack Preventions] http://heart-attacks.50webs.com/ *Heart attack* * Heart Surgery* *Treatment* *Tests* * diagnosis For patients From medical authorities* ** *an Informative Spot* http://heart-attacks.50webs.com/

Re: Types of projects Django is not well suited for?

2006-12-26 Thread mamcxyz
Things Django is not good idea: - Building a PHP site. (But maybe can output the php code ??? But is not nice to do that!) - Building something like 3D Studio Max - Next version of Halo - A native Win32 aplication - Surely fail to build something like Skype. For that, you need the power of

Re: old plain db-api

2006-12-26 Thread Adrian Holovaty
On 12/26/06, Alagu Madhu <[EMAIL PROTECTED]> wrote: I like to use django + plain db-api(psycopg2).I'm looking for example or reference. Hi Alagu, Just use whatever code you need to use within your view function. There's really nothing to it. Example: def my_view(request): conn =

Re: Not all Apps Loaded in Admin Interface?

2006-12-26 Thread Jeremy Dunck
On 12/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi there, happened to me too. Was a typo in the model definition that wasn't bad enough to cause Python to choke but would make django silently ignore the app in the admin interface. ... which was? A (paren) intended to be a

>>> Download Free Windows XP <<

2006-12-26 Thread ANJLI
Free Windows XP [image: Free Windows XP] *Download here * http://download-2.50webs.com/download/free_windows_XP_download/ ANJLI -- Sarah Singh -- Sarah Singh

Re: FloatField bug ?

2006-12-26 Thread DavidA
ak wrote: A bit more info: print user.tariff.monthly_fee.__class__, user.balance.__class__, user.tariff.monthly_fee, user.balance, user.tariff.monthly_fee/3 > user.balance displays: 180.00 1846.85 True while 180/3 = 60 which is ofcourse less than 1846.85 so it should display False in the

Re: Not all Apps Loaded in Admin Interface?

2006-12-26 Thread [EMAIL PROTECTED]
Hi there, happened to me too. Was a typo in the model definition that wasn't bad enough to cause Python to choke but would make django silently ignore the app in the admin interface. Lorenzo --~--~-~--~~~---~--~~ You received this message because you are

Re: Not all Apps Loaded in Admin Interface?

2006-12-26 Thread Jeremy Dunck
On 12/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Is there any way to see where this is bombing out? Perhaps some kind of help from Apache? There are no error messages in the apache2 error log or on the admin interface, it's just that the application and all of its models/classes

How do I replace admin views?

2006-12-26 Thread Jim Fritchman
I am new to Django and web development for that matter but I saw ticket #1476 posted about related objects being displayed as lists with a link to allow the user to edit. I would like to do something very similar and I am hoping that someone can help me get on the right track. I have a person

PySchool Phase II

2006-12-26 Thread bobj
PySchool Phase II I just wanted to thank everyone for filling out the survey a few months back for my PySchool graduate school project. I was able to capture a lot of good information from the community. For the people who mentioned to me that I should expand the "What Linux Operating System do

old plain db-api

2006-12-26 Thread Alagu Madhu
Hi, I like to use django + plain db-api(psycopg2).I'm looking for example or reference. Thanks Madhu Alagu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

old plain db-api

2006-12-26 Thread Alagu Madhu
Hi, I like to use django with just plain db-api.I'm looking for example or reference. thanks Madhu Alagu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Not all Apps Loaded in Admin Interface?

2006-12-26 Thread [EMAIL PROTECTED]
Greetings, It seems that an application that I had working just fine with the admin interface (as in it showed up on the admin interface main page) mysteriously disappeared from the list after a while. No Python errors are generated when I directly debug the script, and a pylint check yields no

==> EASY APPLE PIE RECIPES <==

2006-12-26 Thread ANJLI
[image: Apple Pie Recipes] *Apple Pie Recipes *http://recipes-2.50webs.com/apple_pie/ *Best Apple pie Cooking recipes easy to make For best recipes please visit: http://recipes-2.50webs.com/apple_pie/ SARAH * -- Sarah Singh

free christmass screensavers and wallpapers

2006-12-26 Thread manish83
happy new year to allDownload Free christmass ScreenSavers and Wallpapers! - http://surl.in/HLSCR238206SVRAKSX --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Types of projects Django is not well suited for?

2006-12-26 Thread Saurabh Sawant
That is excellent DavidA! That was the kind of answer i was looking for. Thanks DavidA! If we could get some more people to tell their experience with Django, it would be really cool. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Types of projects Django is not well suited for?

2006-12-26 Thread DavidA
Saurabh Sawant wrote: How about the types of web applications for which Django is not well suited for? Saurabh, I've been using Django for almost a year now and would have to say its worked very well for most every type of application I've tried with it. To name just a few: - the

Re: Types of projects Django is not well suited for?

2006-12-26 Thread Jeremy Dunck
On 12/26/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: On 26-Dec-06, at 12:33 PM, Saurabh Sawant wrote: > when they find out it doesn't suit their need. If we can compile a > list > where another framework is better than Django, i so go compile one and give us the link when you are

Re: Internationalization and caching not working!

2006-12-26 Thread Jeremy Dunck
On 12/26/06, Beegee <[EMAIL PROTECTED]> wrote: ... > Perhaps there is a bug in locale.py. Should: > > patch_vary_headers(response, ('Accept-Language',)) > > perhaps be: > > patch_vary_headers(response, ('Content-Language',)) ... I made the change mentioned above. But, it simply does NOT

Re: serving multiple hosts from a single django instance ?

2006-12-26 Thread Jacob Kaplan-Moss
On 12/26/06 6:25 AM, Fredrik Lundh wrote: I've posted the patch and the middleware I'm using here: http://effbot.org/zone/django-multihost.htm ... and I've checked that patch in as [4237], so once you update to trunk all you'll need is the middleware. Thanks, Fredrik! Jacob

Re: Types of projects Django is not well suited for?

2006-12-26 Thread Kenneth Gonsalves
On 26-Dec-06, at 3:44 PM, ak wrote: Here it goes: http://groups.google.com/group/django-users/browse_thread/thread/ 394701c83497e405/c1ccb16828a6bf8a?lnk=gst=php +django=36=en#c1ccb16828a6bf8a he hasnt listed types of apps not suitable for django. And he would probably start criticising

Re: Types of projects Django is not well suited for?

2006-12-26 Thread Kenneth Gonsalves
On 26-Dec-06, at 3:38 PM, ak wrote: You can search through this mailing list, I remember one guy about a few months ago that compared django development to his previous php expirience and found that django is now very well for him. he wants a list of people for whom django is *not* good --

Re: Internationalization and caching not working!

2006-12-26 Thread Beegee
However you did make me think. You suggested that the Vary header should include Content-Language. If I look at my response header the Content-Language header looks like: Content-Language: nl and if I switch to English it looks like: Content-Language: en. Obviously. Perhaps there is a bug in

Re: Internationalization and caching not working!

2006-12-26 Thread Beegee
Jeremy, Thanks for your response. But, I am using the locale middleware from Django itself. And it automatically updates the Vary header. See: django/trunk/django/middleware/locale.py def process_response(self, request, response): patch_vary_headers(response, ('Accept-Language',))

Re: Internationalization and caching not working!

2006-12-26 Thread Beegee
Jeremy, Thanks for your response. But, I am using the locale middleware from Django itself. And it automatically updates the Vary header. See: django/trunk/django/middleware/locale.py def process_response(self, request, response): patch_vary_headers(response, ('Accept-Language',))

Re: serving multiple hosts from a single django instance ?

2006-12-26 Thread Fredrik Lundh
Fredrik Lundh wrote: that almost worked, but causes some rather interesting problems with things like CommonMiddleware's URL rewriting, etc. I came up with this little hack instead: I've posted the patch and the middleware I'm using here: http://effbot.org/zone/django-multihost.htm

Re: Virtualhost, Location, access to "root location"

2006-12-26 Thread Hans.Rauch
Thank you! request.path instead of request['PATH_INFO'] seems to be ok. --~--~-~--~~~---~--~~ 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: Types of projects Django is not well suited for?

2006-12-26 Thread ak
Here it goes: http://groups.google.com/group/django-users/browse_thread/thread/394701c83497e405/c1ccb16828a6bf8a?lnk=gst=php+django=36=en#c1ccb16828a6bf8a --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Types of projects Django is not well suited for?

2006-12-26 Thread ak
Sorry for typo - I meant "not very well for him" --~--~-~--~~~---~--~~ 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

Re: Types of projects Django is not well suited for?

2006-12-26 Thread ak
You can search through this mailing list, I remember one guy about a few months ago that compared django development to his previous php expirience and found that django is now very well for him. Unfortunatelly I have no link and I don't remember what it exactly was about but it definatelly

Re: FloatField bug ?

2006-12-26 Thread ak
A bit more info: print user.tariff.monthly_fee.__class__, user.balance.__class__, user.tariff.monthly_fee, user.balance, user.tariff.monthly_fee/3 > user.balance displays: 180.00 1846.85 True while 180/3 = 60 which is ofcourse less than 1846.85 so it should display False in the last column

Re: FloatField bug ?

2006-12-26 Thread ak
Ok gotcha :) I ran the following: print user.tariff.monthly_fee.__class__, user.balance.__class__ and got the output: Then i did some more investigation and found that tariff.monthly_fee is actually defined in mysql as `monthly_fee` decimal(10,2) NOT NULL default '0.00', but Django's

Re: FloatField bug ?

2006-12-26 Thread Malcolm Tredinnick
On Tue, 2006-12-26 at 00:58 -0800, ak wrote: Malcolm Tredinnick wrote: > It's difficult to understand this without knowing more about the initial > problem. What are the types and values of the user.tariff.monthly_fee > and user.balance? Well I thought it was clean from the subject line.

Re: Types of projects Django is not well suited for?

2006-12-26 Thread 张成
在 2006-12-26,下午3:19,Don Arbow 写道: I think the biggest limiting factor in Django is the knowledge and experience of the developer. Exactly the POINT! -Cheng Zhang Gentoo/PostgreSQL/Lighttpd/Python/Django/jQuery Powered (Web) http://www.aragonconsultinggroup.com http://www.ifaxian.com 1st

Re: FloatField bug ?

2006-12-26 Thread ak
Malcolm Tredinnick wrote: It's difficult to understand this without knowing more about the initial problem. What are the types and values of the user.tariff.monthly_fee and user.balance? Well I thought it was clean from the subject line. Both values are FloatField(max_digits=10,

Re: How to mount django on a non root apache setting through fastcgi ?

2006-12-26 Thread Maciej Bliziński
On Dec 20, 10:41 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: However, I am wondering if I can tell a particular project to mount onhttp://mydomain.com/my_django/instead on root. This way I would have more flexibility like running multiple django instance. You can probably write such a