lt of filtering 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 th
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
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
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 emai
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
>
>
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
You cannot retrieve the raw password, that's the whole point of hashing it :)
If you want to store the raw password somewhere, make a raw_password
field and store it there, although your users might not be too happy
that you're storing their passwords in an easily pilfered format.
Cl
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
This is much less ugly, IMO:
...
Obviously your version can be changed from 2 to 4 and highlight ever
4th line, but I think that cycle does the job for 99% of people.
Clint
On 10/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Cycle is interesting (haven't used it),
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
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
" 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
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
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
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
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
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
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
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,
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
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
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
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
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
tion 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
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,
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
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
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
"tn_" fs = self.get_thumbnail_url
() return os.path.dirname(fs) + tnd + tnp + os.path.basename(fs)### End Broken Links Model ###Thanks,Clint
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "
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
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
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
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
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
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
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
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
if errors == 0: try: p.save() except IntegrityError, e: # this doesn'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
tever reason I couldn't figure out how to set up the url regexp to respond to a request for /
thanks in advance!
Clint
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/
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 PRO
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?
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/
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
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
46 matches
Mail list logo