Re: Django Calendar App Just Like Google Calendar

2013-09-03 Thread Margie Roswell
I'm late back to this thread, but Tito, thank you! I have a "dumb" (or basic) question. Looks like events can be dragged and dropped. Is that true for the end-user as well? -- http://FarmBillPrimer.org http://www.BaltimoreUrbanAg.org (Please send events; This site is hungry.)

Re: Django Calendar App Just Like Google Calendar

2013-08-10 Thread Margie Roswell
dar-a-step-by-step-tutorial/ but honestly, I'll do best to start with a working repo (events, calendar, address mapping) (It makes me wonder if anyone has wrapped up a whole bunch of sample django apps, for easy reuse in general.) Margie -- http://FarmBillPrimer.org http://www.BaltimoreU

Translating tooltip key to tooltip text: use ugettext() and il8n?

2011-06-04 Thread Margie Roginski
for these tooltips. Perhaps I should just be using a custom solution, or perhaps there is something more standard that folks are using? Anyone with some experience in this area that can comment? Much appreciated, Margie -- You received this message because you are subscribed to the Google Groups "D

Re: save out a test database?

2011-06-04 Thread Margie Roginski
from the web interface, but in reality, now that I am off and running writing tests, I guess I haven't ended up needing it after all ... In any case, thanks for your response. Margie On Jun 4, 5:47 am, Karen Tracey <kmtra...@gmail.com> wrote: > On Thu, Jun 2, 2011 at 10:04 AM, Margie

Re: save out a test database?

2011-06-02 Thread Margie Roginski
that there is no more standard way of dumping the database from inside a test so that the state can be replicated for use in a runserver environment. Margie On Jun 1, 2:01 pm, Kirill Spitsin <t...@0x746e.org.ua> wrote: > On Wed, Jun 01, 2011 at 11:59:28AM -0700, Margie Roginski wrote: > >

Re: save out a test database?

2011-06-01 Thread Margie Roginski
do I call from that point to create the mydata.json file that then gets loaded with the command django-admin.py testserver mydata.json Thanks! Margie On May 29, 7:28 pm, Jason Culverhouse <ja...@mischievous.org> wrote: > On May 29, 2011, at 7:13 PM, Margie Roginski <margierogin.

save out a test database?

2011-05-29 Thread Margie Roginski
(ie, runserver) - is that possible? 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-users@googlegroups.com. To unsubscribe from this group, send email to dj

Re: Question about "Django 1.1 Testing and Debugging" Book for Karen

2011-04-29 Thread Margie Roginski
forward to learning from your book. Thanks! Margie On Apr 29, 4:40 am, Karen Tracey <kmtra...@gmail.com> wrote: > On Thu, Apr 28, 2011 at 6:18 PM, Margie Roginski > <margierogin...@yahoo.com>wrote: > > > > > I have a bit of time on my hands and was going to run t

Question about "Django 1.1 Testing and Debugging" Book for Karen

2011-04-28 Thread Margie Roginski
with django 1.2.? Or maybe the changes between 1.1 and 1.2 are just very minor? I see something about "class based test runners" in the doc. I haven't really had a chance to dive in yet, but just thought I'd ask if you have any updates you'd be willing to provide. Thanks, Margie -- Yo

Intermediary model with many to many from model to itself not fully documented?

2011-04-06 Thread Margie Roginski
Hi developers - your review would be appreciated here! It seems to me, based on my experimentation, that if I have an intermediary model that has a many-to-many relationship from the model to itself, that the order of the two fields that point back to the model is important. For example: class

Re: How i can get username into the error mail?

2011-03-16 Thread Margie Roginski
mportant. But this is a common need so it seems worthwhile to post it explicitly to help the django community. Margie On Mar 16, 11:49 am, Shawn Milochik <sh...@milochik.com> wrote: > On Wed, Mar 16, 2011 at 2:47 PM, emonk <elmonke...@gmail.com> wrote: > > I'm tired of searching a

Re: How to use extra to count based on the value of a field?

2011-03-16 Thread Margie Roginski
call last) /home/mlevine/django/chipvision74/chip_vision_2/ in () AttributeError: 'Queue' object has no attribute 'num_tasks_closed' Margie On Mar 16, 9:13 am, Tom Evans <tevans...@googlemail.com> wrote: > On Wed, Mar 16, 2011 at 3:49 PM, Margie Roginski > > <margierogin...@ya

