Re: MySQL deadlocking issues

2008-12-28 Thread Torsten Bronger
ion per request). Apparently, a M2M relationship may lead to this exception in this scenario. I can't tell whether this needs to be improved in Django, or whether I have to catch and retry it on the view level. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus

Re: Backward relation to a subclass in multi-table inheritance

2009-01-05 Thread Torsten Bronger
that it's very easy to use, and it works great for me. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

How to access the label of a model instance

2008-07-15 Thread Torsten Bronger
Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: How to access the label of a model instance

2008-07-15 Thread Torsten Bronger
Hallöchen! Arien writes: > On Tue, Jul 15, 2008 at 10:53 AM, Torsten Bronger > <[EMAIL PROTECTED]> wrote: > >> In a display template (not a form, just display), I write the >> following: >> >>{% trans 'Temperature:' %} >>{{

Re: How to access the label of a model instance

2008-07-15 Thread Torsten Bronger
Hallöchen! Arien writes: > On Tue, Jul 15, 2008 at 12:00 PM, Torsten Bronger > <[EMAIL PROTECTED]> wrote: >> >> Arien writes: >> >>> On Tue, Jul 15, 2008 at 10:53 AM, Torsten Bronger >>> <[EMAIL PROTECTED]> wrote: >>> >

Re: How to access the label of a model instance

2008-07-16 Thread Torsten Bronger
basic idea (and only that): > > [...] I had to specialise it slightly to my situation because I don't have all models in the template context, but it worked eventually. Thanks again! Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED

i18n: How to the language on per-user basis

2008-07-17 Thread Torsten Bronger
and add a line to it which stors the language in the current session. Am I right? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are

Changing the value of the primary key

2008-07-18 Thread Torsten Bronger
Hallöchen! When I change the value of a primary key field (assuming that it is still unique), are depending tables also updated? I found on the net that "ON UPDATE CASCADE" has to be set for the child tables, but I didn't find anything Django-related. Tschö, Torsten. --

Re: Changing the value of the primary key

2008-07-18 Thread Torsten Bronger
ly will use a second table with many-to-one relationship. I wanted to keep the (current) sample name the primary key because I think that this accelerates lookup, but if all else fails, I must use a surrogate key. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus

Re: Changing the value of the primary key

2008-07-18 Thread Torsten Bronger
ction layer for the RDBMS -- albeit thin -- means that you're better off with unique=True fields in all cases. The common advantages of primary keys are mimicked by Django very well. I only hope that InnoDB's lookup works for unique=True fields as fast as for primary_key=True fields .

i18n, how to denote context

2008-07-18 Thread Torsten Bronger
hat? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

Re: i18n, how to denote context

2008-07-18 Thread Torsten Bronger
Hallöchen! Malcolm Tredinnick writes: > On Fri, 2008-07-18 at 22:33 +0200, Torsten Bronger wrote: > >> In one of my models, I have >> >> from django.utils.translation import ugettext_lazy as _ >> >> ... >> class Meta:

Re: i18n, how to denote context

2008-07-18 Thread Torsten Bronger
> ugettext_lazy ... then I could use it for the distinction? I found another method, namely adding English translations, too. Also not perfect but okay. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] --~--~-~--~~---

Trim URLs

2008-07-19 Thread Torsten Bronger
/” — they get passed the full URL. Unfortunately, this breaks my urls.py. What the best method to get it working with both the test server and Apache? I tried to add (?:mysite)? to the URLs, but then the {% url %} directive doesn't work anymore. Tschö, Torsten. -- Torsten Bronger, aquisgrana, e

Setting different attributes in a SplitDateTimeWidget

2008-07-21 Thread Torsten Bronger
class Meta: model = models.MyModel Thus, I inject different attributes into the child widgets of a SplitDateTimeWidget in oder to activate the Javascript. Is there a more straightforwand way for getting different attributes into a "multi-widget"? Tschö, Torsten. -- Torsten Brong

Admin interface: group window too narrow and too full

2008-07-25 Thread Torsten Bronger
ssions. As far as I can see, their addition is hard-wired in one of the "auth" modules, but maybe one can safely remove them? However, I don't know *when* it's the best time to remove them (shortly before syncdb for example, but where is this?). Tschö, Torsten. -- Torsten Bronger

Custom meta data to models

2008-08-18 Thread Torsten Bronger
Hallöchen! In , custom metadata to models were discussed. Has there been any progress in this, or has been another approach to this proposed? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED

Re: Custom meta data to models

2008-08-19 Thread Torsten Bronger
Hallöchen! Steve Holden writes: > Torsten Bronger wrote: > >> In >> , >> custom metadata to models were discussed. Has there been any >> progress in this, or has been another approach to this proposed? > > FYI, when I ask Thunderbird to follow that link it

Re: Custom meta data to models

2008-08-19 Thread Torsten Bronger
Hallöchen! Malcolm Tredinnick writes: > On Tue, 2008-08-19 at 13:20 +0200, Torsten Bronger wrote: > >> [...] >> >> I just wanted to avoid "news:"; because it actually is a mailing >> list. But then you have to visit >> http://groups.google.com

Re: Custom meta data to models

2008-08-19 Thread Torsten Bronger
ase keep calm and fair. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

How to get RadioSelect items one by one in a template

2008-10-18 Thread Torsten Bronger
, I'd like to have the choices of a RadioSelect widget. However, I don't know how to access one item of a RadioSelect in the template. Or do I need a custom renderer? The problem I see here is that the widget code is not one continuous block. Tschö, Torsten. -- Torsten Bronger, aquisgra

Re: Pickling a dictionary into a PostgreSQL database?

2009-01-15 Thread Torsten Bronger
tr(database_text))" (note the str()). However, I don't remember the exception I was confronted with. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de --~--~-~--~~~---~--~

