Re: return json format

2010-08-20 Thread Emily Rodgers
What goes wrong? On Aug 20, 10:34 am, Imad Elharoussi <imad.elharou...@gmail.com> wrote: > It's not the case for me  !!! > > 2010/8/20 Emily Rodgers <emily.kate.rodg...@gmail.com> > > > On Aug 20, 10:01 am, Imad Elharoussi <imad.elharou...@gmail.com> >

Re: return json format

2010-08-20 Thread Emily Rodgers
On Aug 20, 10:01 am, Imad Elharoussi wrote: > Hello > > How can we return an object in a json format? > > it is like this : > > return HttpResponse(simplejson.dumps(ihmAgentRoot), >                                     mimetype='application/json') > > or do we need an

Re: How to execute some user defined codes (functions) when Django boot?

2010-08-18 Thread Emily Rodgers
g codes into it, thus, when I type "python > manage.py runserver", it can be executed automatically and only once. > By it, my plugins can be registered when app boot up. > > Do you understand my meaning? Welcome suggestion. > > On 8月17日, 下午8时45分, Emily Rodgers <em

Re: How to execute some user defined codes (functions) when Django boot?

2010-08-17 Thread Emily Rodgers
On Aug 17, 2:26 am, Tang Daogang wrote: > Dear all, > > Recently, I have developed a plugin system for my app, and I want to > register those plugins when my app boot up, this need to execute some > user defined codes (functions) in app boot procedure, I don't know > where

Re: confusing query involving time ranges

2010-08-13 Thread Emily Rodgers
On Aug 13, 11:18 am, Steven Davidson wrote: > > It would have to be another datetime field rather than an is_current flag > > because an is_current flag wouldn't help me for queries in the past (if that > > makes sense). > > Ah yes, of course, I had not fully

Re: confusing query involving time ranges

2010-08-13 Thread Emily Rodgers
On Aug 13, 9:51 am, Steven Davidson wrote: > Hmm, I can't fathom it. > > I would opt for a single simple query that returns a little more than you > need and post-process it in python. This would be more maintainable than a > hairy ORM query, I'd say; but if you

Re: confusing query involving time ranges

2010-08-13 Thread Emily Rodgers
not have unique foo entries, so some additional logic would > need to be applied to get the first occurrence of each distinct foo value in > q2. > > Probably not the best solution, but maybe it could give you some hints to > get started. > Thanks. I may have to do this if I ca

Re: confusing query involving time ranges

2010-08-13 Thread Emily Rodgers
tinct foo value in > > q2. > > > Probably not the best solution, but maybe it could give you some hints to > > get started. > > > On Thu, Aug 12, 2010 at 12:51 PM, Emily Rodgers < > > emily.kate.rodg...@gmail.com> wrote: > > >>

confusing query involving time ranges

2010-08-12 Thread Emily Rodgers
Hi, I am a bit stuck on this and can't seem to figure out what to do. I have a model that (stripped down for this question) looks a bit like this: class State(models.Model): first_dt = models.DateTimeField(null=True) last_dt = models.DateTimeField(null=True) foo =

Re: model inheritance, abtract=True

2010-08-05 Thread Emily Rodgers
On Aug 5, 1:50 pm, Roald de Vries wrote: > Dear all, > > I have the following error, and don't know what it means: > >      Error: One or more models did not validate: >      update.personupdate: 'address' has a relation with model Address,   > which has either not been

Re: can foreign key fields be empty?

2010-07-19 Thread Emily Rodgers
On Jul 19, 3:00 pm, rmschne wrote: [snip] > The pointer you gave, thanks very much, explains how to set the data > model to allow nulls, which I've done already.  Further, as I > originally mentioned, I'm not using Django to control data entry, so > the None=True in the data

Re: Passenger 57 - a Django query problem

2010-02-18 Thread Emily Rodgers
On Feb 18, 9:25 am, Atamert Ölçgen wrote: > Hi Sithembewena, > > On Thursday 18 February 2010 00:27:10 Sithembewena Lloyd Dube wrote:> Emily > provided an answer according to what she understood from the OP. No > > harm in doing that, at least not worse than no attempt at