Re: How to use extra to count based on the value of a field?

2011-03-16 Thread Margie Roginski
there is some other approach that I am missing ... Margie On Mar 15, 2:43 am, Tom Evans <tevans...@googlemail.com> wrote: > On Mon, Mar 14, 2011 at 8:57 PM,MargieRoginski > > <margierogin...@yahoo.com> wrote: > > class Queue(models.Model): > >  # fields here,

Re: How to use extra to count based on the value of a field?

2011-03-15 Thread Margie Roginski
Ah, right - so obvious! I'm not sure why it didn't occur to me to filter first, then annotate. Thank you! On Mar 15, 2:43 am, Tom Evans <tevans...@googlemail.com> wrote: > On Mon, Mar 14, 2011 at 8:57 PM, Margie Roginski > > <margierogin...@yahoo.com> wrote: > &g

How to use extra to count based on the value of a field?

2011-03-14 Thread Margie Roginski
total number of open tasks (I think). Can anyone give me a hand? Thank you! 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. To unsubscribe from this grou

Re: how to get attribute of intermediary model?

2011-02-27 Thread Margie Roginski
Ah yes, that is *much* better. Thank you! Sorry for the delay, forgot to check back on this thread till now. Margie On Feb 17, 2:28 pm, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Thursday, February 17, 2011 10:06:40 PM UTC, Margie Roginski wrote: > > > Thanks for your

Re: how to get attribute of intermediary model?

2011-02-17 Thread Margie Roginski
membership info for a given group, but I'm guessing that my original solution is the appropriate solution for getting the join date for just a single person? Margie On Feb 16, 2:05 am, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Wednesday, February 16, 2011 12:36:49 AM UTC, Margie Rogin

how to get attribute of intermediary model?

2011-02-15 Thread Margie Roginski
ilter(group_name="beatles") [0].date_joined 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-users@googlegroups.com. To unsubscribe fro

Bug when OR'ing an empty Q() with a non-empty Q()?

2011-01-03 Thread Margie Roginski
set to foo. Task.objects.filter(Q()) gives me that one object: [] But: Task.objects.filter(Q()|Q(name="bar")) returns [] Is this a bug or am I misunderstanding something? This is on Django 1.2.1 Thanks for any pointers, Margie -- You received this message because you are

Utility of select_related when rendering ForeignKeys in a form? [Developer eyes appreciated]

2010-12-13 Thread Margie Roginski
I simply not be using select_related in this situation? Is it primarily intended for use from views.py, where you have more control over exactly how and when you reference the attributes of a model instance? Or is there some better way I could be making use of it? Thank you! Margie -- You

SQL mystery with INNER JOIN?

2010-12-09 Thread Margie Roginski
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" group. To post to

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 received

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

2010-11-05 Thread Margie Roginski
nse 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 <sidmitra@gmail.com> wrote: > I wrote a middleware that adds a process_exception handler. It adds > the user info to the request.META so

How do I associate a mime_type with a file?

2010-11-04 Thread Margie Roginski
propriate 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...@googlegroups.com. To unsubscribe from this group, send ema

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

2010-10-15 Thread Margie Roginski
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. To u

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 Mon, Sep 6

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 <akaar...@gmail.com> wrote: > On 6 elo, 18:36, Margie Roginski <margierogin...@yahoo.com> wrote: > > > Could anyone give me some pointers as to how you deal with taking your >

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: 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" <euan.godd...@gmail.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,

How to pass a GET param that contains multiple items

2010-07-10 Thread Margie Roginski
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 email to django-us...@googlegroups.com. To u

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" <euan.godd...@gmail.com> wrote: > I think in the strict REST sense, it would be best to POST to one URL > with the list of objec

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

