Re: Help with a Caching Strategy

2007-07-06 Thread Clint Ecker
ally from within Django? i.e. when I add a new 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 rathe

Help with a Caching Strategy

2007-07-05 Thread Clint Ecker
ruit. I'm not sure that I 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

Re: Creating HTML emails

2007-02-14 Thread Clint Ecker
with the process required > for formatting and 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/ --~--~-~--~~~-

Re: Creating HTML emails

2007-02-14 Thread Clint Ecker
these by 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
atting and 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 mes

Re: Retrieve Password

2006-11-29 Thread Clint Ecker
int On 11/29/06, Clint74 <[EMAIL PROTECTED]> wrote: > > Hi, > > I need to send the password to the user(email), but how recover the raw > password once the database stores in this format: > > hashType$salt$hash > sha1$6070e$d3a0c5d565deb4318ed607be9706a98535ec7968 > &

Exercise: How would you design these models

2006-10-20 Thread Clint Ecker
ach model importing the other and it running into some sort of loop? Am 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 G

Re: Alternate colors - when returing a list.

2006-10-19 Thread Clint Ecker
but here's how I do it: Works > well, and it appears to me it may have some advantages over cycle. > > > > > > > -- Clint Ecker | STONE WARD 440 N. Wells, Suite 750, Chicago, IL 60610 Boston | [ Chicago ] | Little Rock www.stoneward.com --~--~-~--~~-

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

2006-09-23 Thread Clint Ecker
; Sometimes I'd like to change something about the field (adding an index to > it for example) which I almost could do "under" the django models without it > knowing about. > > Are there any approaches or tools I should know about when dealing with what > is a common pro

Re: Field options validation only occur in admin interface?

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

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 receiv

Re: get parameters in template

2006-05-04 Thread Clint Ecker
common need that there might be a solution out of the box ...Z.-- 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, se

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 m

Re: get parameters in template

2006-05-04 Thread Clint Ecker
tp://www.djangoproject.com/documentation/request_response/#attributes On 5/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi,Is there a way (I bet there is) to find GET parameters (?page=3&test=6) inside the template of a generic view

Re: Suggestions wanted for keeping place in admin

2006-05-04 Thread Clint Ecker
e via Django and then, before setting the sorting orders in the view, rearrange them based on the information in the cookie/session. -- Clint Ecker[EMAIL PROTECTED]http://phaedo.cx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[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&q=type%3Agoogle+engEDU&pl=true Here's a list of all the stuff which is all very interesting!http://video.google.com/videosearch?q=type%3Agoogle+engEDU&page=1&lv=0&so=1

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" gro

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

2006-04-26 Thread Clint Ecker
by the __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,

Re: svn updated, demo

2006-04-25 Thread Clint Ecker
On 4/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:Hi all,I've updated svn trunk, fix entries at demo shop so admin demo will work:http://dshop.mine.nu/shop/pages/Demo/Fill free to play with admin add products,etcI believe this was meant to go to the ecommerce list ---Clint

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

2006-04-25 Thread Clint Ecker
27;user'; COMMIT;Thanks for putting 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.91

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

2006-04-25 Thread Clint Ecker
7; stuff to 'Can * group' and 'Can * user' respectively.  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 Grou

SQL Debugging in MR

2006-04-25 Thread Clint Ecker
elps people who've been looking 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 "Dj

Slow initial startup on Django project

2006-04-21 Thread Clint Ecker
tup" phenomena? 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 Go

Re: ImageField/FileField in M/R

2006-04-20 Thread Clint Ecker
the 1 below and upload new file> > via admin interface, old file remains in the directory, though nothing> > refers to it :-/> >> > class Picture( models.Model):> > fullsize = models.ImageField(upload_to='%Y/%m/%d')> > ...

Re: ImageField/FileField in M/R

