Re: possible filter bug with manytomany fields and slice?

2009-04-16 Thread Margie
askmanager_pdtask"."chip_id", "pdtaskmanager_pdtask"."stage_id" FROM "pdtaskmanager_pdtask" INNER JOIN "pdtaskmanager_pdtask_tiles" ON ("pdtaskmanager_pdtask"."id" = "pdtaskmanager_pdtask_tiles"."pdtask_id") WHERE &

how to redirect to previous page

2009-04-21 Thread Margie
e user clicks a 'submit' button on page 'foo', I would like to take them back to wherever they were before they got to page 'foo'. How do others deal with this? Thanks Margie --~--~-~--~~~---~--~~ You received this message because you

general way to redirect to previous page?

2009-04-21 Thread Margie
e user clicks a 'submit' button on page 'foo', I would like to take them back to wherever they were before they got to page 'foo'. How do others deal with this? Thanks Margie --~--~-~--~~~---~--~~ You received this message because you

Re: general way to redirect to previous page?

2009-04-21 Thread Margie
Sorry for this repost. Please ignore and use previous posting of similar name. On Apr 21, 2:07 pm, Margie wrote: > Can anyone advise me on what is the best way in the views.py code to > return an HttpResponse that simply returns the user to the previous > page they were on? > &

Re: how to redirect to previous page

2009-04-21 Thread Margie
rect_to: return HttpResponseRedirect(reverse('topic_list', args= (topic.forum.id,))) else: return HttpResponseRedirect(redirect_to) Then in my html on the button that does the unlock I have something like this: wrote: > On Apr 21, 10:53 pm, Margie wrote:

Re: how to redirect to previous page

2009-04-22 Thread Margie
Cool, thanks, I will try that! On Apr 22, 12:19 am, Ayaz Ahmed Khan wrote: > On 22-Apr-09, at 3:06 AM,Margiewrote: > > > Then in my html on the button that does the unlock I have something > > like this: > > > > > I just thought maybe there was django magic that wouldn't require me > > to pass

MultipleHiddenInput() causes has_changed() to always be true?

2009-04-27 Thread Margie
is, if it is relevant here, and if it should be set to 1 in my case? Margie --~--~-~--~~~---~--~~ 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@googleg

Re: Finding Reason for Form.is_valid()

2009-04-28 Thread Margie
I often put a break point using pdb import pdb pdb.set_trace() This causes the server (assuming you are using the django development server) to drop to the pdb prompt when it hits the set_trace(). Then I just print the form and look at the output. Margie On Apr 28, 4:59 am, Masklinn wrote

Re: How to deal with problem about ForeignKey

2009-04-29 Thread Margie
I had a post on this recently that you would probably find relevant, see: http://groups.google.com/group/django-users/browse_frm/thread/582f21486c1073eb/8af00e9c0577a5e6?lnk=gst&q=margie#8af00e9c0577a5e6 Or search for "deletion of distant related objects" in this group. I&#x

Re: Configuration help. Multiple projects.

2009-04-30 Thread Margie
sed fcgi. I believe that if I had some other app that I wanted to serve through maypp.foocorp.com/wiki, that that could be done using some apache magic that picks out the /wiki and then sends that to your wiki app. Hope this helps! Margie On Apr 30, 10:58 am, "eric.frederich" wrote:

Re: url template tag help

2009-04-30 Thread Margie
ge in the browser, but it becomes obvious when you import the files at the prompt. Margie On Apr 30, 8:52 am, Julián C. Pérez wrote: > anyone?? > i can't get around this... > and i don't want to hard-code the urls in templates either > :( > > On 30 abr, 09:20, Julián C.

Re: url template tag help

2009-04-30 Thread Margie
and indeed has been hard to debug), but I couldn't put my finger on remembering what my solution was. It just happened, I fixed my syntax error, but still got reverseMatch error message. Restarted the server, and it was gone. Margie On Apr 30, 4:56 pm, Margie wrote: > Have you confir

Re: url template tag help

