Re: Weird behaviour in Django logging (Django 1.3 RC)

2011-03-05 Thread Russell Keith-Magee
On Sat, Mar 5, 2011 at 10:41 AM, Edwin wrote: > I'm getting a strange behaviour when setting up logging. Here's my > logging configuration: > > LOGGING = > { >    'version': 1, >    'disable_existing_loggers': True, >    'formatters': { >        'admin_configuration': { >    

Re: Looking for a developer

2011-03-05 Thread delegbede
My apologies, I was meant to do a personal mail to the sender. If the post could be removed, I would be very happy. Once again, apologies. Sent from my BlackBerry wireless device from MTN -Original Message- From: Kenneth Gonsalves Sender:

Re: Looking for a developer

2011-03-05 Thread Kenneth Gonsalves
On Sat, 2011-03-05 at 07:22 -0800, Bobby Roberts wrote: > i'd like to see a copy of the RFP I do not know if it is in the 1.3 beta docs -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this message because you are subscribed to the

Re: Training at Hyderabd

2011-03-05 Thread Vishal Rewari
Hi Vijay, Django is quite easy to understand and use, a little more effort can really help you learn in a better way rather than training. You can always post your questions on the forum. On Sat, Mar 5, 2011 at 12:41 AM, Vijay wrote: > Hi All, > If anybody

Re: oAuth 2.0

2011-03-05 Thread Mick
> And then Server needs to return token. The problem is that I can't find > how to do this in python-oauth2 way (not with Django). > Right now I have: > def request_token(request): > data = {'token': 'token123'} > return HttpResponse(simplejson.dumps(data), content_type = >

Re: foreign key to self in sqllite3

2011-03-05 Thread Ricardo L. Dani
Use the name of class instead: parent = models.ForeignKey("Category", blank=True, null=True, verbose_name=_("parent")) 2011/3/5 mohammad Efazati > I have model field foreign key to self > but sql have error and cant create null field for field > why? > > class

Re: data model help?

2011-03-05 Thread Michael Radziej
Hi Tim! On Sat, 5 Mar 2011 06:05:51 -0800 (PST), Tim wrote: > For me that looks a little complex. The 'sequence' doesn't really > belong to the Chapter or the Book, but to their relationship. A > Chapter may have one sequence number when part of Book A, and another > for

Re: multiple comment forms

2011-03-05 Thread george
yes, I saw this and hacked the get_form function of CommentFormNode to see if it would work, but the form fails with "Missing content_type or object_pk field." On Mar 5, 4:47 pm, Karen Tracey wrote: > On Sat, Mar 5, 2011 at 8:09 AM, george wrote: > > I

Re: multiple comment forms

2011-03-05 Thread Karen Tracey
On Sat, Mar 5, 2011 at 8:09 AM, george wrote: > I have multiple comment forms on a single page (aggregated blog > entries). The page does not validate due to duplicate ids in the > form. Anyone know of a solution to this? > Form prefix:

multiple comment forms

2011-03-05 Thread george
Hi I have multiple comment forms on a single page (aggregated blog entries). The page does not validate due to duplicate ids in the form. Anyone know of a solution to this? Cheers! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

foreign key to self in sqllite3

2011-03-05 Thread mohammad Efazati
I have model field foreign key to self but sql have error and cant create null field for field why? class Category(models.Model): title = models.CharField(max_length=250,\ unique=True, verbose_name=_("Title")) slug = models.SlugField(max_length=100,\

Import Error

2011-03-05 Thread ralatgdc
I am unable to import a package using a symbolic link, a dist- packages .pth file, or sys.path.append in the wsgi file on: ubuntu 10.04 LTS apache 2.2.14 mod-wsgi 2.8-2 django 1.2.5 when the package directory is outside the application directory. The import works correctly if the directory

Re: foreign key search in admin

2011-03-05 Thread Mike Ramirez
On Saturday, March 05, 2011 07:19:23 am Bobby Roberts wrote: > hi all... i'm banging my head against a wall here. > > consider this model > > class mymodel(models.Model): > id = models.AutoField (primary_key=True) > Barcode = models.IntegerField(unique = True, blank=False) >

Re: Looking for a developer

2011-03-05 Thread Bobby Roberts
i'd like to see a copy of the RFP On Mar 4, 8:05 am, Colleen wrote: > I'm representing an international company that needs a website > developed fast. (15weeks). We have the RFP to send out (today - March > 4th) and are looking for interested developers. > > No parties

foreign key search in admin

2011-03-05 Thread Bobby Roberts
hi all... i'm banging my head against a wall here. consider this model class mymodel(models.Model): id = models.AutoField (primary_key=True) Barcode = models.IntegerField(unique = True, blank=False) CustomerId= models.ForeignKey(Customer, db_index=True, blank=True, null =

Re: parameter, but not in the URL

2011-03-05 Thread pjrhar...@gmail.com
You should definitely be using a POST request - an important aspect of the design of any web application is that get requests should not change server side state, for this exact reason. http://stackoverflow.com/questions/46585/when-do-you-use-post-and-when-do-you-use-get -- You received this

data model help?

2011-03-05 Thread Tim
Hi, I'm modeling book structures. Currently I have Chapter objects that belong (ForeignKey) to a Book and each Chapter has sequence number so the book can know how to order the chapters within itself. That was okay until I realized the chapters can be shared between books. For me that looks a

How to get model name from foreignkey field?

2011-03-05 Thread Hassan
I am writing a view that controls multiple models. I use Model._meta.fields to access model fields and use value_from_object() to get its value but for foreignkeys it returns the object_id, but I don't know which model is this. Is there any way to get the foreignkey fields model? -- You

Re: How to know when an admin form is completly saved to DB?

2011-03-05 Thread Marc Aymerich
On Sat, Mar 5, 2011 at 12:55 PM, Sithembewena Lloyd Dube wrote: > I tink you could also go as follows: > > my_object = form.save() > if my_object: >     do_something() Yep, but I'm using django admin so I can't do that without refactor admin add_view, change_view and

Re: How to know when an admin form is completly saved to DB?

2011-03-05 Thread Sithembewena Lloyd Dube
I tink you could also go as follows: my_object = form.save() if my_object: do_something() On Sat, Mar 5, 2011 at 1:21 PM, Marc Aymerich wrote: > On Fri, Mar 4, 2011 at 3:09 PM, Marc Aymerich wrote: > > Hi, > > I have an admin class with some

Re: How to know when an admin form is completly saved to DB?

2011-03-05 Thread Marc Aymerich
On Fri, Mar 4, 2011 at 3:09 PM, Marc Aymerich wrote: > Hi, > I have an admin class with some arbitrary number of inline forms. I > want to make some stuff when all the inlines are successfully saved. > How can I do that? admin executes something else after save_model ?? >

Re: Can't create super user

2011-03-05 Thread Eric Abrahamsen
On Sat, Mar 05 2011, royy wrote: > Hello. > > I can't create a superuser for an admin area, i type username and e- > mail, then when I try to type password the keyboard freezes and > doesn't respond so I need to use the Ctrl + break to quit server (I'm > following the steps for writing my first

hi i am working on the status report generation project using django

2011-03-05 Thread dhanu
hi all, i am new to django framework, i am developing the weekly status report generation webserver. till now i completed the adding the report to db ans viewing the availbale reports. my question is if i have 10 reports in db each report contains 15 fields. so how can i generate a report using

Can't create super user

2011-03-05 Thread royy
Hello. I can't create a superuser for an admin area, i type username and e- mail, then when I try to type password the keyboard freezes and doesn't respond so I need to use the Ctrl + break to quit server (I'm following the steps for writing my first Django app). I tried to create it in two

Let's make it green

2011-03-05 Thread ckar...@googlemail.com
add add Python3 support for Django :-) http://python3wos.appspot.com/ -- 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

Re: Form/view for ManyToMany relationship

2011-03-05 Thread werefr0g
Le 05/03/2011 00:01, kgardenia42 a écrit : Thanks. This is pretty close to what I'm doing. However, I'd like to not have to write all the associated boiler-plate (i.e. I have to figure out if any film/actor relationships have been deleted since the last save and explicitly write code to