I found an interesting way to handle locales in admin's date_hierarchy
feature. When day_lookup (GET-parameter 'variable'__day) is part of the
request, the response uses django.utils.dates.MONTH in month's name,
which uses gettext to translate month names, but other requests uses
Python's strftime
that's funny. they answered how to do the tree thing, but the wiki
basically says no recursion... I should look into the % recurse %
keyword tho.
-j
On 2/7/06, Shannon -jj Behrens <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm trying to build ye ol' bulletin board application to try out
> Django.
Please search the previous email archive for discussion on such topic
like "tree view".
In fact, there is a wiki page for an implementation as well.
On Feb 8, 2006, at 11:31 AM, Shannon -jj Behrens wrote:
Hi,
I'm trying to build ye ol' bulletin board application to try out
Django. I'm ha
Hi,
I'm trying to build ye ol' bulletin board application to try out
Django. I'm having a hard time outputting the hierarchy of messages.
I can't figure out how to use recursion in templates. I also need to
be able to treat a template "like a function" passing arguments. How
should I be think
i should have known the subversion better.
thank you and berto a lot for quick replies.
Hi, Dody,
Yes, I did see your reply. However, since I didn't see a public reply
saying "Yes, that's it. Thank you!". I assumed that your reply wasn't
the final solution and the thread was still open. Did Vidar reply to
you saying this was indeed the solution?
This subject line and the mention a
On 2/8/06, Hwan <[EMAIL PROTECTED]> wrote:
hi,which svn revision matches the released django-0.91?where can i find this kind of information?thanksRelease 0.91 was revision 1908 of the trunk. Django follows normal SVN conventions for release tagging, so you can get this information by looking at t
You can download one of the tags:
http://code.djangoproject.com/svn/django/tags/releases/
-berto.
On 2/7/06, Hwan <[EMAIL PROTECTED]> wrote:
>
> hi,
> which svn revision matches the released django-0.91?
> where can i find this kind of information?
> thanks
>
>
hi,
which svn revision matches the released django-0.91?
where can i find this kind of information?
thanks
On 2/8/06, Jason Huggins <[EMAIL PROTECTED]> wrote:
>
> Luke Skibinski Holt wrote:
> > there is no per-record permission system
> > for users yet (or ever...). However this seems an unlikely scenario and
> > more often as not you will only want your users only looking/updating
> > data they have c
Olive:
Thanks a bunch!
Didn't you see my reply? His problem wasn't memory leak at all. It was
just a case of django (on debug mode) filling up list with debugging
info, which could fill up when many sql queries being done in a single
request/response cycle.
Jason Huggins wrote:
I don't know what is wrong in this
Just a quick note from someone with a lot of Zope experience finding
the world of Django very very interesting...
In Zope, there is a *lot* of flexibility in terms of
authentication/authorization. I couldn't say whether it is full ACL or
not, but it certainly seemed it to me.
However, we rarely
Hi Jason.
Your scenario only covers a very basic scenario, where 1 user can do
anything to a particular record.
It kind of falls down when you need to assign rights to actions.
ie..group/user X can add a new invoice, but only 'group/user Y' can
modify an existing invoice.
So while a constrained
Another shot in the dark: Do your html headers specify the right
encoding?
--Tim
-Original Message-
From: django-users@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Roberto Aguilar
Sent: dinsdag 7 februari 2006 18:46
To: django-users@googlegroups.com
Subject: Re: How to use non
This works for me:
(r'^mymodule/update/(?P\d+)/$',
'django.views.generic.create_update.update_object', dict(mymodule_info,
post_save_redirect="/mymodule/%(id)s/")),
But I have another problem: how to redirect to this page after updating
a related object.
for example:
(r'^myrelatedmodule/update/
Hi Sam,
This works for me:
(r'^mymodule/update/(?P\d+)/$',
'django.views.generic.create_update.update_object', dict(mymodule_info,
post_save_redirect="/mymodule/%(id)s/")),
But I have another problem: how to redirect to this page after updating
a related object.
for example:
(r'^myrelatedmodul
Good to know. Then I stand corrected. But I guess this proves the point
that I *still* don't know what the heck is causing my very real and
very "now" memory leak problems in my Plone app :-) (And I should
probably switch my rant to the Plone boards, not here). I like to
think to that I'm relativ
On 2/7/06, Jason Huggins <[EMAIL PROTECTED]> wrote:
Yes, Python has built-in garbage collection, but is way to easy tocreate circular references between objects (parent references child,child references parent)... Once that circular reference is createdbetween two objects, the objects will never be
Luke Skibinski Holt wrote:
> there is no per-record permission system
> for users yet (or ever...). However this seems an unlikely scenario and
> more often as not you will only want your users only looking/updating
> data they have created.
I had an "aha!" moment on this topic last night. My rep
I don't know what is wrong in this particular scenario.. but all I have
to say is
Memory leaks should be taken very seriously and should be hunted down
and exterminated with extreme prejudice.
Yes, Python has built-in garbage collection, but is way to easy to
create circular references betwe
Just a shot in the dark, but is your database set for UTF-8? It may
be that the text isn't being saved as international in the database,
so when you retrieve it, it's just plain ascii.
Here is a list of character sets supported:
http://www.postgresql.org/docs/8.1/interactive/multibyte.html
and
Hello ,
In my model I use fields that can have a string of non-English
characters.
To explain:
I use choices option in my model definition like this:
Kraj = meta.CharField(choices=Krajlist,maxlength=20,blank=True)
where Krajlist consists the non-English characters.
So, I fill in the correct (
On 2/7/06, WSobczuk <[EMAIL PROTECTED]> wrote:
> Let's say I have a model: User (name = CharField()) and model Bulletin
> (body = CharField(), user = ForeignKey(User))
>
> and so I want to fetch a bunch of bulletins and the related user
> information. My case is a lot more complex than this and I
Dreamhost has now fixed this problem
"""
Our apologies for the delays. We did have SVN problems at the time it
was implemented, but our admin team has found the source and rectified
the situation. All Subversion should now be compatible with PHP and
PHP
as CGI domains.
If there is anything mor
Let's say I have a model: User (name = CharField()) and model Bulletin
(body = CharField(), user = ForeignKey(User))
and so I want to fetch a bunch of bulletins and the related user
information. My case is a lot more complex than this and I can't use
select_related (since that seems to be fetchi
On 2006-02-07, at 11:47 CET, [EMAIL PROTECTED] wrote:
Well I'm probably doing something wrong with this:
urlpatterns = patterns('nesh.csstemplate.views',
(r'([\w\.-]+/?)+', 'css'),
)
because I constantly get only a *last* part of URL.
that's how regular expressions work. each group can
Neboja Ðordevic wrote:
> Well I'm probably doing something wrong with this:
>
> urlpatterns = patterns('nesh.csstemplate.views',
> (r'([\w\.-]+/?)+', 'css'),
> )
>
> because I constantly get only a *last* part of URL.
that's how regular expressions work. each group can only match
one stri
On 2006-02-06, at 16:43 CET, Luke Skibinski Holt wrote:
I'm having trouble trying to set the upload_to path for a filefield
that will contain the user's id or username -
"images/%s" % User.username
obviously doesn't work, but it's exactly what I'm trying to do...
can I
set the upload path d
Well I'm probably doing something wrong with this:
urlpatterns = patterns('nesh.csstemplate.views',
(r'([\w\.-]+/?)+', 'css'),
)
because I constantly get only a *last* part of URL.
For example: when /foo/css/layout.css
is requested this urlconf is supposed to call css function with
'foo
30 matches
Mail list logo