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 'Welco
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
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
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 the
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 so that
it silently ignores comments that include naug
Someone's been spamming the Django Trac today, screwing up tickets and
whatnot. Is there any way to fix and/or prevent this?
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:
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 I
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?
-rob
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 de
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 HttpR
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
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 (http://code.djangoproj
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,
Django'
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');")
...
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
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
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 initial
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 alrea
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
htt
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 adj
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 tha
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 c
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 ea
+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 easier.
Colin
Its not that needs to be done asap, i'll wait until new-admin merges
and then give it a try.
plisk wrote:
> Anyone working on this ? Would be great to have such functionality, so
> if noone started to do it i could give a look. Also where will this
> bidirectional ManyToMany select appear in itemtypes, below all the
> controls it has in model ?
>
>
I am working on core-fields removal a
Anyone working on this ? Would be great to have such functionality, so
if noone started to do it i could give a look. Also where will this
bidirectional ManyToMany select appear in itemtypes, below all the
controls it has in model ?
On 11/23/05, Benjamin Reitzammer <[EMAIL PROTECTED]> wrote:
> Looking at the code in django/contrib/admin/views/main.py I see, that
> the template is entirely dynamically created (which is obvious as the
> admin app doesn't know which model there will be), which makes
> extending the template impo
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 (whic
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 b
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 p
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 postgres - any clues?
--
regards
kg
http://www.livejournal.com/users/law
33 matches
Mail list logo