Re: Change password / Log out doesn't work with apache2

2005-11-23 Thread [EMAIL PROTECTED]
I change the base.html, maybe not a good idea, but it works now: -{% trans 'Welcome,' %} {% if user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{% endif %}. {% block userlinks %}{% trans 'Change password' %} / {% trans 'Log out' %}{% endblock %} +{% trans

Re: Change password / Log out doesn't work with apache2

2005-11-23 Thread Kenneth Gonsalves
On Thursday 24 Nov 2005 9:45 am, wang bin wrote: > hi, when I trying to setup my project on apache2 with mod_python, > following the document everything seems good except the Change > password / Log out doesn't work. When I click the link I get the > "The requested URL /admin/password_change/ was

Re: Django Trac Spam

2005-11-23 Thread Jacob Kaplan-Moss
On Nov 23, 2005, at 10:12 PM, Adrian Holovaty wrote: On 11/23/05, Tom Tobin <[EMAIL PROTECTED]> wrote: Someone's been spamming the Django Trac today, screwing up tickets and whatnot. Is there any way to fix and/or prevent this? I've been deleting 'em as they come in. Maybe we can hack Trac

Change password / Log out doesn't work with apache2

2005-11-23 Thread wang bin
hi, when I trying to setup my project on apache2 with mod_python, following the document everything seems good except the Change password / Log out doesn't work. When I click the link I get the "The requested URL /admin/password_change/ was not found on this server." Error, could anyone tell me

Django Trac Spam

2005-11-23 Thread Tom Tobin
Someone's been spamming the Django Trac today, screwing up tickets and whatnot. Is there any way to fix and/or prevent this?

'log' is not a valid tag library

2005-11-23 Thread Kenneth Gonsalves
hi am using the latest svn up - did init and install etc - main site works fine. When i try to log into admin, after entering username and password i get this error: 'log' is not a valid tag library Request Method: GET Request URL:http://localhost/bambanks/admin/ Exception Type:

Re: Extend list template of admin app?

2005-11-23 Thread Adrian Holovaty
On 11/23/05, oggie rob <[EMAIL PROTECTED]> wrote: > How many more changes are expected on that branch? And is there an ETA > on when it might merge/if it might merge with the head? The branch is done. I'm planning on merging it in the next couple of days -- or as soon as tonight or tomorrow, if

Re: Performance tuning tips?

2005-11-23 Thread Milton Waddams
no idea why I put it there, I tried moving it to the top, the response times went back to around 3 seconds. On 11/24/05, Eugene Lazutkin <[EMAIL PROTECTED]> wrote: > > Interesting that the session middleware was the culprit. BTW, why did you > put it at the end of your middleware list? > > The

Re: admin suggestions

2005-11-23 Thread oggie rob
Oops! I guess I hadn't tried it as much as I thought! Unfortunately #2 there causes a problem when they aren't overridden (a TypeError if '%s' is not included in the post_url). I guess a possible fix is to do a find, e.g.: if post_url.find('%s') >= 0: post_url = post_url % pk_value return

Re: raw_id_admin

2005-11-23 Thread Adrian Holovaty
On 11/23/05, Grigory Fateyev <[EMAIL PROTECTED]> wrote: > class Article(meta.Model): > author = meta.ForeignKey(User, raw_id_admin=True) > > vews/articles.py generate form: > > Author: {{ form.author }} > {% if form.author.errors %}*** {{ form.author.errors|join:", " }} > {% endif

Re: init fails

2005-11-23 Thread Adrian Holovaty
On 11/23/05, David Ascher <[EMAIL PROTECTED]> wrote: > I've had the same problem in cases when I forget to use named parameters to > my FloatFields, which then generates invalid SQL with "None" in it. That's > a bug, IMO. I may even try to fix it =). As of changeset 1314

Re: Atom and web services interfaces

2005-11-23 Thread Adrian Holovaty
On 11/23/05, tonemcd <[EMAIL PROTECTED]> wrote: > I'm thinking of using Django as the front-end to an experimental > Atom-enabled 'store' as outlined by Joe Gregorio at > http://www.xml.com/pub/a/2005/09/21/atom-store-web-database.html > [...] > Any thoughts gratefully received. Hi Tone,

Sequence in PostgreSQL is not updated when doing manual insert

2005-11-23 Thread pgross
In order to load some test data into the database, I'm using the following code: from django.core.db import db cursor = db.cursor() cursor.execute("insert into cities (id, name) values (1, 'Chicago');") cursor.execute("insert into cities (id, name) values (2, 'Miami');")

Model updates in early development stages

2005-11-23 Thread Maniac
There is a thread in django-developers list talking about the way Django and Rails handle frequent changes to models on early stages of development ('prototyping' - to sound cool). Neither framwork does this transparently which is understandable because it's definitely hard and even arguably

raw_id_admin

2005-11-23 Thread Grigory Fateyev
Hello! In model i use this field: class Article(meta.Model): author = meta.ForeignKey(User, raw_id_admin=True) vews/articles.py generate form: Author: {{ form.author }} {% if form.author.errors %}*** {{ form.author.errors|join:", " }} {% endif % } If the field is filled by

Re: init fails

2005-11-23 Thread David Ascher
On 11/23/05, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: On Wednesday 23 Nov 2005 2:46 pm, Kenneth Gonsalves wrote:> hi> i have a working django app. i did an svn checkout of the app> into another machine. When i try to run init, i am getting this> error: >> Error: The database couldn't be

Re: Sequence in PostgreSQL is not updated when doing manual insert

2005-11-23 Thread Jacob Kaplan-Moss
On Nov 23, 2005, at 11:15 AM, pgross wrote: I've tracked down the problem, and it seems that when I do my manual inserts, the sequence (cities_id_seq) that PostgreSQL uses for primary keys isn't updated. Therefore, when I try to save my object with django, the primary key collides with an

Re: Performance tuning tips?

2005-11-23 Thread Eugene Lazutkin
Interesting that the session middleware was the culprit. BTW, why did you put it at the end of your middleware list? The default order is: "django.middleware.sessions.SessionMiddleware", "django.middleware.common.CommonMiddleware", "django.middleware.doc.XViewMiddleware", (see

Atom and web services interfaces

2005-11-23 Thread tonemcd
Hello, I'm thinking of using Django as the front-end to an experimental Atom-enabled 'store' as outlined by Joe Gregorio at http://www.xml.com/pub/a/2005/09/21/atom-store-web-database.html I'm a real newbie to Django, having spent the last 7 years in Zope-land, and am looking at Django as an

Re: Paginating complex queries

2005-11-23 Thread Afternoon
On 23 Nov 2005, at 15:07, Simon Willison wrote: The aim with the template system has always been to keep it de- coupled from the request/response stuff, so it can be used as a standalone component. It's hard to see how the request object could be exposed to custom tags without breaking

Re: Paginating complex queries

2005-11-23 Thread Simon Willison
On 23 Nov 2005, at 14:59, Afternoon wrote: Is there a way that the request object could be exposed to custom tag code, but not the template itself? The aim with the template system has always been to keep it de- coupled from the request/response stuff, so it can be used as a standalone

Re: Paginating complex queries

2005-11-23 Thread Afternoon
On 23 Nov 2005, at 14:42, Colin Howlett wrote: +1 to putting the request object into the context as standard, or at least into DjangoContext. I've only been playing with Django for a few days, and it's already obvious that this single change would make writing useful custom tags a whole lot

Re: Bi-Directional ManyToMany

2005-11-23 Thread plisk
Its not that needs to be done asap, i'll wait until new-admin merges and then give it a try.

Extend list template of admin app?

2005-11-23 Thread Benjamin Reitzammer
Hi, I would like to add some custom mass-editing capabilities to the admin app, and for this I would like to know if it's possible to extend the list template of the admin app. Looking at the code in django/contrib/admin/views/main.py I see, that the template is entirely dynamically created

Re: Performance tuning tips?

2005-11-23 Thread Milton Waddams
Yes I am running openload on localhost, I don't trust my DSL enough to get accurate results :( my MIDDLEWARE_CLASSES: "django.middleware.common.CommonMiddleware", "django.middleware.doc.XViewMiddleware", "django.middleware.sessions.SessionMiddleware", I'm caching on a view by view

Re: init fails

2005-11-23 Thread Kenneth Gonsalves
On Wednesday 23 Nov 2005 2:46 pm, Kenneth Gonsalves wrote: > hi > i have a working django app. i did an svn checkout of the app > into another machine. When i try to run init, i am getting this > error: > > Error: The database couldn't be initialized. > name 'true' is not defined > this is with