Re: Passenger 57 - a Django query problem

2010-02-17 Thread Emily Rodgers
On Feb 17, 11:20 am, bruno desthuilliers <bruno.desthuilli...@gmail.com> wrote: > On Feb 17, 10:12 am, Emily Rodgers <emily.kate.rodg...@googlemail.com> > wrote:> On Feb 16, 4:50 pm, bruno desthuilliers > > > I'm afraid I don't really get what difference it

Re: Passenger 57 - a Django query problem

2010-02-17 Thread Emily Rodgers
On Feb 16, 4:50 pm, bruno desthuilliers <bruno.desthuilli...@gmail.com> wrote: > On Feb 16, 4:54 pm, Emily Rodgers <emily.kate.rodg...@googlemail.com> > wrote: > > > > > On Feb 16, 3:39 pm, bruno desthuilliers > > > <bruno.desthuilli...@gmail.com>

Re: Passenger 57 - a Django query problem

2010-02-16 Thread Emily Rodgers
On Feb 16, 3:39 pm, bruno desthuilliers wrote: > On Feb 16, 2:56 pm, Derek wrote: [snip] > Ain't that "memberships" relationship redundant with passenger->flight- > > >operator->memberships ? I reckon he probably wants to do is split

Re: Passenger 57 - a Django query problem

2010-02-16 Thread Emily Rodgers
On Feb 16, 1:56 pm, Derek wrote: > (not a movie trivia problem!) > > The question I need to resolve here is "does Passenger 57 qualify for a > discount"? > > Given the following models: > > class Alliance(models.Model): >     name = models.CharField(max_length=100) >    

Re: You're seeing this error because you have DEBUG = True in your Django settings file.

2010-02-04 Thread Emily Rodgers
On Feb 4, 3:54 am, punwaicheung wrote: > Page not found (404) > Request Method: GET > Request URL:http://www.cadal.zju.edu.cn/djvu_ulib/16003525/0001.djvu > > Using the URLconf defined in cadal.urls, Django tried these URL > patterns, in this order: > > ^personal/?$

Re: looping through non-null fields

2010-02-03 Thread Emily Rodgers
On Feb 3, 3:48 pm, Shawn Milochik wrote: > How about using the key/value pairs in self.__dict__ that have a value? That does pretty much the same as above (although granted it doesn't give me the meta fields I don't care about). > Alternately, have a look at the help of

looping through non-null fields

2010-02-03 Thread Emily Rodgers
Hi, As per usual, I am probably just being really dappy, but I can't see a good way to do this. I have a model that has about 10 fields, and I may be populating each record with at least one field, but probably less that 4 (could be any 4 of the 10 though). The others will be null or empty

Re: Handling Facebook development in Django

2010-01-25 Thread Emily Rodgers
On Jan 25, 8:26 am, Hassan Baig wrote: > Howdy folks, > > I was wondering if you could give me any pointers in this regard. I'm a > Facebook developer and I'm facing the following problem: > > I have a flash file which calls up a url

Re: popup forms

2009-10-13 Thread Emily Rodgers
On Oct 13, 1:20 pm, andreas schmid wrote: > thank you very much for pointing me to the right path!! > ill try to understand the behaviour and report about my progress... > > Andrew Ingram wrote: > > I'm assuming you are doing this somewhere other than the admin, or in > >

Re: QuerySets with annonate, count() and multiple fields

2009-10-08 Thread Emily Rodgers
On Oct 8, 8:36 am, Emily Rodgers <emily.kate.rodg...@googlemail.com> wrote: > On 8 Oct, 01:31, Russell Keith-Magee <freakboy3...@gmail.com> wrote: > > > > > On Thu, Oct 8, 2009 at 1:43 AM, Emily Rodgers > > > <emily.kate.rodg...@googlemail.com> w