2006-04-20 Thread Clint Ecker
if i change the object like the 1 below and upload new filevia admin interface, old file remains in the directory, though nothing refers to it :-/class Picture(models.Model):fullsize = models.ImageField(upload_to='%Y/%m/%d')    ...-- ---Clint Ecker[EMAIL PROTEC

Re: Ecommerce & Django

2006-04-14 Thread Clint Ecker
prints.com/I just created that subdomain, so it's 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, th

Re: Ecommerce & Django

2006-04-13 Thread Clint Ecker
wiilling to share my experience 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

Re: Module imports in models

2006-03-14 Thread Clint Ecker
I'm using Django 0.91-svn if that mattersOn 3/14/06, Clint Ecker <[EMAIL PROTECTED]> wrote: I'm having an odd problem when trying to import some python modules in my Django models.  Things just aren't working how I'd expect:The broken model is below.  The problem occurs

Module imports in models

2006-03-14 Thread Clint Ecker
I'm having an odd problem when trying to import some python modules in my Django models.  Things just aren't working how I'd expect:The broken model is below.  The problem occurs when _post_save is called, it will error out on the "thumbs_dir = os.path..." line because it says that "os" is not glo

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 fo

Re: 'log' is not a valid tag library

2005-11-24 Thread Clint Ecker
I had this happen when a 'svn up' messed up my source files.  I had to delete the whole source tree and re-check-out ClintOn 11/23/05, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: hiam using the latest svn up - did init and install etc - main siteworks fine. When i try to log into admin, after ent

Re: batched display

2005-11-24 Thread Clint Ecker
I believe you're talking about paging or paginationa of db results.On 11/24/05, Kenneth Gonsalves <[EMAIL PROTECTED] > wrote:On Thursday 24 Nov 2005 7:49 pm, Milton Waddams wrote:> Can you provide more info about what type of records you are > thinking of?>> There is a caching framework which can b

Re: How to add user registration/login to an existing app?

2005-11-18 Thread Clint Ecker
I'm particularly interested in this, but I havent been able to sit down and mess around with it.  It would be great if someone had already done some stuff like this and would be willing to show us :) ClintOn 11/18/05, David Ascher <[EMAIL PROTECTED]> wrote: I've read the docs on the Django authent

Re: how to run code on backgroud automatic in django

2005-11-18 Thread Clint Ecker
Personally, I'd just run it on a using your scheduler of choice (cron,at,launchd,scheduled tasks). ClintOn 11/18/05, Fat <[EMAIL PROTECTED]> wrote: I start a project in django. It need to run some code on backgroudautomatic to handle some data.any good suggestion ,or just run it manual

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 pre

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 m

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 PROTECTE

Catching IntegrityError?

2005-11-01 Thread Clint Ecker
I've got a model that looks like the following and describes a "Person", notice that I require the forumsname to be "unique"---begin code---class Person(meta.Model):    fullname    = meta.CharField(maxlength=100,verbose_name="Full Name",blank=False)    forumsname  = meta.CharField(maxlengt

Problems configuring urls.py to respond to /

2005-10-26 Thread Clint Ecker
Just a quick question, I played with this last night, but I didn't have much luck. How would I set up my urls.py to redirect people who attempt to access the root URL of the site, (ie. http://mydomain.com/) to the application I want people to use (ie. http://mydomain.com/myapp/) For whatever reas

Re: Freebsd Port

2005-10-26 Thread Clint Ecker
Backwardsincompatible, that is ;)On 10/25/05, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: On Tuesday 25 Oct 2005 10:57 pm, Clint Ecker wrote:> I've also been using django on freebsd for quite a while now. But its > an old revision.svn update--regardskghttp://www.livejournal.com/

Re: Freebsd Port

2005-10-26 Thread Clint Ecker
TECTED]> wrote: On Tuesday 25 Oct 2005 10:57 pm, Clint Ecker wrote:> I've also been using django on freebsd for quite a while now. But its> an old revision.svn update--regardskg http://www.livejournal.com/users/lawgontally ho! http://avsap.org.inಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

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.> http://www.freebsd.org/cgi/query-pr.cgi?

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 comm

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, natura