Re: Why does prepopulate only happen once?

2006-05-02 Thread James Bennett
On 5/2/06, Sandro <[EMAIL PROTECTED]> wrote: > which means that as I type in the new category_name the slug is > unresponsive. I have to manually changed the slug or modify the > auto_populate templatetag. Is there some reason why django doesn't > want the slug to change consistently with my cat

Why does prepopulate only happen once?

2006-05-02 Thread Sandro
Maybe I'm not setting up my models correctly but I like setting up a slug charfield that prepopulates from the category_name charfield. The javascript works just fine when I create a new category but when I want to alter my category django automatically sets: document.getElementById("id_slug")._

Re: Write a DRY URL configuration

2006-05-02 Thread Adrian Holovaty
On 5/2/06, Slowness Chen <[EMAIL PROTECTED]> wrote: > Sorry, there are two typos: > urlpatterns = patterns( '' > should be > urlpatterns = patterns( '' , > and > urlpatterns = patterns( 'django.views.generic.date_based' > should be > urlpatterns = patterns( 'dja

Tutorial for MR

2006-05-02 Thread Honza Král
Hello all, I tried to port my sample application to magic-removal (now AKA trunk) and it stopped working, because I had my model split into many files... when I merge these files ( cat models/*.py > models.py) everything (ehm, python manage.py sql APP ) worked. If this is the correct way to do thi

Re: Write a DRY URL configuration

2006-05-02 Thread Slowness Chen
Sorry, there are two typos: urlpatterns = patterns( '' should be urlpatterns = patterns( '' , and urlpatterns = patterns( 'django.views.generic.date_based' should be urlpatterns = patterns( 'django.views.generic.date_based' , --~--~-~--~~--

Re: hack for file-browser

2006-05-02 Thread Rudolph
Really nice work. I would love to use it! Rudolph --~--~-~--~~~---~--~~ 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 gr

Re: ANN: magic-removal branch merged to trunk

2006-05-02 Thread Eric Walstad
On Tuesday 02 May 2006 11:46, Eric Walstad wrote: > # svn switch \ > http://code.djangoproject.com/browser/django/tags/notable_moments/pre-magic-removal Oops. Replace /browser/ with /svn/: # svn switch \ http://code.djangoproject.com/svn/django/tags/notable_moments/pre-magic-removal Drifting-

Re: hack for file-browser

2006-05-02 Thread patrickk
actually, referring to the add-image was inaccurate. i´d like to have something like this http://www.vonautomatisch.at/django/ftp/get_image.jpg when clicking on the search-image near the image-field, the file- browser should open in a pop-up window in order to search for images/ files or upload

Re: M-R DB API Usage Question: How to order_by with extra field?

2006-05-02 Thread Adrian Holovaty
On 4/25/06, FX <[EMAIL PROTECTED]> wrote: > Seems to me it looks like a bug in the m-r branch. > django/db/models/query.py, line 430: > > was: > if "." not in col_name and col_name not in [k[0] for k in (self._select > or ())]: > > should be: > if "." not in col_name and col_name not in [k for k i

New Best Link for Perfect Career

2006-05-02 Thread Smith
Hello and Hi Today, I tell you another Best Website for finding the best job. Please check this link and enjoy your dream job.   http://www.it-jse.com   Special thing about this website is, they are presenting direct links to jobs. They are using only Direct Employers and not using Staffing

Re: Write a DRY URL configuration

2006-05-02 Thread Adrian Holovaty
On 5/2/06, Slowness Chen <[EMAIL PROTECTED]> wrote: > a recipe i just added to cookbook. hope it can be a little useful :-) > http://code.djangoproject.com/wiki/CookBookMakeURLConfDRY Thanks for the recipe! I've added it to the official URLconf documentation. Should be updated on the Web site wit

Re: hack for file-browser

2006-05-02 Thread Adrian Holovaty
On 5/2/06, va:patrick.kranzlmueller <[EMAIL PROTECTED]> wrote: > now i´d like to implement that browser for file- resp. image-fields. > i´m thinking about a "+" right near an input-field, which opens > another window where the user can select the appropriate image/file. > > hopefully someone can g

Re: FilePathField blank=True

2006-05-02 Thread Adrian Holovaty
On 5/1/06, Adam <[EMAIL PROTECTED]> wrote: > (in M-R) I have a model with this field: > > image = models.FilePathField(path='/my/path', blank=True, null=True) > > In the admin interface, the image field shows up dimmed like the rest > of the optional fields. However the select list lists all the f

Re: ANN: magic-removal branch merged to trunk

2006-05-02 Thread Jeremy Dunck
On 5/2/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > Man, we *sooo* should've called that tag "floating-sargasso". Fifth SailorListen ... chaps ... there's one last chance. I'm done for, I've got a gammy leg, I'm going fast, I'll never get through ... but ... some of you might ... so you'd

Re: ANN: magic-removal branch merged to trunk

2006-05-02 Thread Adrian Holovaty
On 5/2/06, Eric Walstad <[EMAIL PROTECTED]> wrote: > For those of us cast off to drift with the floating sargasso of > 'pre-magic-removal', this way to the life raft: Man, we *sooo* should've called that tag "floating-sargasso". Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~

Re: ANN: magic-removal branch merged to trunk

2006-05-02 Thread Eric Walstad
For those of us cast off to drift with the floating sargasso of 'pre-magic-removal', this way to the life raft: # cd /path/to/django_src # svn switch \ http://code.djangoproject.com/browser/django/tags/notable_moments/pre-magic-removal [...] # svn info Path: . URL: http://code.djangoproject.com

Re: non mod-python deployment...any experiences? (dedicated server)

2006-05-02 Thread James Bennett
On 5/2/06, Gábor Farkas <[EMAIL PROTECTED]> wrote: > is anyone running django using fastcgi/scgi/lighttpd or anything else > that is not the standard apache+mod_python configuration? It's somewhat specific to TextDrive's shared hosting setup, but I wrote up instructions for Django/lighttpd/FCGI a

Re: ANN: magic-removal branch merged to trunk

2006-05-02 Thread Vladimir Pouzanov
Hehe, I've read about M-R branch yestarday and now it's trunk... Thanks for RemovingTheMagic doc ;) On 5/2/06, CoolGoose <[EMAIL PROTECTED]> wrote: > > Great i'm waiting for the new docs :) > > > > > -- Sincerely, Vladimir "Farcaller" Pouzanov http://www.hackndev.com --~--~-~--~~--

Re: Template Tags in MR

2006-05-02 Thread Adrian Holovaty
On 5/2/06, tomass <[EMAIL PROTECTED]> wrote: > I think I'm supposed to create a directory called templatetags in the > directory that holds my models.py, then drop an __init__.py file into > there and the file I want to import (in my case automator.py). > > However, I get this error message: > > '

Template Tags in MR

2006-05-02 Thread tomass
Hi Folks, Just having a few problems getting custom template tags working in MR. I think I'm supposed to create a directory called templatetags in the directory that holds my models.py, then drop an __init__.py file into there and the file I want to import (in my case automator.py). However, I

Re: non mod-python deployment...any experiences? (dedicated server)

2006-05-02 Thread fawad
After being frustrated with segfaults in mod_python due to library mismatch between python and php modules, I switched to flup+scgi. It's been working fine since I installed it, and I have been pretty happy with the results, except maybe that the flup server has to be restarted when the code c

Write a DRY URL configuration

2006-05-02 Thread Slowness Chen
a recipe i just added to cookbook. hope it can be a little useful :-) http://code.djangoproject.com/wiki/CookBookMakeURLConfDRY Question: In a url configuration file, we use the first argument to the patterns() function to specify a prefix to apply to each view function , avoiding typing that out

Re: non mod-python deployment...any experiences? (dedicated server)

2006-05-02 Thread Jeremy Dunck
On 5/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Should have added, one of these is on a VPS setup on rimuhosting.com > and I'm very happy with the setup and service. +1 Rimu Hosting --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: non mod-python deployment...any experiences? (dedicated server)

2006-05-02 Thread [EMAIL PROTECTED]
Should have added, one of these is on a VPS setup on rimuhosting.com and I'm very happy with the setup and service. Derek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: For what is useful order_with_respect_to?

2006-05-02 Thread Ivan Sagalaev
Adrian Holovaty wrote: >No, ordering by ID wouldn't work, because you might want to change the >order of objects. Continuing Wilson's example, you may want to change >the ordering of choices for a given poll. > > Am I right guessing that to do this one should remove all related record and add

Re: non mod-python deployment...any experiences? (dedicated server)

2006-05-02 Thread [EMAIL PROTECTED]
Lighttpd + fastcgi on 2 servers, though both lightly loaded at the moment. No problems at all. Derek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djang

Re: [M-R] order by on custom SELECT column

2006-05-02 Thread Adrian Holovaty
On 5/1/06, Cheng Zhang <[EMAIL PROTECTED]> wrote: > I use a custom SELECT column as: > select = { > 'choices': 'SELECT COUNT(*) FROM polls_choice WHERE > poll_id=polls_poll.id', > } > p = Poll.objects.extra(select=select).order_by('choices') > > By trying this, I found out a bug in the ORM layer w

Re: For what is useful order_with_respect_to?

2006-05-02 Thread Adrian Holovaty
On 4/26/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > Wilson Miner wrote: > >To use the tutorial app as an example, if you have a number of choices > >for each poll, you may want to make the choices orderable by an > >arbitrary index within the poll, rather than sorting them > >alphabetically. In

Re: Tutorial Problem with Magic Removal

2006-05-02 Thread Adrian Holovaty
On 5/2/06, Dave <[EMAIL PROTECTED]> wrote: > I have tried to run the tutorial after updating to the latest svn trunk > (magic removal) and it's failing when I browse to the admin page (start > of Tutorial 2). > > Trace follows! > > Any help appreciated. Is this a bug or can I just not follow > ins

Re: For what is useful order_with_respect_to?

2006-05-02 Thread patrickk
i just tried what wilson wrote: used order_with_respect_to = 'poll' (instead of 'poll_id') still, my admin-screen didn´t change (it´s the same whether using order_with_respect_to or not using it). i know there´s been some discussion concerning oder_with_respect_to. it´d be very helpful if someon

Re: non mod-python deployment...any experiences? (dedicated server)

2006-05-02 Thread Cheng Zhang
On May 2, 2006, at 8:46 PM, Gábor Farkas wrote: > so, are there any people running django sites using non-mod_python? > any experiences? was it stable? We run http://www.ifaxian.com (a digg-like site in Chinese) with lighttpd + scgi. It's quite easy to setup, easier than Apache + mod_python

Re: non mod-python deployment...any experiences? (dedicated server)

2006-05-02 Thread Cheng Zhang
That blog is in Russian. ;-) On May 2, 2006, at 9:49 PM, Dmitry Medvedev wrote: > about nginx ( http://nginx.org/ ) - this web server is similiar to > lighttpd and i think results won't really differ a lot. I took > django+nginx instructions from Igor Goryachev's blog ( > http://goryachev.org/ )

Tutorial Problem with Magic Removal

2006-05-02 Thread Dave
Hi Guys, I have tried to run the tutorial after updating to the latest svn trunk (magic removal) and it's failing when I browse to the admin page (start of Tutorial 2). Trace follows! Any help appreciated. Is this a bug or can I just not follow instructions? Thanks! Dave. AttributeError at /a

Re: hack for file-browser

2006-05-02 Thread va:patrick.kranzlmueller
i still have to work on some stuff like multiple delete, rename, permissions ... it´ll be available soon. patrick Am 02.05.2006 um 15:28 schrieb [EMAIL PROTECTED]: > > On Tue, May 02, 2006 at 02:47:33PM +0200, va:patrick.kranzlmueller > wrote: >> i?m working on a file-browser for/with the d

Re: non mod-python deployment...any experiences? (dedicated server)

2006-05-02 Thread Dmitry Medvedev
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 we use nginx + django-fcgi.py + django 0.91 + memcached + mysql4.1 on FreeBSD 5.4 . it's a network documentation system, still under devel, so we don't have a lot of users, but artificial tests show that this configuration is very stable and resource

Re: hack for file-browser

2006-05-02 Thread nate-django
On Tue, May 02, 2006 at 02:47:33PM +0200, va:patrick.kranzlmueller wrote: > i?m working on a file-browser for/with the django-admin. > screenshots are here: > http://www.vonautomatisch.at/django/ftp/ Wow, that looks great! I would love to use that in my apps. Nate --~--~-~--~~-

Re: hack for file-browser

2006-05-02 Thread Viktor
It seems that we made similar projects :-/. Dubbled the work... http://sourceforge.net/projects/pybrowser (it's still in svn - no releases - and it works just on posix sistems. va:patrick.kranzlmueller wrote: > i�m working on a file-browser for/with the django-admin. > screenshots are here: > h

hack for file-browser

2006-05-02 Thread va:patrick.kranzlmueller
i´m working on a file-browser for/with the django-admin. screenshots are here: http://www.vonautomatisch.at/django/ftp/ now i´d like to implement that browser for file- resp. image-fields. i´m thinking about a "+" right near an input-field, which opens another window where the user can select t

non mod-python deployment...any experiences? (dedicated server)

2006-05-02 Thread Gábor Farkas
hi, is anyone running django using fastcgi/scgi/lighttpd or anything else that is not the standard apache+mod_python configuration? at work i will have to release a new site using django, and for various reasons apache2 + mod_python might not be possible. i've heard many complaints here regar

Re: ANN: magic-removal branch merged to trunk

2006-05-02 Thread CoolGoose
Great i'm waiting for the new docs :) --~--~-~--~~~---~--~~ 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 ema

Re: ANN: magic-removal branch merged to trunk

2006-05-02 Thread tonemcd
Ditto to that - I've been watching the activity on code.djangoproject.com, and there's been a huge amount of work done recently. Thanks again guys, this is a great framework! Cheers, Tone --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: ANN: magic-removal branch merged to trunk

2006-05-02 Thread Slowness Chen
great! thanks for all the hard work. --~--~-~--~~~---~--~~ 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 emai

Re: FileField fieldRequired error

2006-05-02 Thread layik
tonemcd wrote: > Take it easy You'll not make friends if people think you're > shouting... I didnt meant it, my response was posted twice sorry! > This works for me with an ImageFile field. FileField should work the > same... > > Template snippet: > > method="post"> > >

Re: FileField fieldRequired error

2006-05-02 Thread tonemcd
Take it easy You'll not make friends if people think you're shouting... This works for me with an ImageFile field. FileField should work the same... Template snippet: Title: {{ form.title }} Post date: {{ form.postdate_date }} Post tim

Re: Google SoC: Call for student applications

2006-05-02 Thread tonemcd
There's some seriously cool projects in that list! --~--~-~--~~~---~--~~ 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 gr