Re: Model vanishes from Admin

2006-06-25 Thread Russell Keith-Magee
Ok; here's a few more questions: 1) Update both servers again - has Malcolm's r3202 patch resolved anything? 2) If you run ./manage.py shell, then run: >>> from django.db import models >>> print models.get_apps() >>> print models.get_models() What do you get (on each server)? 3) Exactly how

Re: Model vanishes from Admin

2006-06-25 Thread oggie rob
My guess would be caching or database discrepencies. Have you tried accessing the production database through the dev server? Also have you tried to delete .pyc files? -rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Admin interface

2006-06-25 Thread Sasha
How do I disable change input field on ImageField? so that an image can only be uploaded once. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

BETA Announce: Gypsy Jobs - helping developers and companies find each other in DjangoLand

2006-06-25 Thread Ian Holsman
Hi. I'd like to announce the initial release of Gypsy Jobs (http:// gypsyjobs.com/ ) a job matching service dedicated to helping developers find work using Django. It is a beta product, which started about two weeks ago, and thanks to the power of django is a reality now. your comments

Re: Default value for boolean field

2006-06-25 Thread James Bennett
Also, AFAIK 'default' isn't meant to be an SQL-level thing; it's mostly for the admin interface and maybe manipulators. -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~-~--~~~---~--~~ You received this message

Re: if >, if >= in templates?

2006-06-25 Thread Don Arbow
On Jun 25, 2006, at 1:13 PM, Steven Armstrong wrote:If there are more then 5 references I'ld like to show a 'more' link that leads to a list of all references.Something like (pseudocode):{% if reference_set.count > 5 %}more{% endif %}Anybody know how to do that?Or am I missing something

if >, if >= in templates?

2006-06-25 Thread Steven Armstrong
Hi I've got the following in my template: {% if reference_set.count %} {% for reference in reference_set.all|slice:":5" %} {{ reference.name }} {% endfor %} {% endif %} If there are more then 5 references I'ld like to show a 'more' link that leads to a list of all references. Something

Re: Lighttpd + django-fcgi.py problems

2006-06-25 Thread Michal
kwe, thank you for your help. i readed docs/fastcgi.txt and now my app runs smoothly under lighttpd server. thanks michal kwe wrote: > If your using the trunk version have a look at docs/fastcgi.txt. It's > now easier then it used to be to get stuff running, because fastcgi > support is part

Re: Default value for boolean field

2006-06-25 Thread jacob
Russell Keith-Magee wrote: > On 6/25/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > Interesting - I get the same behaviour. I've opened ticket #2231 for > > this problem - I'll look into it. > > Ok - I take that back - I don't get the same behaviour. > > True - the SQL doesn't get a

Re: Default value for boolean field

2006-06-25 Thread jacob
Russell Keith-Magee wrote: > > I'm using Django-0.95-py2.3.egg. > > Where did you get a 0.95 egg? v0.95 hasn't been released - it will be > the version number of the next official release, but that hasn't > happened yet. I believe I grabbed revision 3069 from the subversion repo. When it

Re: Mark user as 'already voted' in polls app

2006-06-25 Thread Guillermo Fernandez Castellanos
Hi, I am in the same situation actually. Or almost, as I'll have only anonymous users. I though about restricting votes based on IP addresses, but today, with NATs and all, that would be unfair for a lot of people. What I was planning to do is use the session framework. I will have in the

Mark user as 'already voted' in polls app

2006-06-25 Thread Vladimir Pouzanov
Hello all, I'm trying to extend polls app from tutorial and add a 'user already voted' check. Can somebody suggest me a way to do that? My current idea is to add some BLOB filed to polls model and add each voted user id to list that will be pickled into that field. For anonymous users a cookie

Re: Lighttpd + django-fcgi.py problems

2006-06-25 Thread kwe
If your using the trunk version have a look at docs/fastcgi.txt. It's now easier then it used to be to get stuff running, because fastcgi support is part of manage.py. There's full conf stuff in the text file. --~--~-~--~~~---~--~~ You received this message

Re: Model vanishes from Admin

2006-06-25 Thread merlin903
Russell Keith-Magee wrote: > On 6/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Not sure if this makes a difference or not, but when I run "manage.py > > validate" it says that there are 0 errors... and like I said > > originally... The files on my production server are an exact

Re: Model vanishes from Admin

2006-06-25 Thread Malcolm Tredinnick
On Sat, 2006-06-24 at 23:57 -0700, [EMAIL PROTECTED] wrote: > Not sure if this makes a difference or not, but when I run "manage.py > validate" it says that there are 0 errors... and like I said > originally... The files on my production server are an exact mirror of > what is on my dev server.

Re: Model vanishes from Admin

2006-06-25 Thread Russell Keith-Magee
On 6/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Not sure if this makes a difference or not, but when I run "manage.py > validate" it says that there are 0 errors... and like I said > originally... The files on my production server are an exact mirror of > what is on my dev server. My

Re: Model vanishes from Admin

2006-06-25 Thread merlin903
Not sure if this makes a difference or not, but when I run "manage.py validate" it says that there are 0 errors... and like I said originally... The files on my production server are an exact mirror of what is on my dev server. My models shows up on the dev's admin screen, just not on the