problem saving form data in sams "24 hour" book example

2008-12-02 Thread Margie
alse and the errors that get printed to the form are: * Person with this UserID already exists * Person with this Email already exists It seems like update is trying to create a new person with the same UserID, when really I want to just be modifying the person with that UserID. Can anyone tell

Re: problem saving form data in sams "24 hour" book example

2008-12-02 Thread Margie
Thank you so much - that was a huge help! Margie On Dec 2, 5:17 pm, "Colin Bean" <[EMAIL PROTECTED]> wrote: > On Tue, Dec 2, 2008 at 5:09 PM, Margie <[EMAIL PROTECTED]> wrote: > > > I'm a new user to django and am attempting to go through the Sams > &

open source project management app that uses django?

2008-12-03 Thread Margie
ght of. So I'm thinking it would be great to bootstrap from some existing code, even if it doesn't do quite what I want. I would be happy to contribute my own work back to the open source community. Thanks for any ideas! Margie --~--~-~--~~~---~--~~ You

Re: open source project management app that uses django?

2008-12-04 Thread Margie
ight, and I can see how that is very nice. Thanks, Margie On Dec 3, 5:59 pm, maeck <[EMAIL PROTECTED]> wrote: > Margie, > > If you can think up a decent model, you might be able to setup the > core of the project management application in the Django contrib.admin > module. &

Re: open source project management app that uses django?

2008-12-04 Thread Margie
ccessible at http://MEDIA_PATH/helpdesk/ I did the ln, but I don't understand how to make the contantes of media/helpdes accessible at http://MEDIA_PATH/helpdesk/ What do I do to make them "accessible"? Margie On Dec 3, 11:27 pm, "Hanny Wibisono" <[EMAIL P

Re: open source project management app that uses django?

2008-12-04 Thread Margie
Ok - forget it - I figured it out! I found the django pages on how to serve static files and that showed me what I need to know and it looks great now. On Dec 4, 12:54 pm, Margie <[EMAIL PROTECTED]> wrote: > Ok - this is very useful!  It is just great to see a "real" app th

modeling questions

2008-12-05 Thread Margie
manage the process of chip design (the state/city thing above is just an analogy). 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 dj

Bay Area Django consultant wanted

2008-12-05 Thread Margie
own pocket. Looking for someone that is available pretty much immediately. My time is flexible in terms of day/time for meeting. Hope this is an ok place to post this, sorry if I am offending anyone, I will post it only this once. Thanks, Margie

Re: Do you recommend "Practical Django Projects"?

2009-01-05 Thread Margie
I was a total web framework newbie and got started with the SAMS book. I think it's called "learn Django in 24 hours" or something like that. It has a ton of errors and from that standpoint, it not a good book. However, it is the only book I've found that really leads you step by step through c

best way to do tabs?

2009-01-08 Thread Margie
better frameworks than css? Anyway, any pointers from those of you more experienced than me are appreciated! Margie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: best way to do tabs?

2009-01-08 Thread Margie
ge of the ids that cause the tabs to darken. If each tab has its own id and you are creating them dynamically, it seems like the static nature of css just can't deal with this. On Jan 8, 8:29 am, "Ariel Mauricio Nunez Gomez" wrote: > Margie, I agree the current metod for a

Re: best way to do tabs?

2009-01-08 Thread Margie
a simple task, but it is your > bikeshed and you get to paint it any color you may want :) > > Ariel. > > > > On Thu, Jan 8, 2009 at 12:30 PM, Margie wrote: > > > I think the issue I have is that I seem to need to maintain "state". > > Let me use a contri

how/where to constrain the relationships in a model?

2009-01-14 Thread Margie
riate location in the code to enforce this? I'm not sure if there is a way to enforce this within the model itself. If not, then is the appropriate thing to do to just check it in my public interface when I, for example, add an owner to a task? Thanks! Mar

Re: how/where to constrain the relationships in a model?