2009-05-03 Thread Margie
ebapp development is like with out a framework like django, but I suspect it is a lot messier. So I also feel like the dive in time ito learn some of the underlying detais of django source is well worth it. Margie On May 1, 11:47 am, Kevin Audleman wrote: > Malcom, > > Cheers to

overriding change_list.html causes 'maximum recursion depth exceeded' exception

2009-05-07 Thread Margie
-2.5.1/lib/ python2.5/site-packages/django/template/debug.py in render_node, line 81 I'm using the beta: >>> django.VERSION (1, 1, 0, 'beta', 1) Is this something I should post as a real bug? If so, could someone point me at the appropriate site for posting a bug? M

limiting choices for foreign key choices in the admin view

2009-05-07 Thread Margie
Can someone point me in the right direction? Am happy to do some coding or override internal methods. I see some people talking about using jquery to do this, but if there is a way of overriding an internal method, that seems preferable to me. Margie --~--~-~--~~~---

Re: limiting choices for foreign key choices in the admin view

2009-05-07 Thread Margie
e able to set it to the 'resources' field for that same task. Margie On May 7, 6:36 pm, George Song wrote: > On 5/7/2009 6:29 PM, Margie wrote: > > > > > I know this question has been pondered in a bunch of posts, and I'm > > sorry to repeat it, but I just

Re: limiting choices for foreign key choices in the admin view

2009-05-08 Thread Margie
yes, gotcha - that makes sense. Thanks. Margie On May 7, 10:59 pm, George Song wrote: > On 5/7/2009 9:19 PM, Margie wrote: > > > > > Thanks much George, that was a big help.  I have some "proof of > > concept code below" that simply limits choices to th

Re: ForeignKey Select List Filter

2009-05-08 Thread Margie
6b2476c4a4?lnk=gst&q=form+fields+queryset#6c3a5b6b2476c4a4 If you search teh group for "form fields queryset" you'll find lots more. Margie On Apr 29, 6:36 am, cfiles wrote: > Let me try to explain this a little more. Here are some example models > > class Accou

Re: How to disable deletion af a model instance

2009-05-09 Thread Margie
sted particularly in formsets and what happens when can_delete is True and what happens when the delete occurs as a result of doing a formset save() when some objects have been targeted for deletion. Sorry for the length of this. I've spent all morning trying to grock this and am disappointed th

Re: How to disable deletion af a model instance

2009-05-09 Thread Margie
I thought that might be the case. Is that true of the deletes done by a formset save as well? IE, when a formset.save() is done, in some cases my delete will be called, and in some cases not? Margie On May 9, 4:57 pm, James Bennett wrote: > On Sat, May 9, 2009 at 7:49 PM, George Song wr

simpletag to accumulate media without duplicates

2009-05-09 Thread Margie
Exception Value: form_media takes 0 arguments Anyone know how I do a tag with variable number of arguments? Margie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Model Formsets.save(commit=False) behaviour

2009-05-09 Thread Margie
e, I think that commit=False is used a lot, so I'd walk through your own code once more ... Margie On May 9, 7:17 pm, gorans wrote: > Hi all, > > I'm trying to use the .save(commit=False) method on a model formset in > my view but for some strange reason, the django co

Re: simpletag to accumulate media without duplicates

2009-05-10 Thread Margie
Yes, I bet you are right. I think I have to use a "non simple" tag, the kind where I write the parser and renderer. I think I did that a while back, will go off and search my old code. Thanks for the pointer. Margie On May 9, 9:39 pm, Dan Mallinger wrote: > Hi Margie, > &g

Re: Django installation

2009-05-10 Thread Margie
admin interface with 1.1 beta, but you can't in 1.02. That is really nice. I would personally recommend starting with the 1.1 Beta and then move to the final 1.1 release when it comes out (which I think is coming soon, just based on reading the developer google group). Margie On May 1

Re: Can you add custom logic to the Admin page?