Re: Pickling a dictionary into a PostgreSQL database?

2009-01-21 Thread Torsten Bronger
esented by the string :rtype: object """ return pickle.loads(base64.b64decode(string)) Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de --~--~-~--~~~---~--~~

Re: feeds and repetition

2009-01-28 Thread Torsten Bronger
If the ID of an entry is already known to the feedreader, it isn't displayed. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de --~--~-~--~~~---~--~~ You received this message be

Re: Automated Translation Management -- Surely someone has already done this?

2009-02-16 Thread Torsten Bronger
t; compilemessages). We use http://translate.sourceforge.net/wiki/pootle/index for this. It's not really easy to set up, and it doesn't integrate with Django, but it works. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabbe

Re: select_related() and reverse foreign keys -OR- how to I get a blog post and its comments?

2009-02-23 Thread Torsten Bronger
pid-things-about-djano.html where a Rails fan claims that Rails can do it. I don't know much about SQL so I really would like to know whether this could be realised. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aach

Re: Django critter helps us code at the speed of light.

2009-03-16 Thread Torsten Bronger
rts-foo.appspot.com/ . But the glory is not authentic, is it? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: Django critter helps us code at the speed of light.

2009-03-16 Thread Torsten Bronger
Hallöchen! mrts writes: > On Mar 16, 2:55 pm, Torsten Bronger > wrote: > >> mrts writes: >> >>> On Mar 15, 5:56 pm, mrts wrote: >> >>>> I don't, therefore I'm all for the critter and my (styled) take >>>> is here:http://m

Re: Value proposition of Rails

2009-03-19 Thread Torsten Bronger
fic to be smaller than what one single processor can handle. Is it because the network and the database are the limiting factors? But even then, the part of your server farm running the interpreters could be reduced. On the other hand, PHP is *highly* popular. So why is this? Tschö, Torsten. --

Re: Value proposition of Rails

2009-03-19 Thread Torsten Bronger
Hallöchen! James Bennett writes: > On Thu, Mar 19, 2009 at 2:17 AM, Torsten Bronger > wrote: > >> I've always wondered why anybody uses something non-Java for Web >> applications. Given that Java is faster than PHP, Python etc., >> this also means that you n

Re: Value proposition of Rails

2009-03-19 Thread Torsten Bronger
Hallöchen! James Bennett writes: > On Thu, Mar 19, 2009 at 2:35 AM, Torsten Bronger > wrote: > >> I think is *is* a nightmare to maintain. At least, Java and PHP >> play in the same league of maintainability, whereas assembly is >> *far* away from that. > > O

Re: Full-text search: what to use

2009-07-27 Thread Torsten Bronger
ers are able to upload the papers as PDFs, and I'd like to add full-text search. So far, I planned to user Solr Cell for it, but can one also do that with Sphinx? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@j

Re: Missing Roles (group of groups)

2009-07-30 Thread Torsten Bronger
Hallöchen! Thomas Guettler writes: > [...] > > Are there any other django coders who miss this? Yes. Although groups are not too simple for my purposes, roles would make it trivial. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: tor

Applications as components

2009-08-02 Thread Torsten Bronger
dling anymore (because another app does already) is okay, but for example substituting all get_profile calls is actually unnecessary. What do you think? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aach

Re: Scientific Data Frontend with Django

2009-08-03 Thread Torsten Bronger
an adaption to a specific institution would need ca. 10.000 LOC, but an "apparatus library" of re-usable components could help with that significantly. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de

Re: Scientific Data Frontend with Django

2009-08-04 Thread Torsten Bronger
Hallöchen! derek writes: > On Aug 3, 1:31 pm, Torsten Bronger > wrote: > >> [...] >> >> My scientific institute is about to create a database for the >> samples (thin silicon layers) produced here.  We have already >> 15.000 lines of Django code, which i

Re: Django documentation site is SLOW

2009-08-08 Thread Torsten Bronger
cts remain on the canvas because flaws in FF's rendering engine are triggered by Django's CSS. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de or http://bronger-jmp.appsp

Re: Django documentation site is SLOW

2009-08-08 Thread Torsten Bronger
Hallöchen! Torsten Bronger writes: > [...] > > While loading the pages is sufficiently fast for me, scrolling has > always been slightly annoying for me, with various FFs on various > computers. [...] > > Funny enough, scrolling with the scroll bar is rather smooth, >

Re: Project Organization

2009-08-10 Thread Torsten Bronger
be called views.py, or should the > filename indicate the functionality of the view? I call them after the respective model. Since Django supports the explicit way, you are rather free in your naming conventions. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus

Re: translation issue

2009-08-12 Thread Torsten Bronger
ss.') % {'email': email}) Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de or http://bronger-jmp.appspot.com --~--~-~--~~~---~--~~ You

Re: translation issue

2009-08-12 Thread Torsten Bronger
Hallöchen! alecs writes: > Thanks :)) Sorry, a silly question :) Not at all. The sources of Gajim used to be full of such mistakes, and it was difficult to get the problem across. ;-) Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.b

Re: Need for an internationalization/translation system not request-based

2009-08-12 Thread Torsten Bronger
nnotate/head%3A/src/bobcatlib/i18n.py>. You can use this module. This only dependency of "common" can be removed easily. However, I'm very interested in a simpler approach. :-) Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: tors

Re: is Django a good choice for a LAN app?

2009-08-12 Thread Torsten Bronger
Hallöchen! snfctech writes: > One more question: Any advantage to just using a Python GUI > toolkit instead? Imagine you have a bug and you must update all clients ... Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabbe

Re: Psyco

2009-08-13 Thread Torsten Bronger
psyco was a slight drawback. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de or http://bronger-jmp.appspot.com --~--~-~--~~~---~--~~ You received t

Re: How good is Django's MySQL driver & its unicode support?

2009-08-14 Thread Torsten Bronger
reliably. However, I needed Unicode regular expressions, which didn't work with MySQL (a known issue). Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de or htt

Re: Editors of choice

2009-09-07 Thread Torsten Bronger
t;print" and log files. I definitely code as quickly as before. Of course, you have to get used to it and maybe some programming experience is necessary. But on the other hand, there are more tools you can work with. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus

File upload: how to validate file type

2009-03-28 Thread Torsten Bronger
Is this a good idea? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

Re: File upload: how to validate file type

2009-03-28 Thread Torsten Bronger
wnload with .chunks() afterwards still works correctly. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: File upload: how to validate file type

2009-03-29 Thread Torsten Bronger
back into the stream (or, in other words, do a seek(0)). If the file was sent into a file in /tmp/, this may work, but my question is whether this approach is compatible with all upload handlers. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: tor

Re: File upload: how to validate file type

2009-03-29 Thread Torsten Bronger
Hallöchen! Torsten Bronger writes: > I'd like to ensure that people only upload PDF files, so the file > must start with "%PDF". If the file starts with something else, > the form must not validate. > > How do I do that? I though about a clean_... method which

Re: ChoiceField with choices will NOT select initial value

2009-09-17 Thread Torsten Bronger
i = i + 1 > tt.append((i,c.telephone_type)) See Python's built-in "enumerate". Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de or http://bron

Re: ChoiceField with choices will NOT select initial value

2009-09-17 Thread Torsten Bronger
do = tt.display_order > phoneData.append({'telephoneType': do}) > > phone_formset = PhoneFormSet(initial=phoneData) > logging.debug(str(phone_formset)) > return phone_formset You must not pass a list to the "initial" keyword argument. It

Re: Multi table inheritance and reverse lookup

2009-09-22 Thread Torsten Bronger
ual_instance() and you get the object of the true type (e.g. subproduct1). Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de or http://bronger-jmp.appspot.com --~--~-~--~~---

Re: Is Django thread safe?

2009-09-28 Thread Torsten Bronger
Hallöchen! Chris Withers writes: > Pythoni wrote: > >> Is Django thread safe?If so, from which version? Thanks for >> reply > > The answer is most likely "no, but it doesn't matter". > > Why are you asking? Can it be safely used with Apache's

About conditional view processing: ETags

2009-10-04 Thread Torsten Bronger
s in oder to trigger useful browser behaviour in this case? Or should it be enough to set the ETag function in @conditional(...)? At the moment, I wonder why one wants to use ETags at all ... Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.b

Re: How do I create project independent apps.

2009-10-06 Thread Torsten Bronger
least be easily overridable in the global urls.py. Use relative imports within the application's modules. They are available since Python 2.5. This way, I avoided any tampering with sys.path. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber I

Re: How do I create project independent apps.

2009-10-06 Thread Torsten Bronger
Hallöchen! Torsten Bronger writes: > [...] > > I did some research on this two weeks ago and my impression was > that there are no guidelines at all to create portable apps. On > the contrary, the template path in the official Django tutorial is ... not a good example.

ANN: Django-RefDB -- reference manager

2009-11-07 Thread Torsten Bronger
ok at http://www-users.rwth-aachen.de/torsten.bronger/django-refdb.html for more information. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de or http://bronger-jmp.a

Re: matplotlib usage problem

2009-11-09 Thread Torsten Bronger
could not create GdkCursor object". This > is most probably because of the apache user is not able to access > the X server. Indeed at my distro it doesn't have shell account. > > I don't want to define X access to apache user. So what do you > suggest? Use the pure Agg

Re: Why doesn't my isinstance() work?

2010-04-21 Thread Torsten Bronger
dict__: hierarchy[i][0].direct_subclasses = set() if parent: parent.direct_subclasses.add(hierarchy[i][0]) if i + 1 < len(hierarchy) and isinstance(hierarchy[i+1], list): inject_direct_subclasses(hierarchy[i][0], hierarchy[i+1]) i += 2

Re: Why doesn't my isinstance() work?

2010-04-21 Thread Torsten Bronger
lways* call RootClass.do_something(), which is almost never what you want. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de or http://bronger-jmp.appspot.com -- You received this message

Re: Why doesn't my isinstance() work?

2010-04-21 Thread Torsten Bronger
is somewhat different, by the way: I'd like to apply a specially-tailored template to the instance whose name is derived from the instance's model name. This doesn't work in vanilla Django. Mostly, though, you are only interested in the base class attributes, so Django's

Re: Why doesn't my isinstance() work?

2010-04-21 Thread Torsten Bronger
ild tables where it can find the primary key there too, and if so, you get the actual instance. I think Django should store the fully qualified class name of each row in the parent table. For example, the "Person" table would have a column with entries like "myapp.Author" or &

Re: Why doesn't my isinstance() work?

2010-04-21 Thread Torsten Bronger
Hallöchen! Tom Evans writes: > On Wed, Apr 21, 2010 at 5:38 PM, Torsten Bronger > wrote: > >> I think Django should store the fully qualified class name of >> each row in the parent table.  For example, the "Person" table >> would have a colum

Re: Django ORM and multidimensional data

2010-05-07 Thread Torsten Bronger
rver has access to the raw data through shared directories (aka Samba). This way, Django still can generate plots of the raw data when this is suitable. This reduces redundancy, and it is efficient. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Ja

Delete cache item when model changes

2010-05-14 Thread Torsten Bronger
I delete all cache keys that have become invalid by this? I could store all keys in a CharField in the Person model and use signals. Is there a better approach? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de

Re: Uploaded File Security

2010-05-19 Thread Torsten Bronger
location() response = HttpResponse() response["X-Sendfile"] = path response["Content-Type"] = "application/pdf" response["Content-Length"] = os.path.getsize(path) response["Content-Disposition"] = 'attachment; filename=

Re: Uploaded File Security

2010-05-20 Thread Torsten Bronger
ly aesthetical because the URL is a lot easier to generate. More flexibility (e.g. generation on-the-fly if not yet existent). Less danger that it's stored in a (shared) browser, e.g. a lab computer. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabb

Re: Seeking Django vs. Joomla comparison

2010-06-15 Thread Torsten Bronger
er" or "that wiki-in-5-minutes screencast is more impressive". The worst thing are benchmarks. Never look at them. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de or http

Re: Seeking Django vs. Joomla comparison

2010-06-15 Thread Torsten Bronger
Hallöchen! shacker writes: > On Jun 15, 11:43 am, Torsten Bronger > wrote: > >> First you need a functional specification for your project, >> i.e. "must have"'s and "nice to have"'s.  Size and agility of the >> community as well as do

Re: Accessing updated M2M fields in overriden save() in admin

2010-06-18 Thread Torsten Bronger
complete as > part of the *form* save... > > How can I access the new values of this field in the override > save() ? Call the inherited save() method in the first line of your save() method. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabb

Re: Database Design Question

2010-06-19 Thread Torsten Bronger
this still includes restarting the server. On the other hand, we've defined a "general purpose" process with a spreadsheet-like 2D array, and the user can set the column names arbitrarily. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: to

Re: PostgreSQL backend - Ident authentication failed?

2010-06-20 Thread Torsten Bronger
e.com/admin though, I get an error: > > OperationalError at /admin/ > FATAL: Ident authentication failed for user "victorhooi" Does the webserver also run as victorhooi? Maybe it runs as www-data for example. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus

Re: PostgreSQL backend - Ident authentication failed?

2010-06-20 Thread Torsten Bronger
t "password" in pg_hba.conf. This way, you are not bound to user accounts of the underlying operating system. But possibly we switch to "ident" for local connections (i.e. command line) and "password" for TCP/IP connections. The reason is that pa

Re: How To Create POST data without an actual POST?

2010-06-29 Thread Torsten Bronger
we do it here: A cronjob scans a shared directory for new data regulary, and when it finds some, it sends an HTTP POST to the web server, which runs on the same machine. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabb

messages framework: disable caching?

2010-07-04 Thread Torsten Bronger
.used: add_never_cache_headers(response) to "process_response" of MessageMiddleware and it works nicely for me. Doesn't it make sense to do that always, or at least, by default? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@j

Re: break/continue for templates

2010-07-05 Thread Torsten Bronger
t;break" and "continue" a lot, but I've never thought about it in templates. You can easily prepare the list in the Python land. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de

Re: break/continue for templates

2010-07-05 Thread Torsten Bronger
Hallöchen! George Sakkis writes: > On Jul 5, 2:25 pm, Torsten Bronger > wrote: > >> [...] >> >> People will want to do *everything* in the template.  The lowest >> rated snippet on djangosnippets currently is an {% exec %} >> tag.  :-) > > But then a

Dangerous "If-Modified-Since"

2010-07-21 Thread Torsten Bronger
ince causes my headaches. The server responds -- correctly -- with 304, and the browser takes the other user's page from the cache. The big question is: Why does the browser send the If-Modified-Since in (*****). And the even bigger question is: How can be prevent it? Tschö, Torsten. --

Conditional view processing: *one* function for timestamp and ETag?

2010-07-21 Thread Torsten Bronger
ot;request" object. Not beautiful. Wouldn't it make sense to have an etag_last_modified_func parameter for @conditional? Before I create a ticket, I'd like to see whether others have run into the same problem, or whether there is a solution that I've missed. Tschö, Torsten. -

Re: Dangerous "If-Modified-Since"

2010-07-22 Thread Torsten Bronger
Hallöchen! Torsten Bronger writes: > We've programmed a Django app with mandatory login. Under > somewhat obscure circumstances, the browser (Firefox and Chrome) > sends spurious If-Modified-Since header fields and may take the > page of another user from

Stability of auto IDs

2010-07-26 Thread Torsten Bronger
models by having the auto ID in their filename. If loading a previously dumped fixture, doing a schema migration (with south), etc would change those IDs, we would lose this connection for good. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID

Re: Stability of auto IDs

2010-07-27 Thread Torsten Bronger
Hallöchen! bruno desthuilliers writes: > On 27 juil, 07:19, Torsten Bronger > wrote: > >> Currently, our Django app relies on the stability of various auto >> ID fields which are implicitly generated by Django/database >> backend. > > [...] From a practical P

Re: Stability of auto IDs

2010-07-27 Thread Torsten Bronger
Hallöchen! Steve Holden writes: > On 7/27/2010 12:38 PM, Torsten Bronger wrote: >> Hallöchen! >> >> bruno desthuilliers writes: >> >>> On 27 juil, 07:19, Torsten Bronger >>> wrote: >>> >>>> Currently, our Django app relies on

Manual schema migration

2010-08-02 Thread Torsten Bronger
't be an online resource. If this is discussed in one of the published Django books, this would be great to know, too. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de or http

Re: return json format

2010-08-20 Thread Torsten Bronger
Hallöchen! Imad Elharoussi writes: > I got readystate = 4 but status = 500 Is Django's setting DEBUG=True? If so, what does the error message page say? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-a

Re: Django for internationalized sites - are models.User internationalized?

2010-10-01 Thread Torsten Bronger
lisation, i.e. decimal point, formatting of dates etc. Django has support for it but I haven't used it so far. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de or http://bronger-jmp.a

Re: Django for internationalized sites - are models.User internationalized?

2010-10-02 Thread Torsten Bronger
Hallöchen! Andy writes: > On Oct 2, 1:45 am, Torsten Bronger > wrote: > > Thanks for responding. > >>> Are "first_name" & "last_name" limited to alphanumeric >>> characters or can they contain non-English characters like "ü"

Re: Django for internationalized sites - are models.User internationalized?

2010-10-02 Thread Torsten Bronger
s. Let us first have internationalised domain names gaining wide acception, *then* we can think of internationlised email addresses. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de

Using Django's auth for Trac too

2010-11-08 Thread Torsten Bronger
jango auth module that just needed to be fleshed out. Maybe Django keeps a file up-to-date with all logged-in users, which Apache uses for Trac authentication? Thank you! Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aach

Re: Using Django's auth for Trac too

2010-11-09 Thread Torsten Bronger
chö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de or http://bronger-jmp.appspot.com -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: restrict downloading files based on user-permission

2010-11-22 Thread Torsten Bronger
right. Or does Django encode unicode strings in HTTP header fields somehow? I haven't sniffed the HTTP communication so far. Is there a standard at all for how non-ASCII in the header field "Content-Disposition" is supposed to be encoded? Tschö, Torsten. -- Torsten Bronger,

Re: Choices vs. ForeignKeys

2010-11-30 Thread Torsten Bronger
formation to the choices. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de or http://bronger-jmp.appspot.com -- You received this message because you are subscribed to the Goog

Testing an app: adding an optional test model

2010-12-01 Thread Torsten Bronger
models.py. Can I do this conditionally? For example: if settings.TESTING: class TestModel(models.Model): ... would be great. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de

Tricky problem: database tables are not created

2010-04-05 Thread Torsten Bronger
orts models from "samples". I think this is the problem. If I comment out all calls to admin.site.register in the models of "samples", it works! WTF? Has anybody an idea what's going on or how I can debug this further? Tschö, Torsten. -- Torsten Bronger, aqui

Re: Tricky problem: database tables are not created

2010-04-05 Thread Torsten Bronger
Hallöchen! Torsten Bronger writes: > [...] > > But it gets even more strange: The models module of "chantal_ipv" > imports models from "samples". I think this is the problem. If I > comment out all calls to admin.site.register in the models of > &qu

Re: Tricky problem: database tables are not created

2010-04-05 Thread Torsten Bronger
PLATE_DEBUG = False in settings.py is an acceptable workaround for me. Should I file a Django bug report? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.rwth-aachen.de or http://bronger-jmp.apps

Re: Tricky problem: database tables are not created

2010-04-05 Thread Torsten Bronger
ncoming request is resolved to a > view function. It sounds like following this advice would also > have the side-effect in your case of avoiding this circular import > problem. Thank you, this solved the problem! Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus

Re: Giving up PHP. ...Can't decide between Django & Rails

2010-04-10 Thread Torsten Bronger
often when a module import had failed. Moreover, manage.py often suppresses the traceback and prints its own error message. This can make debugging harder. But these are fringe cases. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: torsten.bron...@jabber.

Polymorphic model: many-to-many is not properly resolved

2008-07-01 Thread Torsten Bronger
morphic many-to-many relationsship is not fully resolved. Am I doing something wrong or is it a limitation of Django? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this mes

  1   2   >