2009-01-14 Thread Margie
Thanks Ariel! That makes sense ... On Jan 14, 1:52 pm, Ariel Mauricio Nunez Gomez wrote: > Margie, > > My best bet would be to override the model's save method and do your > validation there. > > http://docs.djangoproject.com/en/dev/ref/models/instances/?from=olddo... &g

trouble with yesno to generate images

2009-01-26 Thread Margie
> ends up being > and my quotes become " Could someone give me an example of how to use yesno to generate an image? Margie an image? Margie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django use

Re: trouble with yesno to generate images

2009-01-26 Thread Margie
Thanks very much, autoescape did the trick, here is the result for anyone interested: {% autoescape off %} {{ task.done|yesno:"," }} {% endautoescape %} Margie --~--~-~--~~~---~--~~ You received this message because you are sub

Debug output from template language?

2009-01-28 Thread Margie
to know what attributes are available for 'field'. Any way to introspect field from within the template language and get the output sent to either the stderr/stdout of the server or to a file? Margie --~--~-~--~~~---~--~~ You received this message becau

Re: Debug output from template language?

2009-01-28 Thread Margie
etter? 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 django

looking for patch to user.messages that adds a category

2009-02-06 Thread Margie
Hi, I was searching for a way to add a class to messages that are created via user.message_set.create(message="my message here"). I found a number of people discussing this and found what seems to be patch that does just what I want: http://code.djangoproject.com/attachment/ticket/3995/3995.dja

Re: looking for patch to user.messages that adds a category

2009-02-06 Thread Margie
Thanks very much, Karen. That makes perfect sense. Well, it was at least a good excercise in learning how easy it is to download the source from the svn repository! Margie On Feb 6, 1:37 pm, Karen Tracey wrote: > On Fri, Feb 6, 2009 at 3:54 PM, Margie wrote: > > > Hi, > >

Re: looking for patch to user.messages that adds a category

2009-02-06 Thread Margie
Very cool - thanks so much for giving me thsi pointer, Ramiro. I followed the snippet info and it's working great. Margie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

including non-editable fields in forms?

2009-02-09 Thread Margie
fect (it didn't display in the form). Is there a way to do this in a form or do I need to simply put the created field into my template separate from the display of the form? Margie --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: including non-editable fields in forms?

2009-02-10 Thread Margie
Thanks Malcolm. I think inserting it directly in the form template will work fine for my purposes. Margie On Feb 9, 9:18 pm, Malcolm Tredinnick wrote: > On Mon, 2009-02-09 at 21:14 -0800,Margiewrote: > > I have a model that contains a 'created' field where 'editable

can template var be passed into template tag?

2009-02-18 Thread Margie
etBookInfo custom template tag, the first argument it gets is just the literal 'book', rather than the book object created by iterating through books. This seems like a reasonable thing to want to do - am I approaching it the wrong

Re: can template var be passed into template tag?

2009-02-18 Thread Margie
Thanks Karen. Don't know how I missed that. On Feb 18, 11:49 am, Karen Tracey wrote: > On Wed, Feb 18, 2009 at 2:35 PM, Margie wrote: > > > Is there a way to pass a template variable into a custom template > > tag? > > Certainly.  Please read: > > http://

Re: Conditional Logic in Template Loop

2009-02-22 Thread Margie
template tags where you define the tag and the renderer to also be very useful, as these give you access to the context. Margie On Feb 22, 7:13 pm, Chris wrote: > I'm displaying a list of records in a template. I want to > conditionally display controls for each record if the current us

'tuple' object has no attribute 'has_header'

2009-02-22 Thread Margie
x27;): AttributeError: 'tuple' object has no attribute 'has_header' I believe my code is in the same state it was when it was working a while back. I did some cleanup - removing img and .js files that weren't in use. I've tried to put all that stuff

Re: 'tuple' object has no attribute 'has_header'

