Filtering results of a custom manager that added attributes

2008-07-25 Thread clint
is a QuerySet, and not the base class. Is there a way to work around this? I would think filtering data with additional computed fields is not uncommon. Thank you -Clint --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Help with a Caching Strategy

2007-07-06 Thread Clint Ecker
ew bit of data to an old month in my cron script and invalidate that month's cache, can I trigger what I might call an automated rebuild of that template? I would prefer that the penalty take place during my cron'd script's execution rather than the user have a perceived delay the next time that pa

Help with a Caching Strategy

2007-07-05 Thread Clint Ecker
can cache one view two different ways by using the cache_page function. Perhaps I need to dig a little deeper into the caching mechanisms? How would people with more experience with caching+Django approach this situation? Thanks in advance, Clint -- Clint Ecker Sr. Web Developer - Stone Ward

Re: Creating HTML emails

2007-02-14 Thread Clint Ecker
And please note, this was probably nabbed from some example online and modified to suit my needs, please don't attribute it to me, it's only as an example for you ;) Clint On 2/8/07, Tipan <[EMAIL PROTECTED]> wrote: > > I've been able to create Plain text emails to s

Re: Creating HTML emails

2007-02-14 Thread Clint Ecker
outputting in HTML with a logo. If I use the > send_mail function it simply incorporates the HTML in the plain text. > > Can anyone point me in the right direction with the process required > for formatting and sending my emails from Django in HTML? > > Thanks > > > >

Re: Creating HTML emails

2007-02-14 Thread Clint Ecker
sending my emails from Django in HTML? > > Thanks > > > > > -- Clint Ecker / Sr. Web Dev / STONE WARD Boston / [ Chicago ] / Little Rock 312.464.1443, ext. 111 http://www.stoneward.com/ --~--~-~--~~~---~--~~ You received this message becau

Exercise: How would you design these models

2006-10-20 Thread Clint Ecker
m I taking the fundamentally wrong approach or do I need to work around this behavior? thanks! Clint Ecker --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: models: There has to be a better way.

2006-09-23 Thread Clint Ecker
Please do a search for 'schema-evolution' on the dev list. It's been discussed ad nauseum and there was a project with Google's SoC to address the issue. The code, as far as i know, is complete and waiting in a seperate branch for testing before being merged into the main trunk. Clint On 9

Re: Field options validation only occur in admin interface?

2006-05-04 Thread Clint Ecker
9e16f6650d541175/bcf3f32e2c597a5d?lnk=st=validation+aware+models=2#bcf3f32e2c597a5d Validation aware models revisited: http://groups.google.com/group/django-developers/browse_thread/thread/cd0c58f0dce474fe/4af412291fd4ac37?lnk=st=validation+aware+models=1#4af412291fd4ac37 -- Clint Ecker[EMAIL PROTECTED]

Re: get parameters in template

2006-05-04 Thread Clint Ecker
keyword argument to the specific view. AdrianGood point! I've never used them (generic views) in a project yet, so I was bound to hit some sort snag with my solution ;)-- Clint Ecker [EMAIL PROTECTED]http://phaedo.cx --~--~-~--~~~---~--~~ You received this mes

Re: get parameters in template

2006-05-04 Thread Clint Ecker
Oops, just now noticed you were specifically talking about Generic Views! I apologize! :DOn 5/4/06, Clint Ecker < [EMAIL PROTECTED]> wrote:You could pass the " request.GET" or "request.POST" variable into the template context and then access it as follows.  I'm making

[OT]: Video of Jacob's talk at Google

2006-05-03 Thread Clint Ecker
Just noticed this on Google's engEDU!http://video.google.com/videoplay?docid=-70449010942275062=type%3Agoogle+engEDU=true Here's a list of all the stuff which is all very interesting!http://video.google.com/videosearch?q=type%3Agoogle+engEDU=1=0=1 -- Clint Ecker[EMAIL PROTECTED]http://phaedo.cx

Re: MR: Revision 2745 and up -- Syncdb breakage, and why

2006-04-26 Thread Clint Ecker
On 4/25/06, Ken Kennedy <[EMAIL PROTECTED]> wrote: I'd say put 'em there!Done---Clint Ecker[EMAIL PROTECTED]http://phaedo.cx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: MR: Revision 2745 and up -- Syncdb breakage, and why

2006-04-26 Thread Clint Ecker
repr__ and __str__changes. Shall I file a bug report? Clint Ecker[EMAIL PROTECTED]http://phaedo.cx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: MR: Revision 2745 and up -- Syncdb breakage, and why

2006-04-25 Thread Clint Ecker
those together, now I'm trying to figured out where the best place to put this information is? Is this a good place? http://code.djangoproject.com/wiki/RemovingTheMagic#Databasechangesyoullneedtomake Or does that only deal with changes from 0.9.1 to 0.91MR? ---Clint Ecker[EMAIL PROTECTED]http://pha

MR: Revision 2745 and up -- Syncdb breakage, and why

2006-04-25 Thread Clint Ecker
spectively.  Hope this helps out anyone who runs into this!---Clint Ecker[EMAIL PROTECTED]http://phaedo.cx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

SQL Debugging in MR

