Re: CacheMiddleware and middleware orders matters

2007-08-16 Thread Eratothene
I have looked at the link you have given me. But I totally disagree, it looks like to me that the best order is ConditionalGet CacheMiddleware SessionMiddleware GZipMiddleware But django dies and it is a bug in django. I have made bug report with a patch

Re: django-cart integration?

2007-08-16 Thread Jon Atkinson
On 8/15/07, MikeHowarth <[EMAIL PROTECTED]> wrote: > > Does anyone have experience of integrating django-cart in to an app? > > I've tried adding this to my project, however soon as I use runserver > I get issues with the models: > > name 'Teacher' is not defined > > Anyone any idea? Could you

Re: Tagcloud for *all* TaggedItems

2007-08-16 Thread Eratothene
I have thought about it. Both functions must be reimplemented completely: The same actions can be made in one single line of code, using Tag.objects.extra(select = ) construction with subquery. On 15 авг, 15:12, "Kai Kuehne" <[EMAIL PROTECTED]> wrote: > Thanks Era! > > On 8/15/07,

Re: production instance on windowsxp

2007-08-16 Thread Graham Dumpleton
On Aug 16, 3:40 pm, james_027 <[EMAIL PROTECTED]> wrote: > Hi, > > Ask I have successfully try to run django apps on apache/mod_python/ > winxp, I learn that apache for winxp only support worker_mpm Actually, it only supports 'winnt' MPM, although that is effectively 'worker' with only one

Wrong return value when sending mail with test framework

2007-08-16 Thread Michael
I just wanted to check that what I'm seeing is actually an error before submitting a ticket: The SMTPConnection's send_messages method in django.core.mail returns the number of mails sent on success, whereas the TestSMTPConnection class in django.test.utils.py does not: def

Re: Tagcloud for *all* TaggedItems

2007-08-16 Thread Kai Kuehne
Hi, I thought I'll post my problem here too. Maybe someone had the same problem. I tried to add the usage_for_models()-function Era gave me into django-tagging(into .../site-packages/django_tagging/managers.py). I inserted it before the usage_for_model() -function and restartet the dev-server

Re: Wrong return value when sending mail with test framework

2007-08-16 Thread Russell Keith-Magee
On 8/16/07, Michael <[EMAIL PROTECTED]> wrote: > > Adding: > return len(messages) > to the TestSMTPConnection's send_messages method fixes the issue, but > maybe there's a reason I'm not aware of for not doing so in the test > framework? No particular reason. I dummied up the interface,

Re: Changing database structue

2007-08-16 Thread [EMAIL PROTECTED]
Oh. That's a real ouch. I really hoped I can avoid that. Thanks anyhow. --~--~-~--~~~---~--~~ 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

MAKE BIG $$$ PROMOTING OUR WEBSITE!!!

2007-08-16 Thread nice_chick_22
Promote our site and you will be paid The fastest way to get paid is our popular Pay Per Click program. Pay Per Click earns you up to $1.00 per unique visitor per day, counted by a unique IP address and tracked with your account number (GPID). Earning cash is a no-brainer with our per member

Datetimefield error using form_as_model

2007-08-16 Thread jeffhg58
Hi, I am using a form_as_model with newforms and when I do a save I get the following error message on the form: format is %Y-%m-%d %H:%M:%S. This occurs with the event_date field. Can you someone point me in the right direction to help me resolve this issue. Here are snippets of my models

Re: Logout with TestClient

2007-08-16 Thread eXt
On 16 Sie, 01:52, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: (...) > No, there isn't a logout method. However, if there were to be one, > resetting the cookie is about all it would need to do. Deleting the > old session would be another possible action, although it isn't > absolutely

Re: Changing database structue

2007-08-16 Thread Jon Atkinson
It might be worth reading the wiki page on the Schema Evolution [1], and if you're not using SVN, there is a patch [2] against Django 0.96 which implements schema evolution. Other than that, you might want to look into dmigrate [3] (which I've not personally used, so I'm not sure how mature it

ANN: simple home accounting at madatidal.cz

2007-08-16 Thread Michal
Hello, we just launch Madatidal.cz site, which is Django powered application for simple home accounting. Madatidal.cz is targeted to all people, which need to evidence personal income/outcome in simply manner. You could enter records with any number of tags, note, amount and date. All of this

Clash of related_names among two tables

2007-08-16 Thread Peter Melvyn
Hi all, please, could anybody confirm my experience with related_names. I tried to find-out some information about it and found invalid model example. If my understanding is correct, then it is not possible to have the same related_names in two different models. Is it correct? Thanks, Peter