2009-02-22 Thread Margie
You are awesome, Alex. That was exactly it. Many thanks! Margie On Feb 22, 9:08 pm, Alex Gaynor wrote: > On Mon, Feb 23, 2009 at 12:05 AM, Margie wrote: > > > Anyone know what might be causing this error?  It occurs when I fill > > in one of my forms (ie, from the use inte

how to show currently selected choices in ManyToMany fo

2009-02-23 Thread Margie
def __init__(self, myQueryset, *args, **kwargs): self.fields['authors'].queryset = myQuerySet But I can't figure out how to get the form to reflect the currently selected authors. Can anyone give me a pointer? Thanks, Margie I know ho

Re: how to show currently selected choices in ManyToMany fo

2009-02-23 Thread Margie
somefilter) bookForm = BookForm(authorChoices, initial={'authors':bookObj.authors} Should this work? Margie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: how to show currently selected choices in ManyToMany fo

2009-02-24 Thread Margie
the django code to figure out what is going on. Sigh. On Feb 24, 1:05 am, Daniel Roseman wrote: > On Feb 24, 5:09 am, Margie wrote: > > > > > Ok - I think I should actually be using initial - but still haven't > > gotten that to actually work.  I'm trying somet

avoiding a save when the form contains no new data

2009-02-25 Thread Margie
e existing object? I'm not only concerned with the database access. In addition to avoiding the save, I'd like to emit a message to the user that reflects what they've done, or not done. IE, "book foo updated' or "book foo unchanged". Anyway, just cur

Re: avoiding a save when the form contains no new data

2009-02-25 Thread Margie
separated list of authors") class Meta: model=Book I find that changed_data() always returns 'authors' and has_changed is always True. I will take a look at the source a bit more. Margie On Feb 25, 4:59 pm, Alex Gaynor wrote: > On Wed, Feb 25, 2009 at 7:55 PM,

purpose of formset hidden 'id' fields

2009-02-27 Thread Margie
ield It prints this FORMSET FIELD: FORMSET FIELD: Can anyone tell me what this hidden form-0-id field in the second "FORMSET" line is? Margie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

formset of ModelForms missing functionality?

2009-03-03 Thread Margie
em inside this loop. Have I missed something? 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

Re: formset of ModelForms missing functionality?

2009-03-03 Thread Margie
do need the exclude capability, so that might still be a problem if modelformset_factory does not support that. I can post some code later when I get things a big more cleaned up. Margie On Mar 3, 8:37 pm, Malcolm Tredinnick wrote: > On Tue, 2009-03-03 at 20:21 -0800, Margie wrote: > >

Re: formset of ModelForms missing functionality?

2009-03-03 Thread Margie
ybe I couldn't use it. Of course I can. Anyway, I need to see if I can get myself back to a steady working state and then am going to revisit using the modelformset_factory. Thanks for the pointers. Margie On Mar 3, 10:24 pm, Malcolm Tredinnick wrote: > On Wed, 2009-03-04 at 16:49 +

formset initialization question

2009-03-03 Thread Margie
first snippet with: ==> self.fields['tile'].initial = tile.id that is causing cleaned_data to not get set when taskTileDetailFormSet.is_valid() is called? Sorry, I know this is hazy - have just been pulling my hair out forever now ... Margie --~--~-~--~~~---~--~

Re: formset initialization question

2009-03-04 Thread Margie
sed to get set in this case? The whole reason that I happened upon this is beacuse I am trying to identify which form is which, so I was looking at cleaned_data['tile']. I set that myself anyway, so I can just look at data['tile']. However, it seems that none of my post data

Re: formset of ModelForms missing functionality?

2009-03-04 Thread Margie
just mentioning this for clarity) Anyway, I must be doing something dumb... sigh. The modelformset_factory works fine for me in another case query I have an existing set of model instances - just can't get it to work in this case where I don't yet have the model instances. Thanks fo

Re: formset of ModelForms missing functionality?

2009-03-04 Thread Margie
skTileDetail while in others it is TaskDetail. I tried shortening the name for the purpose of the posting, and ended up missing some when I did the cut and paste, sorry for any added confusion from that. Margie On Mar 4, 6:09 pm, Malcolm Tredinnick wrote: > On Wed, 2009-03-04 at 11:44 -08