2010-07-07 Thread Margie Roginski
tead 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 deleted (in the sessio

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

2010-07-06 Thread Margie Roginski
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 from people who value well structured APIs.

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

How To Create POST data without an actual POST?

2010-06-28 Thread Margie Roginski
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 group, send email to django-user

help with serving up mp4 with "nice" url

2010-06-04 Thread Margie Roginski
, {"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 because you are subscribed to the Google G

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 <ke1g...@gmail.com> 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 > attribut

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

2010-04-23 Thread Margie Roginski
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 to this g

Re: Forms with read only fields

2010-03-22 Thread Margie Roginski
I implement read-only fields by using widgets that render html that does not include any . For example, if I have a field called hobby in a Customer model, in my form I have something like this: self.fields["hobby"] = CharField(widget=DisplayHobbyField(customer), required=False)

Re: why is __exact filter really doing an inexact match?

2010-03-10 Thread Margie Roginski
Ah yes - I am using mysql. Thanks for that pointer. Margie On Mar 10, 1:34 pm, Karen Tracey <kmtra...@gmail.com> wrote: > Are you using MySQL? See the note about MySQL here: > > http://docs.djangoproject.com/en/dev/ref/models/querysets/#exact > > Karen -- You received thi

why is __exact filter really doing an inexact match?

2010-03-10 Thread Margie Roginski
me: u'margie.rogin...@gmail.com' I thought this is supposed to be a case sensitive operation - am I missing something here? I'm running with the 1.1 final release. Thanks, Margie Roginski -- You received this message because you are subscribed to the Google Groups "Django users" gro

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

2010-02-25 Thread Margie Roginski
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 <bruno.desthuilli...@gmail.com> wrote: > On Feb 11, 10:27 pm, MargieRoginski<margierogin...@yahoo.com> wrote: > > > I have a question about

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 <j...@jdl.com> wrote: > Folks, > > For likely the umpteenth time, can someone recommen

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

2010-02-11 Thread Margie Roginski
to 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 this group,

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 <dan...@roseman.org.uk> wrote: > On Jan 14, 8:01 pm, Margie Roginski <margierogin...@yaho

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

2010-01-14 Thread Margie Roginski
f 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'd like to hear input from anyone with more experience on whether this is a good organization or if there is some preferable way to go. Margie -- You received this message because yo

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

2010-01-11 Thread Margie Roginski
. Thanks Scott! Margie On Jan 11, 7:51 pm, Scott Maher <sc...@thereceptor.net> 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) > > > Now say

Order model objects by foreign key "set" count

2010-01-11 Thread Margie Roginski
) This 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-user

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 <kmtra...@gmail.com> wrote: > On Wed, Jan 6, 2010 at 7:34 PM, Alastair

Re: Unhelpful template traceback

2010-01-04 Thread Margie Roginski
. Margie On Jan 4, 9:08 am, Thomas Steinacher <t...@eggdrop.ch> 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-

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

2009-12-29 Thread Margie Roginski
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 post to this

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 <kbrownl...@gmail.com> wrote: >

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

2009-12-21 Thread Margie Roginski
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 deal with

Re: Pre-populating forms with foreign keys

2009-12-16 Thread Margie Roginski
. 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 <stewart.mathe...@gmail.com> wrote: > Disclaimer: This is my first Django adventur

Re: Using Forms to display and edit?

2009-12-15 Thread Margie Roginski
dget 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, hope this helps and am curious if others use

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 <freakboy3...@gmail.com> wrote: > On Fri, Dec 4, 2009 at 6:23 AM, Margie Roginski > > > > <margierogin...@yahoo.com> wrote: &

save_m2m() incorrectly ignoring exclude?

2009-12-03 Thread Margie Roginski
nce, 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...@goo

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 <ke1g...@gmail.com> wrote: > Filter it off when you create the form action?  Or in more detail, > probably,

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

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 <sto...@gmail.com> wrote: &g

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

2009-11-25 Thread Margie Roginski
he 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.com. To unsubsc

help with EmailMultiAlternatives attach_file() or attach()

2009-11-09 Thread Margie Roginski
nter? 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 you are subscribed to the Google Groups "Dja

how to send an rfc822 email attachment

2009-11-09 Thread Margie Roginski
ing 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 any pointers! Margie --~--~-~--~~~---~--~~ You received this

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 <kmtra...@gmail.com> wrote: > On Thu, Nov 5, 2009 at 6:53 PM, Margie Roginski > <margierogin...@yahoo.com>wrote: > > > > > > > In my app, my user inputs one more more atta