Re: QuerySets with annonate, count() and multiple fields

2009-10-08 Thread Emily Rodgers
On 8 Oct, 01:31, Russell Keith-Magee <freakboy3...@gmail.com> wrote: > On Thu, Oct 8, 2009 at 1:43 AM, Emily Rodgers > > > > <emily.kate.rodg...@googlemail.com> wrote: > > > Hello, > > > I am a bit stuck on something that I think ought to be really e

QuerySets with annonate, count() and multiple fields

2009-10-07 Thread Emily Rodgers
Hello, I am a bit stuck on something that I think ought to be really easy (so I am probably being really stupid!). I am trying to write a view for a model such that I can pass the view (via post data) a (or an unknown) number of fields of that model, and receive back a list of dictionaries of

Re: request.FILES empty... only with IE!

2009-08-24 Thread Emily Rodgers
On Aug 23, 11:31 pm, OnurCelebi wrote: > Hi all, > I have a very strange behaviour. I have an upload form like this: > > var upform = document.createElement('form'); > upform.setAttribute('action','/engine/users/avatar/'); >

Re: Override __init__()

2009-08-17 Thread Emily Rodgers
On Aug 14, 4:26 pm, Daniel Roseman wrote: > On Aug 14, 3:50 pm, Léon Dignòn wrote: > > > Hi Emily, > > > thanks so far! > > > unfortunately this line: > > > > instance = getattr(kwargs, 'instance') > > throws this error: > > > Exception Value:

Re: Override __init__()

2009-08-14 Thread Emily Rodgers
On Aug 14, 12:14 pm, Léon Dignòn wrote: > Hi, > > I try override a ModelForms init to claim the variable instance. After > that I call super.__init__(). > It's almost working, but there is no form shown in the browser.  Any > ideas what might be wrong? > > class

Re: how much python do i need to know to learn/use Django?

2009-08-14 Thread Emily Rodgers
On Aug 14, 9:42 am, Wayne Koorts wrote: > > I currently know zero Python and want to start a project with Django > > ASAP.  I've got the opportunity through my work to either take a 5-day > > Python bootcamp or a Django bootcamp - not both. > > I don't really think this is a

Re: field order:ModelForm

2009-08-05 Thread Emily Rodgers
2009/8/5 Ludwik Trammer : > >> I tried adding a fields attribute to the Meta class (which I think is >> what you would do in the dev version), but that didn't work. > > Django 1.1 stable is out and supports this feature, so if you can > upgrade it will probably be the easiest

field order:ModelForm