2009-05-11 Thread Margie
econfigure the admin, I'll get a lot of stuff for free. So I'm working toward being able to do that, but in the process I have really had to dive in and become familiar with the django source code. Margie On May 11, 9:16 am, Phil Mocek wrote: > On Mon, May 11, 2009 at 08:09:39AM -0

Re: Help a noob with a stupid question - forms

2009-05-12 Thread Margie
This is a great example for helping people (me) understand how to write their own widgets. I won't even pretend that I fully understand your code, but I'm getting there. Very useful, thanks so much for posting it. Margie On May 12, 8:17 am, George Song wrote: > On 5/12/2009 7

Re: overriding change_list.html causes 'maximum recursion depth exceeded' exception

2009-05-14 Thread Margie
Thanks for confirming it Nick. I saw it also on 1.0.2. I went ahead and created a ticket, it's ticket 11115. Margie On May 13, 1:32 pm, NickPresta wrote: > I can confirm this happens with 1.0.2 Final. > > On May 7, 2:44 pm, Margie wrote: > > > I am trying to o

Limiting the queryset for a foreign key field in the admin change_list view

2009-05-14 Thread Margie
, but I think I need to come up name/value pairs. If the GET is returning a list of user names, where does the value come from? Ok - sorry for the length of this but I've been working for awhile now on it and could really use some pointers from someone knowledgable out there. I know there is doc

Re: Limiting Choices of a ForeignKey with 'self'.

2009-05-14 Thread Margie
have, at: http://groups.google.com/group/django-users/browse_frm/thread/8383074770a19a61 Maybe I'm heading down the wrong path, it seems complex, I really am not sure... Margie On May 14, 4:54 pm, Jamie wrote: > Have you found a solution for this? I'm surprised no one has at least >

Re: using ajax in django

2009-05-14 Thread Margie
I found a very good tutorial at http://lethain.com/entry/2008/sep/21/intro-to-unintrusive-javascript-with-django/. I've just gone through it and it is really simple and helpful if you have little/no familiarity with ajax. Margie On May 14, 10:08 pm, veasna bunhor wrote: > Thanks

Re: Limiting the queryset for a foreign key field in the admin change_list view

2009-05-14 Thread Margie
o any further tonight. Margie On May 14, 8:23 pm, Colin Bean wrote: > On Thu, May 14, 2009 at 5:26 PM, Margie wrote: > > > Sorry for the length of this - I hope someone knowledgable about ajax > > has a minute to take a look, I've been working on it for awhile. > >

how to identify if fix for ticket 7028 is in trunk?

2009-05-18 Thread Margie
seems this is not in top of trunk, true? How would I tell that from svn? Also, when I read a ticket, and view the diffs (in the Attachments section), how can I tell what branch I am looking at? Thanks! Margie --~--~-~--~~~---~--~~ You received this message becaus

Re: how to identify if fix for ticket 7028 is in trunk?

2009-05-18 Thread Margie
nt SVN checkout, and you > will see that this argument hasn't been added. Yes, I did that and from that could see it wasn't really in trunk. I was just trying to figure out if I could somehow tell that from the ticket itself. Sounds like the answer is 'no',

Re: how to identify if fix for ticket 7028 is in trunk?

2009-05-18 Thread Margie
Thanks so much, Karen - that was very helpful and now I get it. Previously I didn't understand that those attachments were just proposed fixes and a method for communicating the proposed fixes. It all makes sense now. Pretty cool - actually. Margie On May 18, 5:54 pm, Karen Tracey

ForeignKeyRawId widget contains incorrect link when you click on search gif?

2009-05-18 Thread Margie
/user/?t=id Isn't this a bug? If so, I can post it, just wanted to get input first in case I am missing something. Margie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: ForeignKeyRawId widget contains incorrect link when you click on search gif?

2009-05-19 Thread Margie
x27;owner') ordering = ('name',) list_editable = ('owner',) raw_id_fields = ('owner',) admin.site.register(Task ,TaskAdmin) How do I identify the version of the code I am running on? Margie On May 19, 6:16 am, Karen Tracey wrote: > On Tue, May 19, 2