Webcool24.com : Biggest worldwide Asian free Video multi language web , Travel, Sports, Racing cars , Massages techniques, Games , Fashions, Jokes , Top models , Free online IT learning , 5000 li

2007-08-16 Thread video24
Hi , I'd like to introduce you a biggest Asian free Video multi language entertainment website: http://www.webcool24.com/ Best regards. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Formatting Errors

2007-08-16 Thread Abarak
Hello, I have searched high and low and have not been able to find a way to get the form errors to display the label/verbose_name. As of now the {{ GeneralForm.errors }} prints a of the field name and errors listed for the field. This output is fine but I would like the label/ verbose_name to

## Great 2nd Income from Home- $500 per processed FHA refund - NET DETECTIVE @@ only $20 as a Bonus, a 33% savings!!

2007-08-16 Thread arsrefunds
## Great 2nd Income from Home- $500 per processed FHA refund - NET DETECTIVE @@ only $20 as a Bonus, a 33% savings!! Great Work at Home Opportunity: Earn up to $500 for each refund you process. The Federal Government originated this opportunity. We just updated the FHA refund records with more

Re: Logout with TestClient

2007-08-16 Thread Russell Keith-Magee
On 8/16/07, eXt <[EMAIL PROTECTED]> wrote: > > Ok, I've got a logout method that should (IMHO) be added to client.py. > I can generate patch from it. But what form should have a test and a > documentation? * Test: add a test case to /tests/modeltests/test_client that validates that logout works.

Re: Clash of related_names among two tables

2007-08-16 Thread Russell Keith-Magee
On 8/16/07, Peter Melvyn <[EMAIL PROTECTED]> wrote: > > Hi all, > > please, could anybody confirm my experience with related_names. I > tried to find-out some information about it and found invalid model > example. > > If my understanding is correct, then it is not possible to have the > same

Re: Changing database structue

2007-08-16 Thread James Bennett
On 8/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Oh. That's a real ouch. I really hoped I can avoid that. Well, consider this: Anything which *isn't* SQL and which is used to do this job must -- in order to cover all the necessary use cases -- be as complex as SQL, or evolve to the

Re: Multiple Edit

2007-08-16 Thread Aidas Bendoraitis
Christopher, In your case, I would create a custom view/form extending the templates of admin and would set the url of that view to something like r'^/admin/obj_list/$'. Regards, Aidas Bendoraitis [aka Archatas] On 7/21/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > On 21-Jul-07, at

Re: Using Nesh Thumbnail - Not displaying correct dimensions

2007-08-16 Thread Greg
Kenneth, I renamed the image to 'abc' and it still didn't work. I added 'auto_rename=False' to the ImageWithThumbnailField' and it still doesn't display the image correctly. When the image gets uploaded the name of the image is myphototest- photo-none (without auto_rename attribute). Isn't

Re: Clash of related_names among two tables

2007-08-16 Thread Peter Melvyn
On 8/16/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > So - you can use the same related name multiple times - BUT - the same > related name can't be added to a single model more than once. I see - each reference to the same model from different models has to have an unique related_name

'dict' object has no attribute 'rindex'

2007-08-16 Thread Ryan K
I am using Django 0.96 and I am getting this error. Any ideas as to why? Thanks, Ryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: django-cart integration?

2007-08-16 Thread [EMAIL PROTECTED]
I've got it set up, but it's not plug and play... it's tied fairly closely to a model you don't have. It's trying to import Teacher from that model. You need to import your stuff from your models. On Aug 16, 3:02 am, "Jon Atkinson" <[EMAIL PROTECTED]> wrote: > On 8/15/07, MikeHowarth <[EMAIL

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

2007-08-16 Thread James Bennett
On 8/16/07, Ryan K <[EMAIL PROTECTED]> wrote: > I am using Django 0.96 and I am getting this error. Any ideas as to > why? No, because we're not mind-readers ;) In order to help you track down an error, we need to know: 1. What you were trying to do. 2. How you were trying to do it (e.g.,

Re: (1040, 'Too many connections')

2007-08-16 Thread Michel Thadeu Sabchuk
Hi guys! First of all, thanks for all help, I was busy on a project last week and could not dig into the problem. Let me remeber the thread, I having a problem, sometimes my server stuck and goes down, just before it happens, I receive many messages telling "Too many connections". I use apache +

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

2007-08-16 Thread Ryan K
Sorry about that. I figured out what the problem was. It seems like that usually happens AFTER I post to a newsgroup. Anyway, thanks! On Aug 16, 12:19 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 8/16/07, Ryan K <[EMAIL PROTECTED]> wrote: > > > I am using Django 0.96 and I am getting this

