Re: init ignoring 127.0.0.1

2005-11-02 Thread Kenneth Gonsalves
On Wednesday 02 Nov 2005 5:16 pm, Kenneth Gonsalves wrote: > On Wednesday 02 Nov 2005 5:03 pm, Marcos Sánchez Provencio wrote: > > Is 127.0.0.1 not localhost? Can you explain that? The 127.X.X.X net > > _is_ localhost by IP specs, I thought. > > this is running in a freebsd jail - 'localhost' will

Re: I want to start a django project for a forum

2005-11-02 Thread Ian Holsman
Hi Luke. my aim is not to do a drop-in replacement for a phpBB. but more for integrating discussions into other parts of applications, and to do this I think it needs to in django. I have got a wiki page up, http://wiki.zilbo.com/ForumDesign (yes it took me this long to get the silly thing runni

Re: getting id of logged user in admin site

2005-11-02 Thread Flavio Curella
hello gregory, ticket is #714. bye, Flavio

[ANNOUNCE] EVENTS, HUMOUR, BOOKS related to SOFTWARE DEVELOPMENT

2005-11-02 Thread developer newswire
CONTENTS: ** EVENTS ** EUROPE ** ** BOOKS ** ** EVENTS ** USA ** ** CALL FOR SPEAKERS ** EUROPE ** CALL FOR SPEAKERS ** USA ** HUMOUR ** ** OTHER INFORMATION - MAGAZINES, WHITEPAPERS ... ** ** EVENTS ** EUROPE ** ** Enterprise Architect Confe

Re: problem lookup function

2005-11-02 Thread Jeffrey E. Forcier
On Nov 2, 2005, at 10:42 AM, Joey Coleman wrote: from django.models.myapp import categories category_names = [ c.category_name | c in categories.get_list() ] Surely you mean [c.category_name for c in categories.get_list() ] ?? :) -- Jeffrey E. Forcier Junior Developer, Research and Developm

Re: problem lookup function

2005-11-02 Thread Joey Coleman
On 11/2/05, Grigory Fateyev <[EMAIL PROTECTED]> wrote: > > Hello! > > I have myapp model: > > class Category(meta.Model): > category_name = meta.CharField(maxlength=30) > category_image = meta.ImageField(upload_to="/var/www/html/media") > > class Article(meta.Model): > cate

Re: Doing "OR" operation with Database API?

2005-11-02 Thread Armin
Got it. Thanks Adrian. Armin

Re: Auth questions of newbie

2005-11-02 Thread Grigory Fateyev
Hello Grigory Fateyev! On Mon, 31 Oct 2005 20:49:57 +0300 you wrote: > > Hello, django-users! > > I have some general questions about auth of django. Sorry if my > questions would seeming stupid. > > I'd like to do site authentication w/ sessions for users, some page of > site (like add some o

problem lookup function

2005-11-02 Thread Grigory Fateyev
Hello! I have myapp model: class Category(meta.Model): category_name = meta.CharField(maxlength=30) category_image = meta.ImageField(upload_to="/var/www/html/media") class Article(meta.Model): category_name = meta.ForeignKey(Category) How to get list of category_name fr

Re: Doing "OR" operation with Database API?

2005-11-02 Thread Adrian Holovaty
On 11/2/05, Stefan H. Holek <[EMAIL PROTECTED]> wrote: > mymodule.get_list(_or=[[('from__icontains', 'armin'), > ('to__icontains', 'armin')]]) This "_or" syntax is undocumented and is going away in the future! Don't use it! See http://code.djangoproject.com/ticket/251 for the probable replacemen

Re: Doing "OR" operation with Database API?

2005-11-02 Thread Armin
Ignore my prev. comment. A stupid error. The code works just seamlessly. Fantastic. Thanks again, Armin

Re: Doing "OR" operation with Database API?

2005-11-02 Thread Armin
Thanks Stefan, I am grateful that the feature is there and I don't quite have to get my hands dirty with sql. My program didn't like the above code much though somehow. I'll share the error in hope of getting some insights. Thanks again. -armin There's been an error: Traceback (most recent call

Re: Doing "OR" operation with Database API?

2005-11-02 Thread hugo
>mymodule.get_list(_or=[[('from__icontains', 'armin'), >('to__icontains', 'armin')]]) Wow. And I thought I knew all about the django query API :-) Hey, that's actually quite helpfull for my search engine stuff, as I can reduce the code a bit with that. Only thing left would be a icontainsnot que

Re: getting id of logged user in admin site

2005-11-02 Thread Grigory Fateyev
Hello Flavio Curella! On Tue, 01 Nov 2005 16:45:08 -0800 you wrote: > > thanks Hugo. > > I think this is a common case: I (and peraphs many people) prefer > django to other frameworks because of its admin application: half a > work is already made. I think a feature like this will be very helpf

Re: init ignoring 127.0.0.1

2005-11-02 Thread Kenneth Gonsalves
On Wednesday 02 Nov 2005 5:03 pm, Marcos Sánchez Provencio wrote: > Is 127.0.0.1 not localhost? Can you explain that? The 127.X.X.X net > _is_ localhost by IP specs, I thought. this is running in a freebsd jail - 'localhost' will apply to whats inside the jail. The postgres database is running o

Re: init ignoring 127.0.0.1

2005-11-02 Thread Marcos Sánchez Provencio
Is 127.0.0.1 not localhost? Can you explain that? The 127.X.X.X net _is_ localhost by IP specs, I thought. El mié, 02-11-2005 a las 16:28 +0530, Kenneth Gonsalves escribió: > hi > i have an application running on a freebsd 'jail'. The postgresql > database is hosted on 127.0.0.1 (not localhost).

init ignoring 127.0.0.1

2005-11-02 Thread Kenneth Gonsalves
hi i have an application running on a freebsd 'jail'. The postgresql database is hosted on 127.0.0.1 (not localhost). My application runs perfectly with the DATABASE_HOST = '127.0.0.1'. I have now started a second app on the same server. When i run django-admin.py init, it is unable to create

Re: Doing "OR" operation with Database API?

2005-11-02 Thread Stefan H. Holek
mymodule.get_list(_or=[[('from__icontains', 'armin'), ('to__icontains', 'armin')]]) Don't ask... Stefan On 2. Nov 2005, at 05:14, Armin wrote: How can I do 'or' in Django's Database API. Something like this: select * from message where from = 'armin' OR to = 'armin' Thank you in advan