Re: ForeignKeyRawId widget contains incorrect link when you click on search gif?

2009-05-19 Thread Margie
he front of sys.path. Does the installation make it so that it doesn't print the svn revision info? Margie On May 19, 1:00 pm, Alex Gaynor wrote: > On Tue, May 19, 2009 at 2:21 PM, Margie wrote: > > > I tried it on trunk (checked out yesterday) and I see the problem >

Re: ForeignKeyRawId widget contains incorrect link when you click on search gif?

2009-05-19 Thread Margie
One more thing - when I first noticed the bug, I was using admin.site.root in the urls reference. But when pruning down the test case I moved to including admin.site.urls - that seemed to make no difference. Margie --~--~-~--~~~---~--~~ You received this message

How to identify form number when generating a change list view column value via a callable?

2009-05-22 Thread Margie
the editable fields, ie, something like id="id_form-0- mySpecialField". Is there any way for me to identify the form number that my code is being called on behalf of, so that I can generate an id similar to those in the editable fields? Margie --~--~-~--~~~

{% url %} in conjunction with context variable

2009-06-10 Thread Margie
I'm trying to figure out how to use the {% url %} tag in conjunction with a context variable. For example, I have the context variable 'app_name' available in my template, and I'd like to do something like this: List {{app_name}} Anyone know how

Re: {% url %} in conjunction with context variable

2009-06-10 Thread Margie
ere is not the url tag itself, but how to use a context variable inside of the tag. Margie On Jun 10, 1:18 pm, Dhruv Adhia wrote: > url > > Returns an absolute URL matching given view with its parameters. > > Documentation for using url tag > > This is a way to d

Re: {% url %} in conjunction with context variable

2009-06-10 Thread Margie
7;app_name', there's no way the tempalte system would know to resolve it. I think I can create my own filter List {{app_name}} def createListUrlName(str): return "list_%s" % str register.filter('createListUrlName', createListUrlName) I just thought there might be

Re: redirect after post caches anchor?

2009-09-12 Thread Margie
just something that discusses this problem. My googling didn't turn up much of anything but it seems like it would be a problem that others have as well. Margie On Sep 12, 7:26 pm, Tiago Serafim wrote: > Hi, > > This is the expected, as HTTP clients doesn't pass the #anchors to

Re: how to return ajax info in one case, and redirect to a different url in another?

2009-09-15 Thread Margie
27;/' before the anchor (www.example.com#comment_32) and used document.location = url that did the trick. Thanks very much for your comments, that was a big help. Margie On Sep 15, 6:41 am, Alex Robbins wrote: > Making the browser switch pages isn't too bad. Just set > document

Re: how to return ajax info in one case, and redirect to a different url in another?

2009-09-15 Thread Margie
Yes, that was going to be my fallback if I couldn't get the server validation to work. I just find it so much more maintainable to do the validation in python/django. Anyway, did finally get it working, thanks! Margie On Sep 15, 5:18 am, justind wrote: > Could you just do validatio

Success at using "reusable apps"?

2009-08-16 Thread Margie Roginski
roceeding down a path that will make that difficult, so I'm curious if any of you with lots of web app experience can lend any insights toward the best way to manage this sort of issue. Sorry for the long post here. Hopefully this is an interesting topic to some of you out there! Margie --

explanation of: {{ action.action_time|date:_("DATETIME_FORMAT") }}

2009-08-18 Thread Margie Roginski
#x27;_' in this case, and where is it defined? I see {% load il8n %}, but it is very hard to grep for '_', can seem to see where it is being defined there. Margie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

how to return an html snippet using ajax $.post()?

2009-08-20 Thread Margie Roginski
(the alert(data)). Instead the browser just replaces my with a page containing hello Could someone give me a pointer as to what I'm doing wrong? Margie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

how to identified what changed in an instance due to save of a ModelForm?

2009-08-26 Thread Margie Roginski
contains those 3 new publications. It looks like to get this right I would have to subclass ManyToManyField and provide a __deepcopy__ method. Is there some easier way of doing this that I'm missing? Thanks! Margie --~--~-~--~~~---~--~~ You received this messa

