Can we hook ManyToMany default Manager in Admin site

2006-05-21 Thread favo
can we modify the default Manager for ManyToMany relation used in Admin SIte? class entity(models.Model): color = models.ManyToManyField(Color) I want to hook something to custom color List in Entity's detail page. --~--~-~--~~~---~--~~ You received this m

Re: How to write a module level method rather than a instance method

2006-05-21 Thread favo
Yes, some documents should be updated. --~--~-~--~~~---~--~~ 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 em

Re: How to write a module level method rather than a instance method

2006-05-21 Thread Malcolm Tredinnick
On Sun, 2006-05-21 at 02:03 -0700, favo wrote: > Yes, some documents should be updated. That's nice. I wonder which ones? If only there was some way you could tell us which document you saw this in. Please? Malcolm X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.54.131.11 with SMTP id e1

A small intro to myself :)

2006-05-21 Thread Giovanni Giorgi
Hi all, I am Giovanni Giorgi from Italy. I am a 32-years-old Software Architect, working every day with java stuff and so on (hibernate is a framework I use every day). In my spare time I am a SmallTalk fan, a python admirer, a ruby lover and a Perl-scared-boy :) After trying Ruby on rails and

foreign_key limiting choices

2006-05-21 Thread Robert
Hello, I'm writing a small app. for wifi network management. In a "computer" model there is an "ext_ip" field which is a ForeignKey to "Ext_ip" model. When adding/modifying a computer, I can use a select one from ext_ips list. The problem is that I need to select only from ext_ips not used by

Re: foreign_key limiting choices

2006-05-21 Thread Malcolm Tredinnick
On Sun, 2006-05-21 at 05:05 -0700, Robert wrote: > Hello, > > I'm writing a small app. for wifi network management. > > In a "computer" model there is an "ext_ip" field which is a ForeignKey > to "Ext_ip" model. > > When adding/modifying a computer, I can use a select one from ext_ips > list. >

noobie db problems

2006-05-21 Thread [EMAIL PROTECTED]
Hey all, I am just starting with django; I think it is really cool, a big break from Java/Struts dev for me. Anyways, I am experimenting with a simple blog app. So, on to some issues. Here is output: bastion:~ nick$ python dev/django-projects/myblog/manage.py sql blog BEGIN; CREATE TABLE "blog_a

Re: noobie db problems

2006-05-21 Thread Nick Hristov
I forgot to mention that I am using django point release 0.91. Nick On 5/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hey all, I am just starting with django; I think it is really cool, a big break from Java/Struts dev for me. Anyways, I am experimenting with a simple blog app. So, on

SQLite concurrent access to database

2006-05-21 Thread Kilian CAVALOTTI
Hi all, I'm currently developing a little django application for monitoring workstations. Each monitored host reports its own data by creating an object in django db. It can obviously occur that several workstations try to access the db at the same time. And I commonly get the following error

Re: Trying to use ado_mssql on MR to no success

2006-05-21 Thread reiale
Same: Traceback (most recent call last): File "manage.py", line 11, in ? execute_manager(settings) File "c:\python24\lib\site-packages\django-0.91-py2.4.egg\django\core\manageme nt.py", line 1237, in execute_manager execute_from_command_line(action_mapping) File "c:\python24\lib\sit

Re: Trying to use ado_mssql on MR to no success

2006-05-21 Thread reiale
I fixed this particular problem w/the following in introspection.py: def get_table_list(cursor): cursor.execute("SELECT NAME FROM SYSOBJECTS WHERE TYPE IN ('U') AND NAME <> 'dtproperties'" ) return cursor.fetchone()[0] Should I help patch for SQL support? I understand none of the contrib

Re: Trying to use ado_mssql on MR to no success

2006-05-21 Thread Adrian Holovaty
On 5/21/06, reiale <[EMAIL PROTECTED]> wrote: > I fixed this particular problem w/the following in introspection.py: > > def get_table_list(cursor): > cursor.execute("SELECT NAME FROM SYSOBJECTS WHERE TYPE IN ('U') AND > NAME <> 'dtproperties'" ) > return cursor.fetchone()[0] > > Should I

Newbie: manuell ordering / Images

