Re: weird error with MS Excel 2010 exports

2011-05-20 Thread chris hendrix
hi gabe - response = render_to_response('reports/trackingdump.html',{'trs':trs,}) filename='trackingdump.xls' response['Content-Disposition'] = 'attachment; filename=' + filename response['Content-Type'] = 'application/vnd.ms-excel; charset=utf-8' that's ho

Re: /admin weirdness

2011-03-17 Thread chris hendrix
dmin.site.register(Record,RecordAdmin) any ideas? On 03/17/2011 03:50 PM, Casey Greene wrote: Where are you registering your models for the admin site and what does that code look like? Casey On 03/17/2011 03:14 PM, chris hendrix wrote: yeah the urls file looks fine... it only happens rand

Re: /admin weirdness

2011-03-17 Thread chris hendrix
yeah the urls file looks fine... it only happens randomly but seems tied to DEBUG=False for some reason... not sure why that would make a difference. On 03/17/2011 03:09 PM, werefr0g wrote: Hi Bobby, Maybe some mistake on your url.py, for example if you have an app named "app" and a model n

Re: Satchmo Error - Invalid block tag: 'thumbnail', expected 'else' or 'endif'

2011-03-10 Thread chris hendrix
yeah we've followed all the instructions On 03/10/2011 08:00 AM, pols wrote: try re-installing thumbnail easy_install sorl-thumbnail==3.2.5 -- 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@g

Re: Satchmo Error - Invalid block tag: 'thumbnail', expected 'else' or 'endif'

2011-03-10 Thread chris hendrix
both of these are done and we're still getting the error. On 03/10/2011 04:32 AM, pols wrote: Check in settings.py installed apps for the entry 'satchmo_utils.thumbnail', If not istalled add this.If you are using new version you may need to add {% endthumbnail %} in the templates before closing

Re: sql query: how to

2010-09-27 Thread chris hendrix
yeah i was looking at something like that... actually let me correct what i'm needing to do: select year(fieldname) as pubyear from table order by year(fieldname) asc On 09/27/2010 01:15 AM, akaariai wrote: The most efficient? Exactly that using raw SQL. I think something along the followin

Re: project management app

2010-08-17 Thread chris hendrix
yeah i couldn't get it installed either. I'm wondering if the project was abandoned or something. I don't have time to contribute anything in regard to programming at the moment due to starting up a web design firm. However, i'd love to help you flesh out ideas or be a beta tester for you...

Re: Hostmonster shared hosting and django tinymce

2010-03-17 Thread chris hendrix
ok thanks for pointing me in the right direction. doesn't sound too hard. On Wed, Mar 17, 2010 at 8:59 AM, Omer Barlas wrote: > tchendrix @ 17-03-2010 14:31: > > do you by chance have instructions on how to get that installed with >> django so it works properly? They don't say anything in th

Re: sending data back to template out of a function

2008-06-06 Thread chris hendrix
Hi Em - I'm not really specifying anything about type @ the moment.. .i'm just trying to figure out how to pass stuff back to the template (ie stuff that's NOT form validation related) BR On Fri, Jun 6, 2008 at 10:40 AM, Emily Rodgers <[EMAIL PROTECTED]> wrote: > > I can't see anything work in

Re: {{ media_url }}

2008-06-05 Thread chris hendrix
hi Aaron - my template includes this link to the css my view is: from django import http from forms import ziplookup from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from django.template import Context, Template def pr

Re: {{ media_url }}

2008-06-05 Thread chris hendrix
Hi andrew. I've got the from django.template import Context, Template line at the top of the view. How do i pass the media template contact processor to the template? BR On Thu, Jun 5, 2008 at 4:20 PM, Andrew Ingram <[EMAIL PROTECTED]> wrote: > > Chances are that one of the views isn't passin

Re: forms - WTF

2008-06-05 Thread chris hendrix
t; PS if you need to add some (but not all) fields of a model to a form, and > then do some data munging to fill in some of the other required fields, do > shout if you get stuck - this took me a while to figure out!! > > -- > *From:* django-users@googlegro

Re: forms - WTF

2008-06-05 Thread chris hendrix
Hi Em - I'm taking baby steps at the moment and simply don't understand how the form.as_table works... ie when i put that in the template (see my template below), how does it know which form to show? BR On Thu, Jun 5, 2008 at 11:50 AM, Emily Rodgers <[EMAIL PROTECTED]> wrote: > > Hi, > > It s

Re: forms - WTF

2008-06-05 Thread chris hendrix
yeah i'm looking at chapter 7 now to try to understand forms On Thu, Jun 5, 2008 at 11:47 AM, Daniel Mahoney <[EMAIL PROTECTED]> wrote: > > Bobby, did you work through the tutorials on the djangoproject web site, > or some of the other Django tutorials available on the web? They can > seem li