Original path associated with an InMemoryUploadedFile

2009-11-05 Thread Margie Roginski
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 because you are subscribed

Re: how to cut and paste image into django app

2009-10-23 Thread Margie Roginski
in 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 <kmik...@googlemail.com> wrote: > No, my code doesn't do th

Re: how to cut and paste image into django app

2009-10-23 Thread Margie Roginski
t 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, 11:50 am, Javier Guerra

how to cut and paste image into django app

2009-10-22 Thread Margie Roginski
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 received this message

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

2009-10-15 Thread Margie Roginski
response, that clarified a lot. Margie On Oct 14, 10:21 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Wed, Oct 14, 2009 at 6:25 PM, Margie Roginski > <margierogin...@yahoo.com>wrote: > > > > > Eventually I end up in the force_unicode() function at code that looks

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

2009-10-14 Thread Margie Roginski
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-users@googlegroups.com To unsubscribe from this group, send e

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 <justin.don...@gmail.com> wrote: >

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

2009-09-15 Thread Margie
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 <alexander.j.robb...@gmail.com> wrote: > Making the browser switch pages isn't too bad. Just set > document.lo

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

2009-09-15 Thread Margie Roginski
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 --~--~-~--~~~---~--~~ You received

Re: redirect after post caches anchor?

2009-09-12 Thread Margie
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 <tsera...@gmail.com> wrote: > Hi, > > This is the expected, as HTTP clients doesn't pa

redirect after post caches anchor?

2009-09-12 Thread Margie Roginski
8: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 --~--~-~--~~~---~--~~ You received this message because you are subscrib

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

2009-09-09 Thread Margie
Sorry for the delay in response - was on vacation for a few days. After reading up more on naive and aware timezones in python, this all makes more sense now. Thanks for your pointers, they were helpful. Margie On Sep 4, 9:03 am, Brian Neal <bgn...@gmail.com> wrote: > On Sep 4,

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

2009-09-09 Thread Margie
Tracy, Sorry for the delay, just got back from a short vacation. Thanks very much for your clarification. I think I now understand how to proceed! On Sep 7, 8:06 pm, Tracy Reed <tr...@ultraviolet.org> wrote: > On Thu, Sep 03, 2009 at 03:48:14PM -0700, Margie spake thusly: &

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

2009-09-04 Thread Margie
date/time. It seems to me that I should just be saving the generic form of the date/time and then rendering it in the format approriate for the user that it is being rendered for. IE, use the timezone only when rendering, not when saving. Margie On Sep 4, 12:22 am, Maksymus007 <maksy

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

2009-09-03 Thread Margie
if there is anything planned for develpment in this area as I could possibly wait a few months to implement this if there was going to be some additional support coming on the django side. Margie On Sep 3, 3:02 pm, Tim Chase <django.us...@tim.thechases.com> wrote: > > I've created a django ap

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

2009-09-03 Thread Margie Roginski
'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 To unsubscribe from th

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

2009-08-26 Thread Margie Roginski
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 message because you are subscribed to the Goo

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

2009-08-21 Thread Margie
Yes, I have been learning and using jquery a lot lately. I find it really makes traversing around in the dom easy. Also, I have found some excellent plugins such as the cluetip pluging and datepicker plugins. All good stuff! Margie On Aug 20, 3:16 pm, Matthias Kestenholz <matthias.kest

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

2009-08-21 Thread Margie
Thanks for that example, Steve. I think I have made it past my problem, but it is always good to see what others are doing. In your example you have this: target.innerHTML = (eval(data)); Why do you use eval there? Isn't data just a string, something like '2009-08-21 11:41'? Margie On Aug

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

2009-08-20 Thread Margie
around {% get_my_url %}. I was clearly doing a spiral downward - thanks very much for your save! Margie On Aug 20, 2:40 pm, Matthias Kestenholz <matthias.kestenh...@gmail.com> wrote: > On Thu, Aug 20, 2009 at 11:34 PM, Margie > > > > Roginski<margierogin...@yahoo.com> wrot

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

2009-08-20 Thread Margie Roginski
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 "Django users&

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