Re: formset of ModelForms missing functionality?

2009-03-04 Thread Margie
learned a lot in the process of debugging this all and I think I know enough to be able to work this out using the standard formsets. Margie On Mar 4, 8:15 pm, Malcolm Tredinnick wrote: > On Wed, 2009-03-04 at 19:47 -0800, Margie wrote: > > Yes, I agree with what you are saying about self._ini

Re: formset initialization question

2009-03-04 Thread Margie
was empty. What can I say ... I've been trying a lot of different things to really get a handle on this and it's taken me down a lot of strange paths. I'm sure that you are right that I can identify the "book" based on its index in the formset. Once again, thanks for you

Re: formset initialization question

2009-03-05 Thread Margie
g that dummy field in the postdict, I created the formset and having that dummy field caused has_changed() to be true, which allowed the cleaned_data to be created and allowed the form.save() to actually do a save. Anyway, that's it. It's been a long haul (took me

Odd integrity error behavior when saving data

2009-03-11 Thread Margie
ne: >>> t.chip = t.chip >>> t.save() # this save works! This seems odd. Is this expected behavior? Margie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: Odd integrity error behavior when saving data

2009-03-12 Thread Margie
Gotcha, thanks Malcolm. On Mar 11, 8:26 pm, Malcolm Tredinnick wrote: > On Wed, 2009-03-11 at 19:21 -0700, Margie wrote: > > I have a Tile model that contains a foreign to a Chip: > > > class Tile(models.Model): > >     name=models.CharField(max_length=N

inconsistency between remove() and clear()?

2009-03-23 Thread Margie
2 references pub. After using clear(), book2.publisher still references pub # This seems inconsistent with the remove() behavior above. >>> pub.book_set.clear() >>> book2.publisher Any comments from those in-the-know? Margie --~--~-~--~~~---~--~~ You received

Re: inconsistency between remove() and clear()?

2009-03-24 Thread Margie
Ok, yes, this all makes sense now. Thanks for the explanation! Margie On Mar 24, 3:32 am, Russell Keith-Magee wrote: > On Tue, Mar 24, 2009 at 6:10 PM, Thomas Guettler wrote: > > > Hi, > > > book2.publisher is an attribute which was created before you deleted it. >

django apps that implement ticket filtering?

2009-06-25 Thread Margie
do something similar? In particular, I'm interested in the html templates and associated javascript/jquery to make the filters "dynamic", as that is the area I am sort of weak in. Thanks for any pointers! Margie --~--~-~--~~~---~--~~ You received this m

Re: django apps that implement ticket filtering?

2009-06-25 Thread Margie
jango issue - just thought someone here might have some ideas. Margie On Jun 25, 3:27 pm, lzantal wrote: > Hi, > > You could submit all the filters from an html form and in your view   > function loop through the request.Post and build the queries if the   > Post value is not empty.Usin

Bug when creating Q object from string representation of another Q object?

2009-07-21 Thread Margie
is an extra AND at the front. Logically this shouldn't be be a problem, but I suspect that it is indicative of the problem. Is what I'm doing above supposed to work? Is this a bug? This is using 1.1 beta. Margie --~--~-~--~~~---~--~~ You rec

Re: Bug when creating Q object from string representation of another Q object?

2009-07-22 Thread Margie
l effort. So I was trying to figure out if there was a way I could easily create a Q without loading my prefix notation into a tree and recursing into the tree to create the Q from the leaves up. I was pleasantly surprised when I was able to construct a Q off of the string rep of another Q, but it loo

Where are the admin app icons from?

2009-07-24 Thread Margie
Hi, I'm wondering if the icons in the admin app (for example, the addlink.gif icon) come from some standard icon (free) icon package where there are more goodies of the same sort? Anyone have any pointers for where those came from? M

Re: Where are the admin app icons from?

2009-07-25 Thread Margie
Thanks Alex - I will check those out. But if anyone knows where the admin icons came from, I'd still love to know ... Margie On Jul 24, 4:01 pm, Alex Gaynor wrote: > On Fri, Jul 24, 2009 at 5:12 PM, Margie wrote: > > > Hi, > > > I'm wondering if the icons in

Re: Where are the admin app icons from?

2009-07-27 Thread Margie
reply, it sounds like they were designed specifically for django, or that I should talk to Wilson Miner about it. (Thanks, Daniel). Margie On Jul 25, 6:38 pm, Asinox wrote: > The icons : > > site-packages\django\contrib\admin\media\img\admin > > :) > > On Jul 25, 1:46 pm, M

Re: Where are the admin app icons from?

2009-07-27 Thread Margie
in that set as well, but they were *too* small! Arrgh! It ain't easy designing a web app with no graphic design skills! Margie On Jul 27, 11:11 am, Luke Seelenbinder wrote: > I think they are the FamFamFam Icon pack. > > http://www.famfamfam.com/ > > Luke S. >

Re: Where are the admin app icons from?

2009-07-27 Thread Margie
at other grey scale library as well. I can see that being useful in the future. Margie On Jul 27, 12:15 pm, Luke Seelenbinder wrote: > Could you resize them simply with CSS? > CSS handles resizing quite well. > > I did find one set of icons sized at 10x10 > here:http://www.bran

Possible to add to a queryset?

2009-07-28 Thread Margie
= [1,2,3])) Is there some more efficient way to do this? 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 unsubs

