Re: request.META.PATH_INFO strangeness...

2007-02-05 Thread [EMAIL PROTECTED]
I am also having this problem. All of my request.META['PATH_INFO'] result in '/' do you know what it was that resolved this?!?! On Jan 30, 10:25 am, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote: > Graham Dumpleton wrote: > > > This can occur where you are using Location directive set to '/'

Re: horrendous view, need advice on cleaning up

2007-02-05 Thread Jeremy Dunck
On 2/5/07, Milan Andric <[EMAIL PROTECTED]> wrote: > > Hello, > > I have a poorly written view that is 1) hard to understand and 2) > performs slowly. Can you offer any incite into what is slowing this > view down so much? Besides the app being over 60 fields long, what > other things can I

Re: problem about i18n in apache

2007-02-05 Thread pength
well, the locale directory should be in up-level of project directorysorry for disturbing. ;) On 2月5日, 下午2时05分, "pength" <[EMAIL PROTECTED]> wrote: > i am using i18n as the following way. In urls.py, i added > (r'^i18n/', include('django.conf.urls.i18n')), > and in my page, there're 2

Re: DATETIME_FORMAT ignored

2007-02-05 Thread Matias
Taht woks! Thanks a lot. On 5 feb, 18:49, "Chris Brand" <[EMAIL PROTECTED]> wrote: > Try {{ object.pub_date|date }} > > Chris > > > -Original Message- > > From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] > > On Behalf Of Matias > > Sent: 4 February 2007 1:50 PM > > To:

horrendous view, need advice on cleaning up

2007-02-05 Thread Milan Andric
Hello, I have a poorly written view that is 1) hard to understand and 2) performs slowly. Can you offer any incite into what is slowing this view down so much? Besides the app being over 60 fields long, what other things can I adjust to make this view perform better? http://dpaste.com/5362/

Re: problem with flatpages and debug=false

2007-02-05 Thread Rob Hudson
This is a known bug: http://code.djangoproject.com/ticket/3335 On Feb 5, 8:53 am, patrickk <[EMAIL PROTECTED]> wrote: > when I go to one of the flatpages on our site (not admin), I´m > getting "404 page not found" - but only when debug=False. > with debug=True, everything´s fine. > > any ideas?

Re: Reverse M2M

2007-02-05 Thread Russell Keith-Magee
On 2/5/07, Enrico <[EMAIL PROTECTED]> wrote: > > I need to list the Users, with the possibility of using two filters: > my friends and people who added me. > > I can list people who added me using: > users = auth.models.User.filter(profile__friends=some_user_id) > > But I can't get the list of

Re: Can I get stdout from mod_python?

2007-02-05 Thread Graham Dumpleton
On Feb 6, 1:38 am, "quentinsf" <[EMAIL PROTECTED]> wrote: > I'm developing some code which I need to run undermod_python- the > 'runserver' option won't work because it's complex stuff and I need to > handle multiple simultaneous requests, even in the early debugging > stages. > > It would be

Re: Forms inheritance

2007-02-05 Thread Adrian Holovaty
On 2/1/07, aaloy <[EMAIL PROTECTED]> wrote: > I'm trying use form inheritance to render the form, but it seems > Django just renders the child fields and not the parent ones. Is this > a feature or a bug? Hi aaloy, This is a bug, and we're aware of it. The workaround is to do as Honza

Re: create_object(follow) what is parameter follow?

2007-02-05 Thread Adrian Holovaty
On 2/4/07, James Bennett <[EMAIL PROTECTED]> wrote: > Its existence has always been a bit of a hack, and I'm hoping newforms > will get rid of it once and for all. Yes, "follow" is going away, and good riddance. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com

Re: Can I get stdout from mod_python?

2007-02-05 Thread quentinsf
Thanks Honza - That's a nice solution. I'll follow your example. Quentin --~--~-~--~~~---~--~~ 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

Re: Use a simple query string.

2007-02-05 Thread Waylan Limberg
On 2/5/07, Waylan Limberg <[EMAIL PROTECTED]> wrote: > On 2/4/07, Jason <[EMAIL PROTECTED]> wrote: > > > > Can anyone help with my super simple query string problem > > > > I'm simply trying to get www.mysite.com/uptodate?build=123 parsed. The > > problem is I can't get any URL to match (I

Re: Use a simple query string.

2007-02-05 Thread Waylan Limberg
On 2/4/07, Jason <[EMAIL PROTECTED]> wrote: > > Can anyone help with my super simple query string problem > > I'm simply trying to get www.mysite.com/uptodate?build=123 parsed. The > problem is I can't get any URL to match (I keep getting 404 - page not > found). > > > My URL: > >

RE: DATETIME_FORMAT ignored

2007-02-05 Thread Chris Brand
Try {{ object.pub_date|date }} Chris > -Original Message- > From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] > On Behalf Of Matias > Sent: 4 February 2007 1:50 PM > To: Django users > Subject: DATETIME_FORMAT ignored > > > Hi, > > Hi, > > I'm my settings.py I've added

Re: Multilingual content - yet another idea