Re: Site Map template required?

2007-08-16 Thread MikeHowarth
Malcolm Thanks for your comments, indeed changing to use the sitemap view, then returns a template does not exist error. If I create a sitemap.xml file in my templates directory I then bypass this. What I'm struggling with is that the documentation suggests that the feed is automatically

Re: django-cart integration?

2007-08-16 Thread MikeHowarth
Importing other bits of code is still fairly new to me, I only started looking at django last week. I basically took the files out of subversion and created a dir structure like so: /eshop/shop /eshop/cart <- django cart installed here /eshop/talks <- additional django cart files Within my

mysql/pkg_resources problem

2007-08-16 Thread Greg Donald
I have a new Django setup I'm trying to finish up the install for. I'm getting this error: Error loading MySQLdb module: No module named pkg_resources I can load pkg_resources on the command line with no problems. > ipython In [1]: import sys In [2]: sys.path Out[2]: ['', '/usr/local/bin',

Re: Using queryset values() spanning relationships

2007-08-16 Thread NickJ
That works perfectly, thanks. I was going about it the wrong way with values(). On Aug 14, 7:16 pm, Collin Grady <[EMAIL PROTECTED]> wrote: > Author.objects.filter(book__publisher__id=1).distinct() doesn't work? --~--~-~--~~~---~--~~ You received this message

Re: mysql/pkg_resources problem

2007-08-16 Thread Greg Donald
On 8/16/07, Greg Donald <[EMAIL PROTECTED]> wrote: > I have a new Django setup I'm trying to finish up the install for. > I'm getting this error: > > Error loading MySQLdb module: No module named pkg_resources I figured it out. I built my MySQL from source but forgot to add an entry into my

Re: django-cart integration?

2007-08-16 Thread [EMAIL PROTECTED]
If I remember this correctly, Talk is the item being sold in the store, and it has a foreignkey relationship with Teacher... so that's where you're getting your error. You don't need Talks (unless that's what you're selling). Where it says from eshop.talks.models import Talk, you need to change

Clean Up your Operating System

2007-08-16 Thread John Travolta
Optimize your operating system, minimize background activities, repair registry base, uninstall unnecessary components, get rid of boring errors and make your operating system safer. http://windowsxpsp2pro.blogspot.com --~--~-~--~~~---~--~~ You received this

Apache-Django server performance questions (Hardware, Cache, Memory)

2007-08-16 Thread unsetram
Hi, I want to assemble a powerful Django server and had some questions on how to best I can spend my $ on Hardware/Server to get higher performance in general on my Django Server. My Django site is a CRM web application serving tons of data. In order to make it as scalable and responsive as

A "revision-controlled field" type?

2007-08-16 Thread Tim Chase
Has there been any work on a "RevisionControlledField" type? Likely, a standard text-field with some controls for selecting versions or branches thereof, and saving becomes a bit complicated. I'm looking for ideas/suggestions/caveats for such a field (and if such a beast already exists,

Re: A "revision-controlled field" type?

2007-08-16 Thread Jeremy Dunck
Not the same, but interesting: http://code.djangoproject.com/wiki/AuditTrail In general, I'd be tempted to make a file-based svn repo and map app/model/field into a URL, rather than try to make my own system. :) On 8/16/07, Tim Chase <[EMAIL PROTECTED]> wrote: > > Has there been any work on a

management.flush, load_data etc. what to use instead?

2007-08-16 Thread eXt
Hi! I just updated to the current django's trunk and I noticed that management.py has disappeared. Management is now a package with... something inside ;). Ok, the quesiton is how to execute this code in the new version: >>> from django.core import management >>> management.flush(verbosity=0,

Re: Apache-Django server performance questions (Hardware, Cache, Memory)

2007-08-16 Thread Snirp
Interesting question you raise here. In fact, I believe that memory is generally considered to be very important for these purposes (and it comes relatively cheap). I cannot substantiate that, however. Gypsy (specialized django) hosting from the django-maestro Jacob has the following

Re: management.flush, load_data etc. what to use instead?

2007-08-16 Thread Deryck Hodge
On 8/16/07, eXt <[EMAIL PROTECTED]> wrote: > I just updated to the current django's trunk and I noticed that > management.py has disappeared. Management is now a package with... > something inside ;). Ok, the quesiton is how to execute this code in > the new version: > > >>> from django.core

Re: A "revision-controlled field" type?

2007-08-16 Thread Brian Morton
I'm not sure I really understand. It sort of sounds like you are talking about a CharField with a choices argument. Is what you're looking for more complex? Can you describe it in more detail? On Aug 16, 4:06 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > Has there been any work on a

Re: Newforms file upload

2007-08-16 Thread Collin Grady
The change is just that this: form = MyForm(request.POST) changes to this: form = MyForm(request.POST, request.FILES) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Feds Train Clergy To "Quell Dissent" During Martial Law Shocking KSLA 12 news report confirms story we broke last year, Pastors to cite Romans 13 as reason for public to obey government orders, relinq

2007-08-16 Thread [EMAIL PROTECTED]
Feds Train Clergy To "Quell Dissent" During Martial Law Shocking KSLA 12 news report confirms story we broke last year, Pastors to cite Romans 13 as reason for public to obey government orders, relinquish guns and be taken to camps during state of emergency Prison Planet | August 16, 2007 Paul

Re: django-cart integration?

2007-08-16 Thread MikeHowarth
Thats absolutely it. Validated and no errors found. Great stuff. I was sure I'd searched for Teacher and couldn't find anything. Thanks again for your help. On Aug 16, 8:32 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > If I remember this correctly, Talk is the item being sold in the >

Cache middleware causing unit tests to fail

2007-08-16 Thread Norman Harman
Hi, request.template is None instead of what it should be because the response is from the cache middleware. Which is fine. My question is there a good way to disable the cache middleware during tests? "good" being atleast the following. is automatic, isn't based of value of DEBUG,

Re: A "revision-controlled field" type?

2007-08-16 Thread Derek Anderson
this does sound quite usefullet us know if you find one and/or roll your own. :) Tim Chase wrote: >> I'm not sure I really understand. It sort of sounds like you are >> talking about a CharField with a choices argument. Is what you're >> looking for more complex? > > No...a "choices"