how to deploy an app that gets used by people in multiple time zones

2009-09-03 Thread Margie Roginski
o make sure I'm heading in the right direction. Thanks, Margie --~--~-~--~~~---~--~~ 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

redirect after post caches anchor?

2009-09-12 Thread Margie Roginski
nager/edit_task/12/ HTTP/1.1" 302 0 [12/Sep/2009 18:16:52] "GET /taskmanager/edit_task/12/ HTTP/1.1" 200 50904 So the #comment_101 is not there, yet it still appears in my firefox browser. Anyone know why this is? Thanks, Margie --~--~-~--~~~---~--~-

how to return ajax info in one case, and redirect to a different url in another?

2009-09-15 Thread Margie Roginski
t() started the server request, that the server should just redirect to a url (ie, using just the basic HttpResponseRedirect() or something like that) and not return and call the $.post callback function? Thanks for any pointers, Margie --~--~-~--~~~---~--~~ Yo

Developer help appreciated: unicode() not returning SafeString correctly - possibly a bug?

2009-10-14 Thread Margie Roginski
a python bug even? That's hard to believe, but I guess it's possible. Margie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Re: Developer help appreciated: unicode() not returning SafeString correctly - possibly a bug?

2009-10-15 Thread Margie Roginski
ebugging and not have the added complexity of the template. Ok, thanks for your response, that clarified a lot. Margie On Oct 14, 10:21 pm, Karen Tracey wrote: > On Wed, Oct 14, 2009 at 6:25 PM, Margie Roginski > wrote: > > > > > Eventually I end up in the force_unicode(

how to cut and paste image into django app

2009-10-22 Thread Margie Roginski
to Outlook this way. However, when I try to cut and paste this way into yahoo mail or gmail it doesn't work, so perhaps this is a hard thing to do in a web app. Any pointers/suggesions would be much appreciated. Thanks, Margie --~--~-~--~~~---~--~~ You receiv

Re: how to cut and paste image into django app

2009-10-23 Thread Margie Roginski
It is amazing to me that we are so far from having an easy solution for this in the web app world, I have to believe all of the social networking sights would love to have drag and drop images. Ok, so I will continue diving into your various suggestions for now ... thanks! Margie On Oct 23,

Re: how to cut and paste image into django app

2009-10-23 Thread Margie Roginski
this seem to echo what I was saying about badly needing this functionality to move towards a web app that feels like a desktop app. Ok, I'm off to figure this all out - thanks so much guys! Margie On Oct 23, 2:33 pm, kmike wrote: > No, my code doesn't do that, sorry for not expressi

Original path associated with an InMemoryUploadedFile

2009-11-05 Thread Margie Roginski
. However, I do not see any way of getting the orignal path name from the InMemoryUploadedFile that I have access to in my variable. Does anyone know if there is a way to get this original path? Thanks! Margie --~--~-~--~~~---~--~~ You received this message becaus

Re: Original path associated with an InMemoryUploadedFile

2009-11-05 Thread Margie Roginski
Yeah, that makes sense. Thanks! Margie On Nov 5, 5:21 pm, Karen Tracey wrote: > On Thu, Nov 5, 2009 at 6:53 PM, Margie Roginski > wrote: > > > > > > > In my app, my user inputs one more more attachments and on the server > > side I am successfull

how to send an rfc822 email attachment

2009-11-09 Thread Margie Roginski
ise TypeError('Expected list, got %s' % type(self._payload)) I'm thinking that my argument to ContentFile() is wrong. I'm giving it message.as_string(), and I suspect that is wrong, but I can't figure out what it should be. Can anyone give me a hand? Thank you for

help with EmailMultiAlternatives attach_file() or attach()

2009-11-09 Thread Margie Roginski
attaching it? Could anyone give me pointer? I've been reading through the doc, but this mail encoding stuff is still black magic to me and I can't find much in the way of example code. Margie --~--~-~--~~~---~--~~ You received this message because

For DateField, render() gets date object in some cases, but unicode datestring in other

2009-11-25 Thread Margie Roginski
do the compare? This seems somehow wrong to me, so I'm just wondering if I'm missing something. Thanks, Margie -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.

Re: Best UI for letting users select an item from a large selection of records?

2009-11-27 Thread Margie Roginski
For example, in my case, I have an autocomplete field where teh user needs to be able to enter one or more names of users, and this package allowed that whereas the standard one on the jquery site only allowed you to enter one. Margie On Nov 26, 5:47 am, Stodge wrote: > I have a Ticket model th

How to get rid of anchor in url when rendering via render_to_response()

2009-12-01 Thread Margie Roginski
in their view, rather than to the top of the page where their error is. Is there a way for me to get rid of the #comment_4 anchor in the url, so that they are taken back to the top of the page when render_to_response() is called? Thanks, Margie -- You received this message because you are

Re: How to get rid of anchor in url when rendering via render_to_response()

2009-12-01 Thread Margie Roginski
Ah, right. I had actually forgotten that the action attribute was what was setting my url! What you said makes perfect sense, thanks! Margie On Dec 1, 12:50 pm, Bill Freeman wrote: > Filter it off when you create the form action?  Or in more detail, > probably, in your view > functio

save_m2m() incorrectly ignoring exclude?

2009-12-03 Thread Margie Roginski
instance, cleaned_data[f.name]) Thanks, Margie -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr..

