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.) http://www.ExcellentN

Re: Django Calendar App Just Like Google Calendar

2013-08-10 Thread Margie Roswell
one-js-and-fullcalendar-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.

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

2011-06-04 Thread Margie Roginski
so perhaps it is overkill to enable this just 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 b

Re: save out a test database?

2011-06-04 Thread Margie Roginski
test 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 wrote: > On Thu, Jun 2, 2011 at 10:04 AM, Margie Roginski > wr

Re: save out a test database?

2011-06-02 Thread Margie Roginski
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 wrote: > On Wed, Jun 01, 2011 at 11:59:28AM -0700, Margie Roginski wrote: > > That's a good pointer, th

Re: save out a test database?

2011-06-01 Thread Margie Roginski
, but what 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 wrote: > On May 29, 2011, at 7:13 PM, Margie Roginski wrote: > > > Anyone kno

save out a test database?

2011-05-29 Thread Margie Roginski
lient (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 t

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

2011-04-29 Thread Margie Roginski
ork much, so I am looking forward to learning from your book. Thanks! Margie On Apr 29, 4:40 am, Karen Tracey wrote: > On Thu, Apr 28, 2011 at 6:18 PM, Margie Roginski > wrote: > > > > > I have a bit of time on my hands and was going to run through your > > book to

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,

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 T

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

2011-03-16 Thread Margie Roginski
e agree that being able to google and then adapt things is very important. 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 wrote: > On Wed, Mar 16, 2011 at 2:47 PM, emonk wrote: > > I'm ti

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

2011-03-16 Thread Margie Roginski
aceback (most recent 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 wrote: > On Wed, Mar 16, 2011 at 3:49 PM, Margie Roginski > > wrote: >

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

2011-03-16 Thread Margie Roginski
umber of closed tasks. Perhaps there is some other approach that I am missing ... Margie On Mar 15, 2:43 am, Tom Evans wrote: > On Mon, Mar 14, 2011 at 8:57 PM,MargieRoginski > > wrote: > > class Queue(models.Model): > >  # fields here, not relevant for this d

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 wrote: > On Mon, Mar 14, 2011 at 8:57 PM, Margie Roginski > > wrote: > > class Queue(models.Model): > >  # fields here, n

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

2011-03-14 Thread Margie Roginski
resulting queues withthe 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 u

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 wrote: > On Thursday, February 17, 2011 10:06:40 PM UTC, Margie Roginski wrote: > > > Thanks for your reply, Daniel.  I didn'

Re: how to get attribute of intermediary model?

2011-02-17 Thread Margie Roginski
easy to get all 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 wrote: > On Wednesday, February 16, 2011 12:36:49 AM UTC, Margie Roginski wrot

how to get attribute of intermediary model?

2011-02-15 Thread Margie Roginski
person.memberships.filter(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

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

2011-01-03 Thread Margie Roginski
name 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 su

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

2010-12-13 Thread Margie Roginski
y understanding is correct? Should 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 o

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

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

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 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..

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.

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

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

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" 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

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: 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

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

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: 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
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: 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

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: 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

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: Forms with read only fields

2010-03-21 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) DisplayHobbyFie

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 wrote: > Are you using MySQL? See the note about MySQL here: > > http://docs.djangoproject.com/en/dev/ref/models/querysets/#exact > > Karen -- You received this message because you ar

why is __exact filter really doing an inexact match?

2010-03-10 Thread Margie Roginski
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

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

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

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: 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

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: 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) &

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: 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

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

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: 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

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: 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

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: 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: > > >

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: 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

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: 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

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.

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

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

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

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: 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

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,

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: 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(

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: 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

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

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

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

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 --~--~-~--~~~---~--~-

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 wrote: > On Sep 4, 10:47 am, Margie wr

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 wrote: > On Thu, Sep 03, 2009 at 03:48:14PM -0700, Margie spake thusly: > > > What is the default

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

2009-09-04 Thread Margie
th my 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 wrote: >

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

2009-09-03 Thread Margie
urious 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 wrote: > > I've created a django app and I soon am go

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

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

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 wrote: > On

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'?

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

2009-08-20 Thread Margie
uotes 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 wrote: > On Thu, Aug 20, 2009 at 11:34 PM, Margie > > > > Roginski wrote: > > > Could someone give me a hand with a very

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

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 wrote: > On Tue, Aug 18, 2009 at 7:08 PM, Margie > > Roginski wrote: > > > I was trying to figure out how to run the date filter, using > > SETTINGS.DATETIME_FORMAT as a

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

Re: template syntax

2009-08-18 Thread Margie
%} {{studentTuple.0}} {{studentTuple.1}} {% endfor %} Margie On Aug 18, 8:48 am, elminio 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 and then while iterating th

Re: Success at using "reusable apps"?

2009-08-17 Thread Margie
ess 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 wrote: > On 16-Aug-09, at 8:50 PM, Margie Roginski wrote: > > > * modify the threadedcomm

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 --

Re: Easy question

2009-08-13 Thread Margie
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 On

Re: Reloading a page with new data

2009-08-13 Thread Margie
;, since 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 wrote: > On Sat, 2009-08-08 at 12:09 -0700, Margie wrote: > > [...] > > > Question: If want to use a special widget for a ChoiceField, is it > > true that I need to instant

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 wrote: > On Sat, Aug 8, 2009 at 2:09 PM, Margie wrote: > > > Ok, still slightly confused.  First - a high level description.  I > >

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

2009-08-08 Thread Margie
wasn't trying 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

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

2009-08-07 Thread Margie
ing but sqlite3 so far, so I guess that was 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 Au

Re: django-threadedcomments app

2009-08-07 Thread Margie
! Margie On Aug 7, 3:02 pm, Eric Florenzano 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?  Is it in a form now that it

Bug with model get_*_display() methods?

2009-08-07 Thread Margie
turn a useful string: (Pdb) type(self) (Pdb) 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 "

Re: django-threadedcomments app

2009-08-06 Thread Margie
base 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, M

  1   2   3   >