Re: management.flush, load_data etc. what to use instead?

2007-08-16 Thread Russell Keith-Magee
On 8/17/07, eXt <[EMAIL PROTECTED]> wrote: > >>> from django.core import management > >>> management.flush(verbosity=0, interactive=False) > >>> management.load_data(['test_data'], verbosity=0) Hi Jakub, Sorry for the inconvenience here - especially after I just gave you that piece of advice a

mutual exclusion

2007-08-16 Thread Derek Anderson
hey, how is everyone handling mutual exclusion between server threads in django? is there a built-in method i'm missing? derek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Using Nesh Thumbnail - Not displaying correct dimensions

2007-08-16 Thread Kenneth Gonsalves
On 16-Aug-07, at 9:02 PM, Greg wrote: > When the image gets uploaded the name of the image is myphototest- > photo-none (without auto_rename attribute). Isn't none supposed to be > the object pk. Shouldn't that be a 1,2,3 etc instead of none? i'm afraid i cant help you further - I have been

updating models

2007-08-16 Thread [EMAIL PROTECTED]
Hi, There seems to be some trickery in updating a model that already has database entries. Right now, in early development, I'm just erasing everything and calling sqlreset or sqlclear on a model to update it. This is clearly bad for a live site. There is a note here:

oracle and syncdb

2007-08-16 Thread [EMAIL PROTECTED]
Anyone getting syncdb to work with Oracle and the current django trunk? My tables are generated, then... ...blah blah... File "/dept/training/lib/python2.4/site-packages/django/db/backends/ oracle/base.py", line 122, in execute return Database.Cursor.execute(self, query, params)

Re: updating models

2007-08-16 Thread Russell Keith-Magee
On 8/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > That mentions syncdb will never alter tables, because of ambiguity. > > So how do I do it? The problem you are referring to is schema evolution - evolving the database schema for a Django model over time. Search the archives and you

Re: updating models

2007-08-16 Thread Kenneth Gonsalves
On 17-Aug-07, at 6:15 AM, [EMAIL PROTECTED] wrote: > There seems to be some trickery in updating a model that already has > database entries. There is no trickery involved. One thing people forget is that Django is a framework made up of python, sql, html, css and javascript. It simplifies

Re: updating models

2007-08-16 Thread James Bennett
On 8/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > So how do I do it? http://www.google.com/search?hl=en=sql+alter+table=Google+Search -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~--~~~---~--~~ You received

Re: updating models

2007-08-16 Thread Kenneth Gonsalves
On 17-Aug-07, at 6:35 AM, James Bennett wrote: >> So how do I do it? > > http://www.google.com/search?hl=en=sql+alter+table=Google > +Search an example: http://www.djangosnippets.org/snippets/188/ -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/

Re: Using Nesh Thumbnail - Not displaying correct dimensions

2007-08-16 Thread Greg
Kenneth, Thanks for the reply. When you use nesh and you upload a picture is the name of the picture: classname-fieldname-none.jpg? Or does the filename contain the pk of the record? Thanks On Aug 16, 7:42 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 16-Aug-07, at 9:02 PM, Greg