Re: save_m2m() incorrectly ignoring exclude?

2009-12-04 Thread Margie Roginski
Ok, thanks Russell, I will do that. Just first wanted to confirm I wasn't missing something. Margie On Dec 3, 3:59 pm, Russell Keith-Magee wrote: > On Fri, Dec 4, 2009 at 6:23 AM, Margie Roginski > > > > wrote: > > In forms/models.py I see this: > > >

Re: Using Forms to display and edit?

2009-12-15 Thread Margie Roginski
either create your field with a different widget based on that GET variable, or even modify what your widget does based on that GET variable (ie, pass the value of the GET variable in as a parameter to the widgets __init__() method so it can do different stuff based on it at render time. Anyway,

Re: Pre-populating forms with foreign keys

2009-12-16 Thread Margie Roginski
have used. What I did was pretty custom, but it certainly sounds like what a million other web apps out there do. Would be interested to hear what others are doing in this area. Margie On Dec 16, 9:31 am, Stewart wrote: > Disclaimer: This is my first Django adventure, please be gen

Best way to handle class attribute as a space separated string?

2009-12-21 Thread Margie Roginski
then the string in self.pastClass, and if tehre is not, just creates the class attribute containing self.pastClass. This seems like a lot of code to do something really simple and I feel like I'm repeating it in various places. I'm wondering if there is some better way that folks

Re: Best way to handle class attribute as a space separated string?

2009-12-21 Thread Margie Roginski
Ok, well just thought maybe I was missing some python builtin or django method that others were using. Looks like it's just something that needs be coded up and encapsulated. Thanks for your comments! Margie On Dec 21, 2:03 pm, Kieran Brownlees wrote: > Not very practical but fun to

Filtering for an object that is modified in memory loses those modifications?

2010-04-23 Thread Margie Roginski
filter is getting the object directly from the database, as opposed to getting the object that is in memory and modified (but not yet saved). Is this the expected behavior? Margie -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Filtering for an object that is modified in memory loses those modifications?

2010-04-23 Thread Margie Roginski
Thanks for the clarification Skylar and Bill. That all makes sense. Margie On Apr 23, 12:48 pm, Bill Freeman wrote: > This is correct behavior.  You do not have a handle on a db row. > You have a reference to an instance of a python class whose > attributes contain data copied from th

help with serving up mp4 with "nice" url

2010-06-04 Thread Margie Roginski
video$',direct_to_template, {"template": "[reference_to_site_media]/img/help/ overview_video/overview_video.html"}) But I can't figure out what to put in for [reference_to_site_media]. Could someone give me a hand? Thanks. Margie -- You received this message be

Re: help with serving up mp4 with "nice" url

2010-06-05 Thread Margie Roginski
tml and put in in my templates area. And if I want the html to be in site_media, then I should have my web server do the redirect. Thanks for the pointers. Margie On Jun 5, 5:01 am, Vasil Vangelovski wrote: > You can achieve this without django at all. By defining rewrite rules > on your

How To Create POST data without an actual POST?

2010-06-28 Thread Margie Roginski
here is any django support for turning a form directly into a data dict? Thanks! Margie -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this gro

Re: How To Create POST data without an actual POST?

2010-06-29 Thread Margie Roginski
fields). Then it will fill in the data supplied by the user, then POST it back. This allows me to get all the same defaults that people see in their forms, and also leverage all of the form validation. So I think this will work well, thanks for all the input! Margie On Jun 28, 1:22 pm, Margie