Re: Possible to add to a queryset?

2009-07-28 Thread Margie
Ah, right. I knew there had to be a way. Thanks Alex! Margie On Jul 28, 12:54 pm, Alex Gaynor wrote: > You ca use the | operator o querysets themselves. So qser | > model.objects.filter(id__i=[1,2,3]) > > Alex > > On Jul 28, 2009 3:49 PM, "Margie" wrote: &g

django-users@googlegroups.com

2009-07-29 Thread Margie
all objects with the date class and calls datePicker on them? Would this avoid the screen flash problem that I see? Is there a generally accepted strategy that others are using? Margie Margie --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re:

2009-07-29 Thread Margie
the contents of that html snippet (but longer since there are a bunch of other arguments). Is there a way for me to use the model that you're describing for this? IE, I'd like to just render the input field with a special class and then have a small .js file that finds all fields with th

Re:

2009-07-29 Thread Margie
> > There's no easy way of passing dynamic javascript in the Media class. > However, you can fake it, with a bit of work, by passing the parameter > to the script in a querystring. So, for example, in the list of js > files to be included you would have >     'js/myfile.js?renderclass=%s' % self.

Re:

2009-07-30 Thread Margie
at I get this in my html But I seem to have some missing piece - I don't get how to get access to xyz from the .js script itself. Sorry if this is a dumb question - I've written various bits of javascript/jquery but haven't encountered this. Margie On Jul 29, 5:51 pm, Vasil Van

Re:

2009-07-30 Thread Margie
n. It was just bugging me that I didn't understand! Margie On Jul 30, 12:25 pm, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Jul 30, 7:41 pm, Margie <margierogin...@yahoo.com> wrote: > > > > > Hi Vasil, > > > Could you clarify how I access the variable

Re:

2009-07-30 Thread Margie
data and then call the autocomplete plugin using that as the argument. Very nice. I have seen $.data() used, but haven't used it myself yet, so it wasn't on the top of my brain. It seems like a great solution here. Thanks for that idea! Margie On Jul 30, 11:46 am, Jim Garrison wrot

Re:

2009-07-31 Thread Margie
Hi Vasil. Thanks for the snippets, those are useful. I was somehow just very confused on the mechanism that was being described, but it all makes sense now. Margie On Jul 30, 11:41 am, Margie wrote: > Hi Vasil, > > Could you clarify how I access the variable from the javascr

odd behavior with session variable that contains a list

2009-07-31 Thread Margie
n the newly appended data. request.session['recentAddIds'] = [x for x in request.session ['recentAddIds']] + [newlySavedId] Can anyone explain why this is and if it is expected behavior? Is it ok for sesion variables to contain lists or other complex structures, o

