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
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
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
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:' %}
>>{{
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:
>>>
>
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
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
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.
--
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
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 .
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
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:
> 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]
--~--~-~--~~---
/” — 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
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
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
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
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
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
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
, 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
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
--~--~-~--~~~---~--~
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
--~--~-~--~~~---~--~~
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
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
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
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
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
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.
--
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
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
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
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
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
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
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
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
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,
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
--~--~-~--~~---
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
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
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
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.
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
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
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
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
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
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 &
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
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
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
location()
response = HttpResponse()
response["X-Sendfile"] = path
response["Content-Type"] = "application/pdf"
response["Content-Length"] = os.path.getsize(path)
response["Content-Disposition"] = 'attachment;
filename=
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
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
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
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
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
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
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
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
.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
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
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
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.
--
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.
-
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
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
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
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
'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
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
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
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 "ü"
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
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
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.
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,
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
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
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
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
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
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
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.
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 - 100 of 187 matches
Mail list logo