Re: How do I prevent delete from table that has foreign key references

2013-01-20 Thread Hannu Krosing
On 01/20/2013 08:12 PM, Subodh Nijsure wrote: Hi, Say I have model that comprises of Books and Authors. Where a book may have multiple authors and this has foreignkey in the books table. Now how do I prevent deletion of an author record while the there is record in books table that has point

Re: Help Required on DB Connection and Data Access

2013-05-03 Thread Hannu Krosing
On 05/03/2013 03:48 PM, Lakshmi Prasad wrote: > Hi > > I am new to Python-Django Development > > we have one django application running on windows machine and DB which > I needs to access is from Linux machine. First of all I want to > connect to Linux machine and I need to access the DB table

Re: ANNOUNCE: Django 1.6 beta 1 released

2013-06-29 Thread Hannu Krosing
about using schemas in databases which support them well enough (PostgreSQL, Oracle, ...) Hannu Krosing -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: Comments in real time

2014-08-20 Thread Hannu Krosing
On 08/20/2014 05:11 PM, Aaron Reabow wrote: > Hi all, > > I use a proprietary application that let people on multiple browsers > comment. > > In real time their comments are displayed for everyone to see. > > What is quite nice, is that you can then order and group these comments. > > I have looked

Re: No modpython.py in python-django 1.6.6-1, which package includes modpython.py?

2014-09-17 Thread Hannu Krosing
On 09/17/2014 01:52 PM, nobody wrote: > > Hi, > > In Debian 6.0.4, I installed python-django 1.4.5-1 which got > /usr/lib/python2.6/dist-packages/django/contrib/auth/handlers/modpython.py. > That file is not included in python-django 1.6.6-1 for the Wheezy, > and I've got following error from apa

Re: Postgres database server

2014-10-13 Thread Hannu Krosing
On 10/13/2014 08:31 PM, sheyda kianimehr wrote: > Yes, I did but when I want to run server python manage.py runserver > I got this message > > django.db.utils.OperationalError: FATAL: password authentication > failed for user "postgres" > FATAL: password authentication failed for user "postgres"

Re: jquery in included html file

2014-05-05 Thread Hannu Krosing
On 05/05/2014 09:30 AM, Andreas Bloch wrote: > How do you access (or include) jquery in a file, which is included? > I'm getting a "Uncaught ReferenceError: $ is not defined" when trying > to use jquery in the included file... Is jquery there when you look at the page source ? > > In my template, t

Re: Transform list comprehension back to traditional looping construct, how?

2014-06-01 Thread Hannu Krosing
On 06/01/2014 03:00 PM, Pepsodent Cola wrote: > At first I was trying to use list.append but then Python complained > that append could only take 1 argument. So I google around and > list.extend said that it could take more arguments so I just went with it. > > What is this right method you are th

Re: Python Brasil[10]

2014-06-14 Thread Hannu Krosing
On 06/14/2014 05:20 AM, Renato Oliveira wrote: > Hi all! > > My name is Renato Oliveira, I'm board member of Python Brazil > Association and co-chair of the next Python Brasil Conference > . This year the conf is taking place in > Porto de Galinhas, Pernambuco