2007-02-05 Thread [EMAIL PROTECTED]
Hi daev, On 1 Lut, 09:52, "daev" <[EMAIL PROTECTED]> wrote: > Thanks. But i still have this problem. Even after update my work copy > of code you were right, there was a bug that would cause incorrect table headers for fields without verbose_name explicitely set in model definition. I found

Debugging test client

2007-02-05 Thread Lawrence Oluyede
I'm having some problems with the django.test.client infastructure. To fix them I tried to print the response of a Client().get() call but I noticed that in presence of the status code 500 the response.content is filled with the production page, not the one Django generates during the development

problem with flatpages and debug=false

2007-02-05 Thread patrickk
when I go to one of the flatpages on our site (not admin), I´m getting "404 page not found" - but only when debug=False. with debug=True, everything´s fine. any ideas? thanks, patrick --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Newforms usage and documentation

2007-02-05 Thread Adrian Holovaty
On 2/5/07, voltron <[EMAIL PROTECTED]> wrote: > I found this great tutorial, is it still valid? Can I base my code on > this tutorial without fearing that things might break later? Is there > another source for newforms docs? The definitive source for newforms docs is here:

Reverse M2M

2007-02-05 Thread Enrico
Hi, I have a Profile model with a OneToOne relationship to the auth.User model. In the Profile I have a ManyToMany relationship (non-symmetrical) to the auth.User model called friends. Something like this: class Profile(models.Model): user = models.OneToOneField(auth.models.User)

Newforms usage and documentation

2007-02-05 Thread voltron
I found this great tutorial, is it still valid? Can I base my code on this tutorial without fearing that things might break later? Is there another source for newforms docs? Tutorial link : http://code.pui.ch/2007/01/07/using-djangos-newforms/ thanks

Re: Can I get stdout from mod_python?

2007-02-05 Thread Honza Král
On 2/5/07, quentinsf <[EMAIL PROTECTED]> wrote: > > I'm developing some code which I need to run under mod_python - the > 'runserver' option won't work because it's complex stuff and I need to > handle multiple simultaneous requests, even in the early debugging > stages. > > It would be really

Multiple profiles

2007-02-05 Thread voltron
Hi, Accoridng to the Django book, one could extend the basic user model by adding a profile class, this class is then set in the settings module thus: AUTH_PROFILE_MODULE = "myapp.mysiteprofile" How do I set multiple profiles? I would like to have different types of users, diffrentiating via

Re: urls parameter - deliver query set

2007-02-05 Thread Honza Král
to try and serialize queryset (or any other object for that matter), pass it to the user and than back to server is just not nice... try passing the parameters needed to construct the queryset, store it temporarily in a DB (session or some cache backend) or anything, just don't give it to the

Re: urls parameter - deliver query set

2007-02-05 Thread Jason
Hi: DId you ever find a solution to this? I'm having a similar probme but want to deliver the query set like: http://www.foo.com/books?a=12345 Jason. On Feb 3, 6:52 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > i would like to deliver a query set to a view by url. > I used

Can I get stdout from mod_python?

2007-02-05 Thread quentinsf
I'm developing some code which I need to run under mod_python - the 'runserver' option won't work because it's complex stuff and I need to handle multiple simultaneous requests, even in the early debugging stages. It would be really nice to see the output of my print statements. I know I could

Some kind of django.contrib.stats?

2007-02-05 Thread David Larlet
Hi, I wonder if something like bbclone [1] (especially the "live" view [2]) exists in python? I've just found Peastat [3] which looks new but interesting (fortunately, the author is maybe on this list). What else did you use to know where are your current visitors? Same question for long term

Re: Related "order by" problems (Solved-ish)

2007-02-05 Thread Tom Smith
On 4 Feb 2007, at 16:44, Ramiro Morales wrote: > See tickets #2210 and 2076 where a patch is proposed to solve the > problem. I tried to patch it.. like this... >>cd /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ site-packages/Django-0.95-py2.4.egg/django/db/models

Re: ViewDoesNotExist at /appl/ - Help please?

2007-02-05 Thread smallQ
try : from pytpath.appl.models import task_par1 in your view file smallQ 2007-02-05 发件人: CosyGlow 发送时间: 2007-02-05 17:06:55 收件人: Django users 抄送: 主题: ViewDoesNotExist at /appl/ - Help please? Django users I'm tried to get my project to work but am stuck with the abovementioned error.

Re: Admin page -Loging in problems

2007-02-05 Thread voltron
Hmm, I reset the database, restarted, invoked syncdb again, now it works :) On Jan 29, 9:20 pm, "voltron" <[EMAIL PROTECTED]> wrote: > Yes I did add the admin app, all models validated properly and I can > start the internal Django server > > On Jan 29, 5:04 am, "Ramdas S" <[EMAIL PROTECTED]>

ViewDoesNotExist at /appl/ - Help please?

2007-02-05 Thread CosyGlow
Django users I'm tried to get my project to work but am stuck with the abovementioned error. I've tried everything in the book and also tried all advice given by users on the group to other users who had the same kinda errors, but I had no joy yet. Below I'm describing/giving evertyhing I can