2006-05-21 Thread Manuel Meyer
Hi, I want to write a web site for tourists about the city I live in. A main component will be a sightseeing product: It consists of sights, that can be ordered in lists or in guided tours. As I am an absolute beginner in django, I need already help at this point: How can I add sights to guide

Re: noobie db problems

2006-05-21 Thread Don Arbow
On May 21, 2006, at 8:55 AM, Nick Hristov wrote: line 35, in cursor cursor.execute("SET TIME ZONE %s", [TIME_ZONE]) ProgrammingError: ERROR: current transaction is aborted, commands ignored until end of transaction block SET TIME ZONE 'GMT' # Wtf? I guess a transaction was opened in the

Re: SQLite concurrent access to database

2006-05-21 Thread Graham King
Kilian, I does indeed say here that SQLite can handle concurrent transaction, by queuing them up: http://www.sqlite.org/faq.html#q7 You're not using an NFS share are you ? Apparently that would break it. Are you running the app / script on each users machine, or on a web server the

does django go to 11?

2006-05-21 Thread qhfgva
I'm in the middle of converting a quixote app over to django. Like many people when I saw the admin app, there was no turning back. I'm trying to leverage the hell out of the admin component and so far the magic genie has granted all my wishes. I'm curious, however, how close I'm getting to the

Re: How to add a superuser?

2006-05-21 Thread Adrian Holovaty
On 5/20/06, favo <[EMAIL PROTECTED]> wrote: I know there's createsuperuser in old django, however how to now? See the "Creating superusers" section of the documentation: http://www.djangoproject.com/documentation/authentication/#creating-superusers Adrian -- Adrian Holovaty holovaty.com | d

Re: Can we hook ManyToMany default Manager in Admin site

2006-05-21 Thread favo
No one knows? X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.11.53.63 with SMTP id b63mr109747cwa; Sun, 21 May 2006 17:00:45 -0700 (PDT) X-Google-Token: KbvYdAwAAABr7KbH1lbvJfQLCwcNnwHP Received: from 221.122.43.98 by j73g2000cwa.googlegroups.com with HTTP; Mon, 22 May 200

Apache Localhost Django Admin Look & Feel

2006-05-21 Thread keukaman
When I run the Django development server the admin site for my test site looks great. But when I run the site using Apache with the address http://localhost/admin all of the great look and feel provided by Django is missing. The functionality is still there, but it is stripped of all of its great

Development Admin Date

2006-05-21 Thread keukaman
Following the tutorial, I created a field that says "Published today" for the polls. When I look at the field on the development server, none of the polls created today show "True" under the "Published today" column. When I look at the same pages when running the admin section through Apache2 wit

Re: Apache Localhost Django Admin Look & Feel

2006-05-21 Thread Matthew McDonald
keukaman wrote: > When I run the Django development server the admin site for my test > site looks great. But when I run the site using Apache with the address > http://localhost/admin all of the great look and feel provided by > Django is missing. The functionality is still there, but it is strip

Re: Apache Localhost Django Admin Look & Feel

2006-05-21 Thread Malcolm Tredinnick
On Sun, 2006-05-21 at 17:25 -0700, keukaman wrote: > When I run the Django development server the admin site for my test > site looks great. But when I run the site using Apache with the address > http://localhost/admin all of the great look and feel provided by > Django is missing. The functional

Re: Apache Localhost Django Admin Look & Feel

2006-05-21 Thread keukaman
Thank you. I'm a rookie at Django, Python, & Apache. I'm running this on my XP laptop just to learn this. I have a couple of follow up questions: 1. My tutorial site is located at c:\django\mysite, with the polls app under that. I get a Django "Page not found" error when putting in the http.conf

Re: Apache Localhost Django Admin Look & Feel

2006-05-21 Thread Ian Holsman
try adding alias /media/ c:\django\contrib\admin\media\ in your apache config and see if that helps. On 22/05/2006, at 12:20 PM, keukaman wrote: > > Thank you. I'm a rookie at Django, Python, & Apache. I'm running this > on my XP laptop just to learn this. I have a couple of follow up > questi

Re: does django go to 11?

2006-05-21 Thread canen
I think this may solve at least one of your problems. http://lukeplant.me.uk/blog.php?id=1107301634 Cheers. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to