Re: odd behavior with session variable that contains a list

2009-07-31 Thread Margie
Makes perfect sense, thanks for that pointer! On Jul 31, 11:17 am, Alex Gaynor wrote: > On Fri, Jul 31, 2009 at 1:15 PM, Margie wrote: > > > I am seeing some behavior with session that I don't understand.  If I > > have a session variable called recentAddIds that conta

Re: Date format in modelform.

2009-08-03 Thread Margie
Date.format = 'mm/dd/'; $('.my_class_to_identify_datewidget').datePicker(); }); I'm not sure if settings Date.firstDayOfWeek and Date.format the way I do is the best way to do it, but I could not figure out how to do it via params to

Email interface to django app

2009-08-04 Thread Margie
ould be looking into? Thanks for any insights, 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 unsubscr

Re: Simultaneous use of the admin interface

2009-08-05 Thread Margie
min app, I have done what I described above, and for me it has worked well. Margie On Aug 5, 12:06 pm, David wrote: > Using Django 1.1 if I do: > > 1) sign into admin as user A in one browser and begin to edit a record > 2) sign into admin as user B in another browser and begin to edit

How to specify site's domain dynamically in development environment

2009-08-05 Thread Margie
from the development server? Is there some typical way that folks handle this? Margie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

django-threadedcomments app

2009-08-06 Thread Margie
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"

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

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

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

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

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

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

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

problem altering a model and the corresponding table

2009-04-07 Thread Margie
08, in JSONObject raise ValueError(errmsg("Expecting property name", s, end - 1)) ValueError: Expecting property name: line 2178 column 3 (char 41357) Anyone know what I am doing wrong? I also tried adding the priority field to my .json fixture, but still get this error. Margie --

deletion of "distant" related objects

2009-04-11 Thread Margie
ers getting deleted in this case? Thanks for any insights! 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.co

Re: deletion of "distant" related objects

2009-04-12 Thread Margie
one current chip pointed at by the userprofile), but it seems to solve the problem. Margie On Apr 12, 12:06 am, Malcolm Tredinnick wrote: > On Sat, 2009-04-11 at 23:29 -0700, Margie wrote: > > I am having some trouble with the deletion of related objects that are > > multiple

Re: deletion of "distant" related objects

2009-04-12 Thread Margie
thinking on the problem by a number of people. > > For now, it's a matter of being careful and trusting your users to not > do crazy stuff. > > It's not optimal, but it is survivable. yup, agreed it is a hard problem. I appreciate that you guys no doubt have your hands

Re: Send validation error message to the screen

2009-04-13 Thread Margie
: MIDDLEWARE_CLASSES = ( 'notifications.middleware.NotificationMiddleware', TEMPLATE_CONTEXT_PROCESSORS = ( "notifications.context_processors.notifications", I believe I downloaded this from: http://code.google.com/p/django-notification/ Margie On Apr 12, 6:37 am, Joshua Partogi wrote: > Dear all

possible filter bug with manytomany fields and slice?

2009-04-15 Thread Margie
ll")[0:4]) [] (Pdb) Am I using the __in filter correctly for a manytomany field? Margie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dja

Re: possible filter bug with manytomany fields and slice?

2009-04-16 Thread Margie
- thought maybe I was doing it wrong. Anyway, your answer allayed my concerns - I have a workaround, no problem there, just didn't want to find that I was using the queries wrong in general. Malcolm - monitoring this group must be a full time job for you. Thank you so much for all of your res

Re: setting a model field to null

2009-04-16 Thread Margie
blah.foo = None should do the trick On Apr 15, 8:01 pm, rvr wrote: > How can I set a model field to null after it has had a non-null value? > > -- > class Blah(models.Model): >     foo = models.IntegerField(null=True) > > blah = Blah() > blah.foo = 5 > > # now set it to null > blah.foo = ??? > -

  1   2   3   >