2009-08-05 Thread Emily Rodgers
Hi, I am using django 1.0.2, and I was wondering if it is possible to change the order of the fields (it seems you can do this in the dev version)? I have added an extra field in my form (that doesn't actually correspond with a field in the model). It is being listed after the model fields, and

Re: Please help me design Model

2009-07-24 Thread Emily Rodgers
On Jul 23, 11:06 pm, urosh wrote: > Hi. > > I want to create phone book. I want that this phone book list will be > ordered by number of dialing this number. I think of using two tables > one with phone numbers and one for phone dialing statistics (how many > times user

Re: forms with django and extjs 3.0.0

2009-07-24 Thread Emily Rodgers
2009/7/24 Russell Keith-Magee <freakboy3...@gmail.com>: > > On Thu, Jul 23, 2009 at 5:43 PM, Emily > Rodgers<emily.kate.rodg...@googlemail.com> wrote: >> >> Hi all, >> >> I am currently working on some web apps that use django for the back >> e

forms with django and extjs 3.0.0

2009-07-23 Thread Emily Rodgers
Hi all, I am currently working on some web apps that use django for the back end, and extjs for the front end (using JSON to pass data between the two). I am getting to the point where I am going to have to start doing some form integration. Has anyone done this lately (with the latest version

Re: accessing multiple dbs?

2009-07-16 Thread Emily Rodgers
On Jul 15, 5:43 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Wed, Jul 15, 2009 at 11:35 AM, Emily Rodgers < > > > > emily.kate.rodg...@googlemail.com> wrote: > > > On Jul 15, 4:19 pm, Emily Rodgers <emily.kate.rodg...@googlemail.com> > > wr

Re: accessing multiple dbs?

2009-07-15 Thread Emily Rodgers
On Jul 15, 4:19 pm, Emily Rodgers <emily.kate.rodg...@googlemail.com> wrote: > On Jul 15, 2:46 pm, "Richard E. Cooke" <rcooke1...@gmail.com> wrote: > > > OK.  Before I get flamed! > > > I neglected to search THIS group before I posted. &g

Re: accessing multiple dbs?

2009-07-15 Thread Emily Rodgers
On Jul 15, 2:46 pm, "Richard E. Cooke" wrote: > OK.  Before I get flamed! > > I neglected to search THIS group before I posted. > > So, I see some chatter about being able to instansiate a second DB > connector.  Great. > > Now, how about where the best examples of that

Re: Will future Django releases support multiple databases?

2009-07-14 Thread Emily Rodgers
On Jul 13, 4:51 pm, Emily Rodgers <emily.kate.rodg...@googlemail.com> wrote: > On Jul 3, 6:36 pm, Emily Rodgers <emily.kate.rodg...@googlemail.com> > wrote: > > > > > 2009/7/3 Alex Gaynor <alex.gay...@gmail.com>: > > > > On Fri, Jul 3, 200

Re: Will future Django releases support multiple databases?

2009-07-13 Thread Emily Rodgers
On Jul 3, 6:36 pm, Emily Rodgers <emily.kate.rodg...@googlemail.com> wrote: > 2009/7/3 Alex Gaynor <alex.gay...@gmail.com>: > > > > > > > On Fri, Jul 3, 2009 at 12:25 PM, Emily Rodgers > > <emily.kate.rodg...@googlemail.com> wrote: > >

Re: Will future Django releases support multiple databases?

2009-07-03 Thread Emily Rodgers
2009/7/3 Alex Gaynor <alex.gay...@gmail.com>: > > > On Fri, Jul 3, 2009 at 12:25 PM, Emily Rodgers > <emily.kate.rodg...@googlemail.com> wrote: >> >> >> >> On Jul 3, 3:29 pm, Emily Rodgers <emily.kate.rodg...@googlemail.com> >> wrote

Re: Will future Django releases support multiple databases?

2009-07-03 Thread Emily Rodgers
On Jul 3, 3:29 pm, Emily Rodgers <emily.kate.rodg...@googlemail.com> wrote: > On Jul 1, 3:44 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > > > > > On Wed, Jul 1, 2009 at 9:39 AM, Emily Rodgers < > > > emily.kate.rodg...@googlemail.com> wrote: >

useful django resources for newbies

2009-07-03 Thread Emily Rodgers
Hi, I only recently realised that a django subreddit existed, and since then I have been learning interesting new things from it, so I thought I would share it for the benefit of those of you that don't read reddit: http://www.reddit.com/r/django/ Em

Re: Will future Django releases support multiple databases?

2009-07-03 Thread Emily Rodgers
On Jul 1, 3:44 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Wed, Jul 1, 2009 at 9:39 AM, Emily Rodgers < > > > > emily.kate.rodg...@googlemail.com> wrote: > > > On Jul 1, 3:22 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > >

Re: Using Django other-than as web framework.

2009-07-02 Thread Emily Rodgers
On Jul 2, 8:25 am, Harsha Reddy wrote: > I using Django from past one week. > > On the Django web site, I read that it is a high-level python web > framework. Inspite of knowing this I am trying to use a Django > application both as a web application as well as a CLI client. >

Re: Will future Django releases support multiple databases?

2009-07-01 Thread Emily Rodgers
On Jul 1, 3:44 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Wed, Jul 1, 2009 at 9:39 AM, Emily Rodgers < > > > > emily.kate.rodg...@googlemail.com> wrote: > > > On Jul 1, 3:22 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > >

Re: Will future Django releases support multiple databases?

2009-07-01 Thread Emily Rodgers
On Jul 1, 3:22 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Wed, Jul 1, 2009 at 9:16 AM, Emily Rodgers < > > > > emily.kate.rodg...@googlemail.com> wrote: > > > On Jun 25, 6:45 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > &g

Re: Will future Django releases support multiple databases?

2009-07-01 Thread Emily Rodgers
On Jun 25, 6:45 pm, Alex Gaynor wrote: > On Thu, Jun 25, 2009 at 10:24 AM, Tim Chase > wrote: > > > Right now, Django doesn't seem to support the multiple > > > databases on the same server or different servers.  Will that > > > feature be

Re: Django-Logging

2009-05-08 Thread Emily Rodgers
On May 8, 10:33 am, Raashid Malik wrote: > This means i have to call debug function with some message as argument. But > my requirement is that all the django activity should be logged. Is there a > way where in all operations of an application are logged. Perhaps

Re: urlize

2009-03-10 Thread Emily Rodgers
On Feb 10, 3:17 am, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Mon, 2009-02-09 at 07:29 -0800, Emily Rodgers wrote: > > Hi, > > > I have written a django app that manages 'change requests' (and > > approvals) for IT infrastructure changes in o

urlize

2009-02-09 Thread Emily Rodgers
Hi, I have written a django app that manages 'change requests' (and approvals) for IT infrastructure changes in our company, and I am using the urlize filter when displaying certain fields (like description of change, test plan etc). This is so that if a user puts a link to documentation for a

RE: 500.shtml

2008-08-26 Thread Emily Rodgers
es to test the browser to check if it accepts > cookie, the dispatch.fgci process just dies. Have you face > something like that before? > Ronaldo. > > On Tue, Aug 26, 2008 at 5:36 AM, Emily Rodgers > <[EMAIL PROTECTED]> wrote: > > Hi Ronaldo, > > > > I re

RE: 500.shtml

2008-08-26 Thread Emily Rodgers
Subject: Re: 500.shtml When i run on a shared provider i restart my server by running touch /mywebdir/dispatch.fcgi On Fri, Aug 22, 2008 at 6:45 AM, Emily Rodgers <[EMAIL PROTECTED]> wrote: Hi R

RE: 500.shtml

2008-08-22 Thread Emily Rodgers
me the python script you have that log things for you? > > ps) I don't know if that is the right way to deploy jdango, > I'm just learning it. > > Thank you very much > Ronaldo. > > On Fri, Aug 22, 2008 at 4:54 AM, Emily Rodgers > <[EMAIL PROTECTED]> wrote: > > >

RE: noob: Where does print output go?

2008-08-22 Thread Emily Rodgers
You could use the python logging module (http://docs.python.org/lib/module-logging.html) and do logging.debug(list(product_list)). Then it will appear in your web logs. > -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]

RE: 500.shtml

2008-08-22 Thread Emily Rodgers
How do you start / stop / restart your webserver? If you are using fastcgi, you may not have it set up to give you an error log. I have a script that starts / stops it, and I have specified and error log for the django web server logs, and sent any errors with my script commands to a file so

RE: how to locate the OS currently logged in user??

2008-08-21 Thread Emily Rodgers
> -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of PeteDK > Sent: 21 August 2008 11:14 > To: Django users > Subject: Re: how to locate the OS currently logged in user?? > > > > Have you tested the suggestion above with someone who is

RE: how to locate the OS currently logged in user??

2008-08-21 Thread Emily Rodgers
> -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of PeteDK > Sent: 20 August 2008 17:54 > To: Django users > Subject: Re: how to locate the OS currently logged in user?? > > > > > On 20 Aug., 17:56,

RE: how to locate the OS currently logged in user??

2008-08-20 Thread Emily Rodgers
> -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Steve Holden > Sent: 20 August 2008 16:37 > To: django-users@googlegroups.com > Subject: Re: how to locate the OS currently logged in user?? > > > PeteDK wrote: > > Hi. > > > > I

RE: how to populate data again after validation

2008-08-20 Thread Emily Rodgers
n > > > actually I feel comfortable with custom html stuff.. thats why. > ooopps yeah that was a typo since I typed everything while am > on-the- go :) > > I am new to django so I don't really know what to do. > could you please a little more? > thanks > > On

RE: how to populate data again after validation

2008-08-20 Thread Emily Rodgers
ctx = {} > ctx['errors'] = f.errors > return render_to_response('contact.html',ctx) > > when it doesn't save because validation failed, it renders > contact.html again, but blank. All previous data lost. > > On Aug 20, 4:07 pm, "Emily Rodgers" <[EMAIL PROTE

RE: how to populate data again after validation

2008-08-20 Thread Emily Rodgers
Hello, How are you doing your validation? Is the form populating a model instance or doing something else? I would be helpful to see some of the function in your views file. Em > -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Will

RE: How to tiger mail

2008-08-20 Thread Emily Rodgers
This explained it all to me when I first started using cron. http://www.unixgeeks.org/security/newbie/unix/cron-1.html I also put this at the top of my crontab file to remind me what is what: #minute (0-59), # hour (0-23), # day of month (1-31), #

RE: limit choices to logged-in user

2008-08-19 Thread Emily Rodgers
> -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of patrickk > Sent: 19 August 2008 14:12 > To: Django users > Subject: limit choices to logged-in user > > > is there a way to limit choices (using foreign key) to the > logged-in user?

RE: "remote models" with django?

2008-07-11 Thread Emily Rodgers
/1.2.3.4/foo/bar > > > Obviously, it will only work with relations that already is > on app A, this is mosly for denormalizing stuff to be able to > scale in all directions. > > > > On 11 Juli, 12:35, "Emily Rodgers" <[EMAIL PROTECTED]> wrote: > > Also, wh

RE: "remote models" with django?

2008-07-11 Thread Emily Rodgers
99 > Sent: 11 July 2008 11:10 > To: Django users > Subject: Re: "remote models" with django? > > > nope different sites on different IPs > > On 11 Juli, 11:44, "Emily Rodgers" <[EMAIL PROTECTED]> wrote: > > Are they in the same proje

RE: How to display the images in the template page under the django development server

2008-07-11 Thread Emily Rodgers
Try doing Ideally you want your media url to be available in all of your templates (so you can do in your templates). To do this kind of thing you can set up a context processor. There is a good example here: http://www.b-list.org/weblog/2006/jun/14/django-tips-template-context-proces

RE: "remote models" with django?

2008-07-11 Thread Emily Rodgers
Are they in the same project? > -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of lgr888999 > Sent: 11 July 2008 10:33 > To: Django users > Subject: "remote models" with django? > > > Lets say i have two django apps A and B. Lets say A

RE: how does {% url %} work?

2008-07-11 Thread Emily Rodgers
> -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of V > Sent: 11 July 2008 09:31 > To: Django users > Subject: Re: how does {% url %} work? > > > > > but it gives only > > > /projects/join/6/ > > > > That's exactly what's expected. >

RE: how does {% url %} work?

2008-07-10 Thread Emily Rodgers
I think that you need to do (r'^coosci/$', include('coosci.webapp.urls')), In your myproject/urls.py file for that to work (but I could be wrong!). > -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Viktor Nagy > Sent: 10 July 2008

RE: problem serving image [ERROR: Page not found: /usr/lib/python2.5/site-packages/djangotrunk/django/contrib/admin/media/amazon.gif]

2008-07-10 Thread Emily Rodgers
Try changing your directory (and paths) to something like myapp_media instead of media. Media is used by the admin interface for the css / js files there, which is why it is getting confused. Em > -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On

RE: XML and django

2008-07-10 Thread Emily Rodgers
> -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Ahmad Akkaoui > Sent: 10 July 2008 16:19 > To: django-users@googlegroups.com > Subject: XML and django > > > Hello everyone, > > I would like to know how to I would go about parsing an

RE: The Lost Fingers

2008-06-27 Thread Emily Rodgers
I am listening to Django and Stephane right now (and using Django) :) > -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: 27 June 2008 03:04 > To: Django users > Subject: Re: The Lost Fingers > > > While

RE: Url tag issues

2008-06-23 Thread Emily Rodgers
> -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Dhawan > Sent: 20 June 2008 19:06 > To: Django users > Subject: Re: Url tag issues > > > Hi Emily, > > > > > > > > > > > The problems I am hitting are mainly to do with the

RE: Url tag issues

2008-06-20 Thread Emily Rodgers
s > Subject: Re: Url tag issues > > > use of named urls will probably make that a ton easier > > On Jun 19, 11:45 am, "Emily Rodgers" <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have been hitting a brick wall so many times now on this > that

Url tag issues

2008-06-19 Thread Emily Rodgers
Hi, I have been hitting a brick wall so many times now on this that it is starting to hurt!! Please help if you can... I have an index page, and I want my function for it (in views.py) to take a number of parameters to decide what to display, but I can't figure out how to do it. The kinds of

RE: sending data back to template out of a function

2008-06-06 Thread Emily Rodgers
orm validation related) BR On Fri, Jun 6, 2008 at 10:40 AM, Emily Rodgers <[EMAIL PROTECTED]> wrote: I can't see anything work in your code (but there could be something I haven't spotted!!). My instinct would be to ensure that zipcode is a string. What did you do to check that th

