sorting in model

2007-02-16 Thread Mae
know to look for it. I get the error: (1054, "Unknown column 'projectname_film.title' in 'order clause'") I don't really want to write my own sorting routines... Does anyone know how to solve this without having to re-implement QuickSort? Mae --~--

Re: sorting in model

2007-02-16 Thread Mae
48 am, "Mae" <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a class Film that owns a Product: > > class Product(models.Model): > name = models.CharField(maxlength=100) > > class Film(models.Model): > product = models.ForeignKey(Product, unique=True)

Re: Pickling error in Django using Apache2

2007-04-05 Thread Mae
o to fix it? Is it possible that running svn update on my directories and restarting Apache without deleting all of the old compiled *.pyc files first is the "monkey patching" that screws up my server? Thanks so much, Mae On Apr 5, 11:50 am, "Jeremy Dunck" <[EMAIL PROT

Re: Pickling error in Django using Apache2

2007-04-05 Thread Mae
Er, that would be "a sporadic "TypeError: can't pickle function objects" problem" :). Forgot to paste. On Apr 5, 12:08 pm, "Mae" <[EMAIL PROTECTED]> wrote: > Wow, what luck! I've been having a sporadic "" problem, and I've just &

Re: Pickling error in Django using Apache2

2007-04-05 Thread Mae
Am I close? Could it still be not deleting the *.pyc files? Mae On Apr 5, 12:17 pm, "Mae" <[EMAIL PROTECTED]> wrote: > Er, that would be "a sporadic "TypeError: can't pickle function > objects" problem" :). Forgot to paste. > > On Apr 5,

quick admin view question

2007-01-10 Thread Mae
a. "Library Documents" without changing the name "Reference" in the model. Can I do this? How? Thanks, Mae --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: quick admin view question

2007-01-10 Thread Mae
Oh, that's exactly what I was looking for! W! Thank you, Mae --~--~-~--~~~---~--~~ 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@goog

FileField broken in admin of newforms branch

2007-02-06 Thread Mae
oblem? What am I missing? And I've tried to apply patch 3297 (http://code.djangoproject.com/ ticket/3297), but that goes against an older version of the branch (4421 to be exact), and refuses to patch my version. I really need File fields to work in admin. Help! Mae --~--~-~--~~--

Re: FileField broken in admin of newforms branch

2007-02-07 Thread Mae
Oh, and I've tried messing about with widget=... parameters, but that throws errors (not surprisingly -- the admin interface doesn't even use newforms yet). On Feb 6, 6:35 pm, "Mae" <[EMAIL PROTECTED]> wrote: > Hi folks, > > I need help to make my FileFields d

Re: django variables in template

2007-02-07 Thread Mae
""" Loads the rollover script. """ return render_to_response('js/rollover.js', {myvar':myvar}) 3) they are included in html accordingly: Mae On Feb 6, 7:17 pm, "damacy" <[EMAIL PROTECTED]> wrote: > hi, there

FileField, admin, newforms branch

2007-02-07 Thread Mae
dealbreaker for me. And I just can't wait past the end of this week to figure out which branch we'll be using :(. Here's a detailed description of my problem: http://groups.google.com/group/django-users/browse_thread/thread/137056daab721d9d Any suggestions or help wil

ManyToOneRel error on newforms branch

2007-02-07 Thread Mae
to complain. I just really like what newforms can offer me, and I'm looking for any and all tips on how to make them work for my project. Thanks, Mae --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Re: ManyToOneRel error on newforms branch

2007-02-07 Thread Mae
I don't have any raw_id_admins in my code... :( On Feb 7, 9:51 pm, "Honza Král" <[EMAIL PROTECTED]> wrote: > On 2/8/07, Mae <[EMAIL PROTECTED]> wrote: > > > > > So, I have a model that's set up exactly like the docs on Many-To-Many > > re

Re: ManyToOneRel error on newforms branch

2007-02-07 Thread Mae
9:56 pm, "Honza Král" <[EMAIL PROTECTED]> wrote: > On 2/8/07, Mae <[EMAIL PROTECTED]> wrote: > > > > > I don't have any raw_id_admins in my code... :( > > yeah, I am sorry, I jumped to the wrong conclusion (note to self, do > not post after

included templates to load own objects

2006-08-24 Thread Mae
nt. As far as I can tell, inclusion tags would allow me to load an object in the parent template, and then pass it to the included template. But I want the included template to be responsible for loading their own objects. Any ideas? Thanks, Mae --~--~-~--~~~---~--~---

Re: my private django repository goes public

2006-08-24 Thread Mae
Thanks, Dirk. Mae --~--~-~--~~~---~--~~ 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, send email

Re: included templates to load own objects

2006-08-25 Thread Mae
Nobody? Is it because I asked the question wrong or because there just is no answer? Mae --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: included templates to load own objects

2006-08-28 Thread Mae
. And I want the containing template to know nothing of the variables the included template uses. Mae Alan Green wrote: > Hi Mae, > > Two thoughts here: > > 1. Have a look at the TemplateContextProcessors: > http://www.djangoproject.com/documentation/templates_python/#subclassing

Re: included templates to load own objects

2006-08-28 Thread Mae
es, without ever having to type the names of those variables into anything. Is this a better explanation? Mae Corey Oordt wrote: > Mae, > > I think it may be because we're not sure of what you are asking for. > I know it didn't really make sense to me when I red it the

Re: included templates to load own objects

2006-08-28 Thread Mae
Hmm. Alan, your post gives me much to think about and try. Thank you. Mae --~--~-~--~~~---~--~~ 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@google