Re: What IDE do you use? (semi-OT)

2006-10-08 Thread Kenneth Gonsalves
On 09-Oct-06, at 3:52 AM, Serg Kovrov wrote: > I'd like to know what editor/IDE Django users (and developers) eric3 and quanta -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ You received this message

Re: Re: What IDE do you use? (semi-OT)

2006-10-08 Thread Milton Waddams
I use eric3 for my python work, jEdit for templates. I only use the basic features of eric (projects and editing). I use it because it is easy and works well. I use Ubuntu. I think eric is available on windows (it's written in python) though I've never tried it.

Re: How do I select where x=a and y=b?

2006-10-08 Thread SmileyChris
Actually, exact lookups are the default: http://www.djangoproject.com/documentation/db_api/#default-lookups-are-exact Carl, it's likely that you were not using quotes around your strings. .get(x=a) will get the record where property x matches the defined variable a (which you probably hadn't

Re: Re: What IDE do you use? (semi-OT)

2006-10-08 Thread iain duncan
On Sun, 2006-08-10 at 21:39 -0500, James Bennett wrote: > On 10/8/06, iain duncan <[EMAIL PROTECTED]> wrote: > > - the python interface for gvim ( allows running a python interpreter > > within vim that can in turn call methods on the vim buffers ). > > Hooray for C-c C-c in Emacs! > I was

Re: Re: What IDE do you use? (semi-OT)

2006-10-08 Thread James Bennett
On 10/8/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Isn't there a risk of drowning if you drink as much of the Emacs > Kool-Aid as you clearly have been doing? Actually, I haven't drunk the Kool-Aid yet. I do have the track suit and the sneakers, though. -- "May the forces of evil

Re: What IDE do you use? (semi-OT)

2006-10-08 Thread iain duncan
> > > It's got all the "standard" features: syntax highlighting, > > indentation, etc., but it's also got so much more. The > > text-manipulation things it can do run circles around everything else, > > it's got support for Subversion and WebDAV, it has an insanely > > powerful editing file

Re: What IDE do you use? (semi-OT)

2006-10-08 Thread [EMAIL PROTECTED]
UliPad is very good! --~--~-~--~~~---~--~~ 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 email to [EMAIL

Re: What IDE do you use? (semi-OT)

2006-10-08 Thread Malcolm Tredinnick
On Sun, 2006-10-08 at 19:45 -0500, James Bennett wrote: > On 10/8/06, Serg Kovrov <[EMAIL PROTECTED]> wrote: > > I'd like to know what editor/IDE Django users (and developers) uses on > > daily basis, to boost development process. And why exactly - what > > features you find useful, how it helps

Re: Re: Re: Re: Bad title alignment for short_description in Admin

2006-10-08 Thread Malcolm Tredinnick
On Sun, 2006-10-08 at 20:06 +0800, Russell Keith-Magee wrote: > On 10/8/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > > On Sun, 2006-10-08 at 08:10 +0800, Russell Keith-Magee wrote: > > [...] > > > 5) Document the problem away. Advise users that > > > TEMPLATE_STRING_IF_INVALID is

Re: No table colums, except id

2006-10-08 Thread Malcolm Tredinnick
On Sun, 2006-10-08 at 14:52 -0700, Panos Laganakos wrote: > > Try using the same pattern you' ve used with the Dvd class with the > > inner Admin class, > > like this: > > > > class Dvd(models.Model): > > pass > > > > class Admin: > > pass > > > > That should solve both

Re: How do I work out what the Web root is?

2006-10-08 Thread Malcolm Tredinnick
On Sun, 2006-10-08 at 12:58 -0700, MerMer wrote: > This is probably a daft question - but is there a way to find out what > my web root is when I'm using the Django development web server. Your question doesn't really make sense for the development server, since it only ever serves dynamic

Re: What IDE do you use? (semi-OT)

2006-10-08 Thread Martin Winkler
> I'd like to know what editor/IDE Django users (and developers) uses on > daily basis, I love Vim (Linux and if necessary Windows) since about 4 years. Main reasons: * super fast because of the sophisticated motion keys and multi-line editing (visualmode I) * filetype plugins for

Re: What IDE do you use? (semi-OT)

2006-10-08 Thread limodou
On 10/9/06, Serg Kovrov <[EMAIL PROTECTED]> wrote: > > Hello everybody, sorry if it may sounds a bit of off-topic, but > still... > > I'd like to know what editor/IDE Django users (and developers) uses on > daily basis, to boost development process. And why exactly - what > features you find

Re: What IDE do you use? (semi-OT)

2006-10-08 Thread John Sutherland
On 8 Oct 2006, at 23:22, Serg Kovrov wrote: > I'd like to know what editor/IDE Django users (and developers) uses on > daily basis, to boost development process. And why exactly - what > features you find useful, how it helps you to save time (or just makes > coding enjoyable, which probably

Re: What IDE do you use? (semi-OT)

2006-10-08 Thread Eugene Pyvovarov
I'm using VIM 7 under Windows XP and under my Ubuntu linux and I love this editor! It's very nice, fast and can do many nice things...and ofcourse it is very customizable! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Static, non-django cache combined with django?

2006-10-08 Thread RajeshD
You might want to look into a caching reverse proxy. You can setup Squid in that configuration: http://wiki.squid-cache.org/SquidFaq/ReverseProxy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

What IDE do you use? (semi-OT)

2006-10-08 Thread Serg Kovrov
Hello everybody, sorry if it may sounds a bit of off-topic, but still... I'd like to know what editor/IDE Django users (and developers) uses on daily basis, to boost development process. And why exactly - what features you find useful, how it helps you to save time (or just makes coding

Re: No table colums, except id

2006-10-08 Thread Panos Laganakos
> Try using the same pattern you' ve used with the Dvd class with the > inner Admin class, > like this: > > class Dvd(models.Model): > pass > > class Admin: > pass > > That should solve both problems (that really are of the same issue, when > an admin view has been

Re: No table colums, except id

2006-10-08 Thread Ramiro Morales
Panos, On 10/8/06, Panos Laganakos <[EMAIL PROTECTED]> wrote: > > What I'm doing is this: > > class Dvd(models.Model): > pass > > > class File(models.Model): > #... > dvd = models.ForeignKey('Dvd', blank=True, null=True) > > [...] > > Problem is, I'm not sure how to define something

No table colums, except id

2006-10-08 Thread Panos Laganakos
What I'm doing is this: class Dvd(models.Model): pass class File(models.Model): #... dvd = models.ForeignKey('Dvd', blank=True, null=True) I'm using blank and null, 'cause the file might not be backed up to a DVD yet. Problem is, I'm not sure how to define something to 'class

Generic Relation vs ManyToMany (was Re: Organisational question)

2006-10-08 Thread Nicolas Steinmetz
Hi, John Sutherland wrote: > class BlogPost(models.Model): > categories = models.ManyToManyField(Category) > > It may be worth having a look at the generic relationships [1] stuff > and the Tag application used as an example. While the GR stuff in the > Django admin is truly horrible, you

automatically login after email confirmation

2006-10-08 Thread SanPy
I've been trying to implement the user registration process from http://www.b-list.org/weblog/2006/09/02/django-tips-user-registration . It's basically a registration process where the user has to be activated by clicking on a link in an email. Everything went fine and it worked. Then I wanted to

Re: How do I select where x=a and y=b?

2006-10-08 Thread carlwenrich
thanks --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For

How do I work out what the Web root is?

2006-10-08 Thread MerMer
This is probably a daft question - but is there a way to find out what my web root is when I'm using the Django development web server. With PHP you can see all your configuration settings easily using the phpinfo() function, including all your web settings. Is there an equivalent for Django.

Re: How do I select where x=a and y=b?

2006-10-08 Thread MerMer
Details are in the Database API document . The "exact" expression is defined in the glossary thoough the example uses .get rather than .filter MerMer carlwenrich wrote: > it worked, thanks. where would i find it if you hadn't been so kind as > to tell me?

Re: How do I select where x=a and y=b?

2006-10-08 Thread carlwenrich
it worked, thanks. where would i find it if you hadn't been so kind as to tell me? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: How do I select where x=a and y=b?

2006-10-08 Thread John Sutherland
On 8 Oct 2006, at 19:48, carlwenrich wrote: > What I'm looking for is something like r = Record.objects.get(x=a, > y=b) > which doesn't work. Give the following a go: Record.objects.filter(x__exact='a', y__exact='b') John. --~--~-~--~~~---~--~~ You received

Re: Can I pre-populate fields in the admin interface?

2006-10-08 Thread carlwenrich
thanks --~--~-~--~~~---~--~~ 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 email to [EMAIL PROTECTED] For

Re: can't get LANGUAGES to work in the base template

2006-10-08 Thread Baurzhan Ismagulov
On Sun, Oct 08, 2006 at 06:27:38PM +0400, Ivan Sagalaev wrote: > If I correctly suspect that we speak the same language then I can > recommend my blog post about it: > http://softwaremaniacs.org/blog/2006/01/12/context-processors/ This is great, it describes first the use case rather than the

Translation not loaded

2006-10-08 Thread Dirk Eschler
Hello, i can't get my project translation to load. Original strings are in English. I switch the language to "de" with set_language (like described in the i18n doc). Checked it with "get_current_language" in the template, which outputs "de" as expected. My strings however are still in English

Re: can't get LANGUAGES to work in the base template

2006-10-08 Thread Baurzhan Ismagulov
Hello Ivan, On Sun, Oct 08, 2006 at 05:54:27PM +0400, Ivan Sagalaev wrote: > All the extra information (such as {{ user }} or {{ LANGUAGES }}) is > passed to templates by a RequestContext that processes a number of > context processors defined in TEMPLATE_CONTEXT_PROCESSORS in settings. > > I

Re: can't get LANGUAGES to work in the base template

2006-10-08 Thread Ivan Sagalaev
Baurzhan Ismagulov wrote: > I'm using django 0.96 r3709. I have base.html, page1.html, and > page2.html templates. The latter two extend the former one. base.html > creates a box with all supported LANGUAGES. This works as > expected in page1, but not in page2. page1 is a verdjn templatepage >

can't get LANGUAGES to work in the base template

2006-10-08 Thread Baurzhan Ismagulov
Hello all, I'm using django 0.96 r3709. I have base.html, page1.html, and page2.html templates. The latter two extend the former one. base.html creates a box with all supported LANGUAGES. This works as expected in page1, but not in page2. page1 is a verdjn templatepage (rendered with

Re: Re: Re: Re: Bad title alignment for short_description in Admin

2006-10-08 Thread Russell Keith-Magee
On 10/8/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Sun, 2006-10-08 at 08:10 +0800, Russell Keith-Magee wrote: > [...] > > 5) Document the problem away. Advise users that > > TEMPLATE_STRING_IF_INVALID is purely a temporary debugging flag, and > > it shouldn't be enabled for