Is Django admin's "delete confirmation" considered RESTful?

2010-07-06 Thread Margie Roginski
nd in my app as well), the info on what we are going to delete is transient and can't be recreated through a new GET, so doing a GET on this new URL would have no purpose and would be confusing to the user. I know there is no "right" answer here. I'm just looking for opinions fr

Re: Is Django admin's "delete confirmation" considered RESTful?

2010-07-07 Thread Margie Roginski
sees? IE, instead of showing ://admin/auth/user, show ://admin/auth/ user_delete_confirmation? And if so, how does one do this? I don't think you can replace the url with render_to_response, right? I could do a redirect, but if I did that, I would have to save the ids of the users being de

Re: Is Django admin's "delete confirmation" considered RESTful?

2010-07-07 Thread Margie Roginski
Thanks Euan - I think that clarifies things. Thanks very much for your responses! Margie On Jul 7, 8:50 am, "euan.godd...@googlemail.com" wrote: > I think in the strict REST sense, it would be best to POST to one URL > with the list of object IDs to delete to set this ac

How to pass a GET param that contains multiple items

2010-07-10 Thread Margie Roginski
a bunch of times. What if the parameter itself has spaces? I've seen this '+' used - is that standard or just personal preference? Thanks, Margie -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: How to pass a GET param that contains multiple items

2010-07-12 Thread Margie Roginski
Thanks, Euan! Margie On Jul 11, 2:00 am, "euan.godd...@googlemail.com" wrote: > This is a standard encode/decode situation you are descibing. Django > automatically decodes the GET string the the browser encodes. If you > need spaces, then they wil be encoded and decode

what do you do to take your site down?

2010-08-06 Thread Margie Roginski
django? I additionally have a situation where when our mail server goes down, I would like to allow people to do GETS, but not POSTS. If you have any ideas on this I would be interested. Thanks for any pointers! Margie -- You received this message because you are subscribed to the Google Groups &qu

Re: what do you do to take your site down?

2010-08-06 Thread Margie Roginski
Thank you very much - that all makes perfect sense. Margie On Aug 6, 9:09 am, akaariai wrote: > On 6 elo, 18:36, Margie Roginski wrote: > > > Could anyone give me some pointers as to how you deal with taking your > > site down for maintenance?  Is there some standard thing

Re: mod_wsgi, apache, windows XP

2010-09-07 Thread Margie Roswell
my settings.py on slicehost is publicly readable. Is that just a permissions issue? No, it has same permissions. as another server where the settings.py can't be downloaded... Of course, we don't want people to see the database password. How is this usually resolved? Margie On

How to get request.user when Django emails a 500 error report?

2010-10-15 Thread Margie Roginski
Do I need to write the process_exception() middleware and add it in myself? Anyone have an example?! Thanks! Margie -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com.

How do I associate a mime_type with a file?

2010-11-04 Thread Margie Roginski
7; I just was wondering if this is the appropriate solution, or if there is anything I'm missing. Thanks for any pointers, Margie -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us..

Re: How to get request.user when Django emails a 500 error report?