Re: (1040, 'Too many connections')

2007-08-16 Thread Graham Dumpleton
Can you upgrade to proper 0.96 and not 0.96pre and see if it makes a difference. Don't understand what 0.96pre means since not a regular Django user, but there was a whole issue with MySQL database issues with Subversion copy of Django back in June.

Re: Using Nesh Thumbnail - Not displaying correct dimensions

2007-08-16 Thread Kenneth Gonsalves
On 17-Aug-07, at 6:49 AM, Greg wrote: > Thanks for the reply. When you use nesh and you upload a picture is > the name of the picture: > > classname-fieldname-none.jpg? Or does the filename contain the pk of > the record? no - it is just the name of the picture that is on my local hard disk

a nice new website look here

2007-08-16 Thread [EMAIL PROTECTED]
http://www.pennergame.de/ref.php?uid=4762 --~--~-~--~~~---~--~~ 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,

Re: A "revision-controlled field" type?

2007-08-16 Thread Brian Morton
It sounds like what you need to build is a custom ForeignKey type of field that creates another table for that field. Then, you can store an arbitrary number of revisions of that field, along with versioning information, and a wrapper around diff that can perform the functions you mention. On

Re: (1040, 'Too many connections')

2007-08-16 Thread [EMAIL PROTECTED]
1040 is the MySQL error for when you've got too many connections open to the database server. MySQL's docs on this are here: http://dev.mysql.com/doc/refman/5.0/en/too-many-connections.html You have one or more of these happening: 1) You have too many Apache children for the MySQL's

Re: Using Nesh Thumbnail - Not displaying correct dimensions

2007-08-16 Thread Greg
Kenneth, So in your models.py file do you use auto_rename=False? This is what I have: photo = field.ImageWithThumbnailField(upload_to='site_media/') When the picture is uploaded and saved in your site_media folder. Does it have the the same dimensions as the original file or does it

Life (1) ; Working

2007-08-16 Thread Dr. Solve
. Life It is something that everyone has, yet very view people comprehend it, or at least try to. If I put a book on your hand and ask you, "What is a book? I bet you can answer it easily. If now I put a slice of bread on your hand and ask you,

Re: (1040, 'Too many connections')

2007-08-16 Thread James Bennett
On 8/16/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > Don't understand what 0.96pre means since not a regular Django user, > but there was a whole issue with MySQL database issues with Subversion > copy of Django back in June. Between releases, django.VERSION increments and adds the "-pre"

Re: mutual exclusion

2007-08-16 Thread Jeremy Dunck
On 8/16/07, Derek Anderson <[EMAIL PROTECTED]> wrote: > > hey, > > how is everyone handling mutual exclusion between server threads in > django? is there a built-in method i'm missing? What are you trying to accomplish? --~--~-~--~~~---~--~~ You received this

Re: Using Nesh Thumbnail - Not displaying correct dimensions

2007-08-16 Thread Kenneth Gonsalves
On 17-Aug-07, at 7:47 AM, Greg wrote: > Kenneth, > So in your models.py file do you use auto_rename=False? i use an old version - at that time it didnt have the auto_rename feature > > This is what I have: > > photo = field.ImageWithThumbnailField(upload_to='site_media/') thats what i have

Re: Site Map template required?

2007-08-16 Thread Malcolm Tredinnick
On Thu, 2007-08-16 at 11:03 -0700, MikeHowarth wrote: > Malcolm > > Thanks for your comments, indeed changing to use the sitemap view, > then returns a template does not exist error. > > If I create a sitemap.xml file in my templates directory I then bypass > this. What I'm struggling with is

Re: Datetimefield error using form_as_model

2007-08-16 Thread Malcolm Tredinnick
On Thu, 2007-08-16 at 05:25 -0700, jeffhg58 wrote: > Hi, > > I am using a form_as_model with newforms and when I do a save I get > the following error message on the form: > > format is %Y-%m-%d %H:%M:%S. Grepping through the source code, the string "format is" does not appear anywhere in the

Seeking Django Developers USA (several projects and maintenance)

2007-08-16 Thread Frank Moten
Must have experience installing, configuring python, etc... contact [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Cache middleware causing unit tests to fail

2007-08-16 Thread Malcolm Tredinnick
On Thu, 2007-08-16 at 17:05 -0600, Norman Harman wrote: > Hi, > > request.template is None instead of what it should be because the response is > from the > cache middleware. > > Which is fine. My question is there a good way to disable the cache > middleware during > tests? > > "good"