2009-08-19 Thread Margie
Ah, thank you very much! That makes more sense now. Margie On Aug 18, 4:30 pm, Ramiro Morales <cra...@gmail.com> wrote: > On Tue, Aug 18, 2009 at 7:08 PM, Margie > > Roginski<margierogin...@yahoo.com> wrote: > > > I was trying to figure out how

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

2009-08-18 Thread Margie Roginski
rks? What is '_' 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 Google Groups "Djan

Re: template syntax

2009-08-18 Thread Margie
%} {{studentTuple.0}} {{studentTuple.1}} {% endfor %} Margie On Aug 18, 8:48 am, elminio <wgruszczyn...@gmail.com> wrote: > I iterate through all students and have distionary containing students > ids as key and for example grade as a value. I pass this dictionary to > the view

Re: Success at using "reusable apps"?

2009-08-17 Thread Margie
that is the obvious solution to finding a way to do things in my own code without messing with the "reusable" app. Thanks for that suggestion! Margie On Aug 16, 10:41 pm, Andy McKay <a...@clearwind.ca> wrote: > On 16-Aug-09, at 8:50 PM, Margie Roginski wrote: > > > * modify the th

Success at using "reusable apps"?

2009-08-16 Thread Margie Roginski
us 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 --~--~-~--~~~---~--~~ You received this

Re: Easy question

2009-08-13 Thread Margie
to the instance. If you give just initial data, then I believe when you save it just creates a new object, since it is not bound to any existing object. If you give initial and POST data, then it will merge those together (with the post data winning) and create your new object based on that. Margie

Re: Reloading a page with new data

2009-08-13 Thread Margie
nce django doesn't really have much to do with the javascript side of things, but still, I'd be interested to know how others in this django community are creating popup windows that fill in information and then pass it back to some "main" window. Margie On Aug 13, 9:40 am,

Re: Bug with model get_*_display() methods?

2009-08-09 Thread Margie
Thanks for the pointers, that all make sense now. Margie On Aug 8, 6:47 pm, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Sat, 2009-08-08 at 12:09 -0700, Margie wrote: > > [...] > > > Question: If want to use a special widget for a ChoiceField, is

Re: Bug with model get_*_display() methods?

2009-08-09 Thread Margie
Right - of course. Don't ask me why didn't realize to use IntegerField ().to_python myself ... Margie On Aug 8, 12:32 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Sat, Aug 8, 2009 at 2:09 PM, Margie<margierogin...@yahoo.com> wrote: > > > Ok, still slightly c

Re: Bug with model get_*_display() methods?

2009-08-08 Thread Margie
to override the widget? In my case I have verified that if I set coerce=int that does work, but that doesn't seem very general. I'd much rather use whatever the standard coerce method would have been if I hadn't overridden the widget. Margie On Aug 8, 12:11 am, Malcolm Tredinnick <malc...@poi

Re: Bug with model get_*_display() methods?

2009-08-08 Thread Margie
as masking the error and I would have run into this in a more serious way when I moved to a different db? Ok, cool, learn something new every day. Thanks for you pointers, if you can just yay or nay my hypotheses above, that'd be cool. Margie On Aug 7, 7:39 pm, Malcolm Tredinnick <malc...@

Re: django-threadedcomments app

2009-08-07 Thread Margie
! Margie On Aug 7, 3:02 pm, Eric Florenzano <flo...@gmail.com> wrote: > >   * Does the .5 version work with django 1.1? > > Yes, it should work just fine. > > >   * Do you have any sort of ETA on when you think the GitHub version > > will be ready for public use?  

Bug with model get_*_display() methods?

2009-08-07 Thread Margie
) self.status u'3' (Pdb) self.get_status_display() u'3' Is this expected behavior? Margie --~--~-~--~~~---~--~~ 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: django-threadedcomments app

2009-08-06 Thread Margie
level of functionality working. Thanks very much for the package, it seems very nice. My goal is to provide a comment interface to my users that is similar to the google groups interface - it seems that threadedcomments is very well suited to that, do you agree? Margie On Aug 6, 4:40 pm, Margie

django-threadedcomments app

2009-08-06 Thread Margie
the comment extension hooks provided in Django 1.1 and will be backwards incompatible. Anyway, just wondering if anyone here knows anything more? Margie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

  1   2   3   >