2010-11-05 Thread Margie Roginski
response was so excellent and concise, took me just a few minutes to get it integrated and working. Thank you!!! Margie On Oct 25, 10:17 pm, Sid wrote: > I wrote a middleware that adds a process_exception handler. It adds > the user info to the request.META so they show up in emails. > >

How to remove an app and its tables

2010-11-05 Thread Margie Roginski
I've stopped using a particular app in my project. I've used South to remove its tables, but I still see those tables referenced by the auth, content_type, and django_project_version tables. Is this ok? Anyone know if it will cause me any problems down the line? Margie -- You rec

SQL mystery with INNER JOIN?

2010-12-09 Thread Margie Roginski
need to do an INNER JOIN with the auth_user table? Why isn't the query simly this? SELECT COUNT(*) FROM book_readers WHERE book_readers.book_id = 15 Any pointers appreciated, thanks! Margie -- You received this message because you are subscribed to the Google Groups "Django users

Business logic versus rendering code and how it affects OO code organization

2009-12-29 Thread Margie Roginski
o keep the rendering code separate from the business logic? Just curious if others have encountered this and what the "best practice" philosophy is here. Margie -- You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: Unhelpful template traceback

2010-01-04 Thread Margie Roginski
it a try. Margie On Jan 4, 9:08 am, Thomas Steinacher wrote: > The actual error is not my point. I know that it's somewhere in a > reverse/url method, but there is no way I can test it. The point is > that there is no helpful template traceback in the deployment error e- > ma

Re: form.has_changed always true?

2010-01-06 Thread Margie Roginski
If you look at the form's _changed_data attribute, it will give you a list of the fields that have changed. That should tell you what is causing has_changed() to return True. Margie On Jan 6, 6:50 pm, Karen Tracey wrote: > On Wed, Jan 6, 2010 at 7:34 PM, Alastair Campbell wrote

Order model objects by foreign key "set" count

2010-01-11 Thread Margie Roginski
syntax doesn't work, however. Is this possible? Margie -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django

Re: Order model objects by foreign key "set" count

2010-01-11 Thread Margie Roginski
hat documentation link describes it very well. Thanks Scott! Margie On Jan 11, 7:51 pm, Scott Maher wrote: > Margie Roginski wrote: > > Say I have a Reader model that has a foreign key to a Book > > > class Reader(models.Model): > >   book = models.ForeignKey(Book) &

Ok to load many .js files to support lots of interactive widgets?

2010-01-14 Thread Margie Roginski
ery happy so I don't think I'm going overboard on the UI side, but I'm just wondering if there are issues associated with they way I am organizing the .js, or if what I'm doing is a good way to go. I am doing client side caching of the files, and so far things seem fast. I

Re: Ok to load many .js files to support lots of interactive widgets?

2010-01-14 Thread Margie Roginski
Thanks Daniel, I will look into Yahoo YSlow. Is there a particular tool/toolset that you have used/recommend for doing the combining? Margie On Jan 14, 2:37 pm, Daniel Roseman wrote: > On Jan 14, 8:01 pm, Margie Roginski wrote: > > > > > As I've learned more about

debugging server code problems in server code that is invoked via ajax request

2010-02-11 Thread Margie Roginski
o the error from the server code and is there any way to see it? This is all using ./manage.py runserver. I'm not concerned with the deployment environment at all. Margie -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: AJAX Autocompletion Field

2010-02-13 Thread Margie Roginski
, and the author doesn't really seem to respond, so it is not well supported and if you need enhancements, you have to dive in and understand the code. Margie On Feb 13, 2:46 pm, Jon Loeliger wrote: > Folks, > > For likely the umpteenth time, can someone recommend a good > AJA

Re: debugging server code problems in server code that is invoked via ajax request

2010-02-25 Thread Margie Roginski
o see the error trace in my browser, so that's helpful and that's the tact I have been taking lately. Margie On Feb 12, 2:33 am, bruno desthuilliers wrote: > On Feb 11, 10:27 pm, MargieRoginski wrote: > > > I have a question about debugging django server side code in the

<    1   2   3   >