Re: Enforcing relationships in the Admin

2006-06-14 Thread Andy Todd
On 6/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > All, > I have been trying to create a model for a project that I'm starting > with the trunk version of Django(revision 3129 or newer). In the > following example I'm trying to create a model that allows the site > administrator(s)

Re: Enforcing relationships in the Admin

2006-06-14 Thread Malcolm Tredinnick
On Wed, 2006-06-14 at 22:15 -0700, [EMAIL PROTECTED] wrote: > All, > I have been trying to create a model for a project that I'm starting > with the trunk version of Django(revision 3129 or newer). In the > following example I'm trying to create a model that allows the site > administrator(s)

Enforcing relationships in the Admin

2006-06-14 Thread [EMAIL PROTECTED]
All, I have been trying to create a model for a project that I'm starting with the trunk version of Django(revision 3129 or newer). In the following example I'm trying to create a model that allows the site administrator(s) to create locations based on Country, State, and City then associate

Re: going crazy: foreignkey-reverse-lookup: tests work,my code fails

2006-06-14 Thread James Bennett
On 6/14/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Yeah, sorry about that. We really need to fix this. :-( > > But it's not entirely trivial from what I remember last time I dived in > there. Better to let Guido and company fix relative imports in Python, period. Supposed to happen

Re: Admin "Page Not Found" Part 2

2006-06-14 Thread James Bennett
On 6/14/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > This is entirely expected. Model inheritance does not work at the moment > (you end up with the wrong manager for the derived class, if you care > about the details). It is being worked on. Look through the list > archives if you want

Re: problem on windows apache settings

2006-06-14 Thread SmileyChris
> I just write hotel.settings or I need to finger out the full > path like'c:\hotel.settings'? Yep, just hotel.settings - if you add your projects folder (the one which the hotel folder is sitting in, eg C:\Django\Projects) to PythonPath, then Django knows where to look. > second:PythonPath

Re: Admin "Page Not Found" Part 2

2006-06-14 Thread Malcolm Tredinnick
On Thu, 2006-06-15 at 02:52 +, Bo Shi wrote: > This is a continuation of the following thread: > > http://groups.google.com/group/django-users/browse_thread/thread/13a94a5ac9b5ff8a/f6fbcdd419ddf89e?q=page+not+found=1#f6fbcdd419ddf89e > > I'm experiencing the same problem; I've fiddled with

problem on windows apache settings

2006-06-14 Thread wgwigw
hi, I read document "How to use Django with mod_python", and puzzled ab two things. first: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings ^^^ -if my project is hotel, then I just write

Admin "Page Not Found" Part 2

2006-06-14 Thread Bo Shi
This is a continuation of the following thread: http://groups.google.com/group/django-users/browse_thread/thread/13a94a5ac9b5ff8a/f6fbcdd419ddf89e?q=page+not+found=1#f6fbcdd419ddf89e I'm experiencing the same problem; I've fiddled with permissions (superuser/explicitly setting all permissions,

Re: Using DB module(s) in another app (twisted)

2006-06-14 Thread Jos Yule
Ok, here is what i had to do to get it to work: In a 'test.py' file: -- from django.conf import settings import settings as mysettings settings.configure(mysettings) from django import db from mainsite.models import Game from

Re: HttpResponseSendFile

2006-06-14 Thread SmileyChris
Sorry, this was supposed to go in the Django developers group... :-| --~--~-~--~~~---~--~~ 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

Re: howto Django + lighttpd + Windows?

2006-06-14 Thread mamcxyz
Where I get info about this?? Then I must install apache + mod_python in Windows? :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-14 Thread Jay Parlar
On 6/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Jay- > > In case you didn't noticed, Jacob did check in your patch, and it > totally fixed the problem on my end. Thanks so much! :) Yep, I saw that yesterday, I was excited to finally contribute something back to this fantastic set of

Re: ImageField upload not working in django.views.generic.create_update.update_object?

2006-06-14 Thread [EMAIL PROTECTED]
Jay- In case you didn't noticed, Jacob did check in your patch, and it totally fixed the problem on my end. Thanks so much! :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

ftp not allowed for django uner modpython with DEBUG

2006-06-14 Thread [EMAIL PROTECTED]
hello, I have a running site installed with apache mod_python, and the DEBUG = True in settings.py I thougth I could FTP views or template modifications and see the change in real time, in fact, I am not even allowed to modify (by ftp ing a new version) any file in the app directory. The

Re: The only click to add any class

2006-06-14 Thread Grigory Fateyev
Hello Grigory Fateyev! On Tue, 13 Jun 2006 16:56:14 +0400 you wrote: > > Hello! > > We have compositely app 'Address' with lots of classes. Like: Region, > Country, Location and etc. And to fill the only address users need to > click some forms to add one address. It's awfully ;( > > Is it

how to integrate kid template with django

2006-06-14 Thread Roger Sun
hi, everybody. I don't like the django templates, can i use kid ? if can, how can i do then? thanks. -- welcome: http://www.webwork.cn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Foreign keys and applications

2006-06-14 Thread Viktor
I have two applications in my project: project app1 models.py app2 models.py project/app1/models.py: class Cls1(models.Model): ... project/app2/models.py: from

Re: unable to do an svn co

2006-06-14 Thread lcordier
> nope, tried with another machine not behind a proxy and was unable to > checkout or do an svn update either. I have tried with svn 1.1.4 and > 1.2. I think something is down I am also having the same problem, aparently it is proxy related, a lot of other projects have seen similar problems. I

Re: Root URI in templates

2006-06-14 Thread limodou
> > One method: > > > > set a "base" tag in template, so this tag will point the root uri of > > this page, and other uris can be related with this uri. > > > > Two method: > > > > Define some template variables used for root uri, and using them in > > urls. So you can define them in settings.py

Re: Root URI in templates

2006-06-14 Thread plungerman
limodou wrote: > On 6/14/06, ChrisW <[EMAIL PROTECTED]> wrote: > > > > Let me rephrase this. I don't disagree with absolute URL's per se, but > > there should be someway of abstracting them further than is currently > > available. > > > > Lets say that your media server's address changes, doesnt