RE: sending data back to template out of a function

2008-06-06 Thread Emily Rodgers
> -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Emily Rodgers > Sent: 06 June 2008 15:41 > To: django-users@googlegroups.com > Subject: RE: sending data back to template out of a function > > > I can'

RE: sending data back to template out of a function

2008-06-06 Thread Emily Rodgers
I can't see anything work in your code (but there could be something I haven't spotted!!). My instinct would be to ensure that zipcode is a string. What did you do to check that the zipcode is being passed in? Em > -Original Message- > From: django-users@googlegroups.com >

RE: Help - m2m field in my model

2008-06-06 Thread Emily Rodgers
> -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of M.Ganesh > Sent: 06 June 2008 14:19 > To: django-users@googlegroups.com > Subject: Help - m2m field in my model > > > Hi, > > Excuse me for the dumb question. > > My model : > >

RE: forms - WTF

2008-06-05 Thread Emily Rodgers
> -Original Message- > From: django-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Peter Rowell > Sent: 05 June 2008 17:08 > To: Django users > Subject: Re: forms - WTF > > > On Jun 5, 8:50 am, "Emily Rodgers" <[EMAIL PR

RE: forms - WTF

2008-06-05 Thread Emily Rodgers
and simply don't understand how the form.as_table works... ie when i put that in the template (see my template below), how does it know which form to show? BR On Thu, Jun 5, 2008 at 11:50 AM, Emily Rodgers <[EMAIL PROTECTED]>

RE: forms - WTF

2008-06-05 Thread Emily Rodgers
Forms are quite confusing in django. When trying to find help on the interweb last week I came across this that made me giggle: http://leahculver.com/2007/04/23/django-forms-im-dumping-you/. After a day or two of getting cross, I eventually stamped my feet and insisted on having our work version

RE: forms - WTF

2008-06-05 Thread Emily Rodgers
Hi, It seems familiar to an issue I had last week. Can we see the function in your views file? I am guessing that you need to instantiate your ziplookup object or something (I think this is what I did wrong). Try changing {{ form.as_table }} to {{ form }}, just to see what it prints... I could

'add another' popup from ModelForm?

2008-06-05 Thread Emily Rodgers
Hi, I have been playing with Django for about a week, and I am really impressed. I love python, but had previously been using php for my web apps (LAMP). This is a big step forward :) I have been having a few problems though... I would like to use the 'add another' popup functionality (that is