2006-04-25 Thread Clint Ecker
ooking for this information.  pbx will be updating the MR docs with that info soon!  ---Clint Ecker[EMAIL PROTECTED]http://phaedo.cx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To po

Slow initial startup on Django project

2006-04-21 Thread Clint Ecker
Is it just inherent to fcgi or is there something wrong with how I'm doing business.  Thanks in advance! ---Clint Ecker [EMAIL PROTECTED]http://phaedo.cx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Re: ImageField/FileField in M/R

2006-04-20 Thread Clint Ecker
on their own.  Perhaps in a _pre_save > method?>> Clint>> On 4/20/06, Denis <[EMAIL PROTECTED]> wrote:> >> >> > Hi> >> > It looks like old files aren't being removed after object change. > > That is, if i change the object like the

Re: ImageField/FileField in M/R

2006-04-20 Thread Clint Ecker
This is correct.  I believe the general consensus is that the developer should take care of file destruction on their own.  Perhaps in a _pre_save method?Clint On 4/20/06, Denis <[EMAIL PROTECTED]> wrote: HiIt looks like old files aren't being removed after object change.That is, if i

Re: Ecommerce & Django

2006-04-14 Thread Clint Ecker
not in the DNS for work yet, but it is from home.  I don't have a shopping cart built in there yet.Another question is whether to allow products from multiple stores topopulate the same shopping cart instance.  I'd think not.Anyway, this site is butt-ugly.  Nothing like the one Michael has put up, b

Re: Ecommerce & Django

2006-04-13 Thread Clint Ecker
rience and participate to such a project.Olivier.-- ---Clint Ecker[EMAIL PROTECTED]http://phaedo.cx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: why is my view for a submitted form not getting a POST?

2006-03-09 Thread Clint Ecker
What is happening is that Django is redirecting your request from "rating" to "rating/" (which is the correct location).  Unfortunately POST information is lost in this redirect. On 3/9/06, Glenn Tenney <[EMAIL PROTECTED]> wrote: I've taken a working template and a working detail view and addeda

Re: Django and Ruby on Rails framework roundtable: Dec. 3 in Chicago

2005-11-17 Thread Clint Ecker
Will the event be recorded, either audio or video? ClintOn 11/17/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: Hi all,If you're in the area, you should come to Snakes and Rubies, a meetingof Python and Ruby Web programmers on Dec. 3 in Chicago.David Heinemeier Hansson of Ruby on Rails will be

Re: django & dreamhost

2005-11-14 Thread Clint Ecker
I don't have any real help for you, but I suspect that those instructions were made against an older version of Django.  Since that time, several backwardsincompatible changes have been made that will probably impede your progress. Perhaps there is someone who could cleanup the DH instructions to

Re: Catching IntegrityError?

2005-11-01 Thread Clint Ecker
Thanks a bunch! I rewrote my app using the manipulators and such and it cut out a ton of stuff I'd written! I guess I should read through the docs a bit more often ;) Clint On 11/1/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 11/1/05, Clint Ecker <[EMAIL PROTECTED]>

Catching IntegrityError?

2005-11-01 Thread Clint Ecker
't work!     errors = errors + 1    t['forumsnameerror'] = e    ---end code---When I try the above code, I get the following error:NameError: global name 'IntegrityError' is not defined So which is it? does it exist or not? I'm really confused here :)Clint

Problems configuring urls.py to respond to /

2005-10-26 Thread Clint Ecker
reason I couldn't figure out how to set up the url regexp to respond to a request for / thanks in advance! Clint

Re: Freebsd Port

2005-10-26 Thread Clint Ecker
I'd rather not go through all the backwardscompatible updates for the low-priority application I'm running on that machine ;P~ Thanks for the ever so helpful advice though.  I'm going to print it out and hang it on my wall :) Clint On 10/25/05, Kenneth Gonsalves <[EMAIL PROTECTED]>

Re: Freebsd Port

2005-10-25 Thread Clint Ecker
I've also been using django on freebsd for quite a while now.  But its an old revision.On 10/25/05, Kenneth Gonsalves < [EMAIL PROTECTED]> wrote:On Tuesday 25 Oct 2005 2:32 pm, [EMAIL PROTECTED] wrote:> I just sent a new port request for Django on FreeBSD.>

Re: "runserver" vs. "runserver :" : a bug?

2005-10-15 Thread Clint Ecker
On 10/15/05, Emanuele <[EMAIL PROTECTED]> wrote: Is it a correct behaviour? I look for it in the docs but I foundnothing.Is it a bug?http://www.djangoproject.com/documentation/django_admin/  

Re: Are multiple projects posible?

2005-08-05 Thread Clint Ecker
Are you using the built-in development server or mod_python? In mod python you'd just vhost another dir and set the "SetEnv" module to the different project. If you want to do it with two development servers, just start another terminal instance and do the runserver mode with the --settings

Re: Planet Django

2005-08-04 Thread Clint Ecker
I have a django category on my blog, here's the feed URL: http://phaedo.cx/archives/category/geek/programming/python/django/feed On 8/4/05, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > Hey guys -- > > I'm working on a "planet Django" thing for djangoproject.com (written > in Django,