Re: Ajax

2006-10-08 Thread Dirk Eschler
Am Samstag, 7. Oktober 2006 23:38 schrieb MerMer: > I'm using a default local installation on a Windows XP machine, running > Firefox 1.5 > > When I try the following URL > http://localhost:8000/media/js/textareas.js I get a message saying > that the file cannot be found on the following (notice

Re: Ajax

2006-10-08 Thread coulix
I use 4 text area on the same page there http://www.cefinban.net You can get the source here http://www.coulix.net/projects/cefinban/ Ramdas S wrote: > Hi, > > I tried to hack it via the admin base.html by including > the following code in the of the admin/base.html. > > *

Re: Ajax

2006-10-08 Thread Ramdas S
Hi,I tried to hack it via the admin base.html by including the following code in the of the

Re: Re: Re: Bad title alignment for short_description in Admin

2006-10-08 Thread Malcolm Tredinnick
On Sun, 2006-10-08 at 08:10 +0800, Russell Keith-Magee wrote: [...] > 5) Document the problem away. Advise users that > TEMPLATE_STRING_IF_INVALID is purely a temporary debugging flag, and > it shouldn't be enabled for prolonged periods, even on a development > server. > > (5) is my personal

Re: Re: errors on syncdb

2006-10-08 Thread Russell Keith-Magee
On 10/8/06, ryangriff.in <[EMAIL PROTECTED]> wrote: > > A question, If I am working on multiple django projects do I have to > continually set the DJANGO_SETTINGS_MODULE to point at the settings of the > project I am currently working on? 'Continually' isn't really the right way to put it. You

Multiple databases, same Django instance.

2006-10-08 Thread Gloria
Hi, I was wondering if the feature is fully supported yet. I have more than one existing "legacy" database that I would like to support from the same Django instance. How do I safely bring the Django tables into each database? Do you run syncdb on an empty copy, then add your tables, then