Re: ManyRelatedManager with explicit intermediary model

2011-09-21 Thread Roald de Vries
On Sep 20, 2011, at 5:50 PM, Tom Evans wrote: On Tue, Sep 20, 2011 at 4:12 PM, Roald de Vries wrote: I don't see how this is different from the create method on the intermediary model. Cheers, Roald PS: I found an open ticket on this,

Re: Re-opening 5617?

2011-09-21 Thread Tom Christie
Heya, Thanks for the feedback. I quite like the explicit 'STATIC_URL' only approach, although I think a lot of users would still run into a problem there, because 'request' isn't also added in explicitly to the Context... For context, my particular use case is a simple '500.html'

Re: Django test documentation example not respecting xUnit convention

2011-09-21 Thread Łukasz Rekucki
On 21 September 2011 02:01, Russell Keith-Magee wrote: > > For what it's worth, I also think the "convention" is bass ackwards... > you write "if variable == value", but you write "assertEqual(value, > variable)"? Where's the consistency in that? > My guess is that the

Re: Django test documentation example not respecting xUnit convention

2011-09-21 Thread Łukasz Rekucki
On 21 September 2011 07:13, schinckel wrote: > It isn't 'enforced' by Python at a language level, but as dmoisset stated, > it makes the failure messages actually make sense: >     "Expected 'foo', got 'bar'". > (paraphrasing failure message: don't have any failing tests to

Re: Re-opening 5617?

2011-09-21 Thread Jannis Leidel
On 21.09.2011, at 11:24, Jannis Leidel wrote: > On 21.09.2011, at 11:14, Tom Christie wrote: > >> Heya, >> >> Thanks for the feedback. I quite like the explicit 'STATIC_URL' only >> approach, although I think a lot of users would still run into a problem >> there, because 'request' isn't

Re: ManyRelatedManager with explicit intermediary model

2011-09-21 Thread Russell Keith-Magee
2011/9/20 Łukasz Rekucki : > On 20 September 2011 15:52, Roald de Vries wrote: >> Hi all, >> >> Is there a fundamental reason that I'm missing (other than "nobody's taken >> the trouble of writing it") that I can't do the following? If there isn't >> I'll

How to solve MultiValueDictKeyError

2011-09-21 Thread Kayode Odeyemi
Hello friends, I don't know why Django is so unstable. Before restarting my computer everything works fine. Django could parse a simple POST request without complaining KeyError. I'm simply making a POST request like this: curl -v -H "Content-Type: application/json" -A 'Mozilla' -X POST --data

Re: How to solve MultiValueDictKeyError

2011-09-21 Thread Florian Apolloner
Hi, please post in django-users, this mailinglist is about the development of django itself, not about enduser problems. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit

Re: RFC: "universal" view decorators

2011-09-21 Thread Roald de Vries
Hi all, Haven't seen a comment on this topic for a few days, so was wondering if a core dev can make a design decision yet. I have some spare time in the remainder of this week, so if the (universal) decorator- approach is chosen, I should be able to finish it shortly (the mixin- approach

Re: Re-opening 5617?

2011-09-21 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/21/2011 03:24 AM, Jannis Leidel wrote: > On 21.09.2011, at 11:14, Tom Christie wrote: >> I'd imagine that plenty of other setups would have a similar setup, >> so you could argue that returning this: >> >> Context({'STATIC_URL':

Re: Re-opening 5617?

2011-09-21 Thread Tom Christie
Hey Jannis, > https://docs.djangoproject.com/en/dev/releases/1.4/#static-template-tag That's rather nice. > Adding the request is a non-starter, IMO; the "request" context > processor isn't even in the default list of TEMPLATE_CONTEXT_PROCESSORS, > so this would mean adding something to the 500

DJango doesn't work with Oracle 11g on Windows 8

2011-09-21 Thread Alec Taylor
Good morning, Unfortunately DJango doesn't work with Oracle 11g Express on Windows 8 x64. DJango error: http://pastebin.com/8tAzsjYh (summary: "No module named cx_Oracle") pip install cx_Oracle output: http://pastebin.com/6Y61PqSM easy_install cx_Oracle output: http://pastebin.com/rCsY63RS

Re: DJango doesn't work with Oracle 11g on Windows 8

2011-09-21 Thread Simon Charette
http://lmgtfy.com/?q=vcvarsall.bat -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-developers/-/v6EuZV0jI6AJ. To post to this group, send email to

Re: RFC: "universal" view decorators

2011-09-21 Thread Donald Stufft
I just got my wisdom teeth removed so i'm not exactly feeling the greatest, however I committed what I've done so far and pushed to my copy of django on github. The goal is to provide a Mixin for class based views, a decorator for class based views, a decorator for methods, and a decorator for

Re: DJango doesn't work with Oracle 11g on Windows 8

2011-09-21 Thread Karen Tracey
Please ask questions about using Django (which includes getting things configured to run properly on various different platforms/DBs) on the django-users mailing list. The topic of this list is the development of Django itself. Karen -- You received this message because you are subscribed to

Re: Django test documentation example not respecting xUnit convention

2011-09-21 Thread Daniel Moisset
On Wed, Sep 21, 2011 at 2:13 AM, schinckel wrote: > It isn't 'enforced' by Python at a language level, but as dmoisset stated, > it makes the failure messages actually make sense: > > "Expected 'foo', got 'bar'". > > Actually that's not the message in Python's unittest

Re: DJango doesn't work with Oracle 11g on Windows 8

2011-09-21 Thread Jacob Kaplan-Moss
On Wed, Sep 21, 2011 at 10:41 AM, Simon Charette wrote: > http://lmgtfy.com/?q=vcvarsall.bat C'mon, that's totally rude and really not OK. If you have the time to answer someone's question then please do so, but if you don't simply telling people to "google for it" or

Re: DJango doesn't work with Oracle 11g on Windows 8

2011-09-21 Thread Anthony Tuininga
Hi, You should just download and install cx_Oracle directly instead of trying to build it. In theory it should work on Windows 8 without needing a rebuild. :-) http://cx-oracle.sourceforge.net/ If you do actually need to rebuild because of Windows 8 you can use the platform development kit

Re: Django test documentation example not respecting xUnit convention

2011-09-21 Thread schinckel
Yeah, I saw that later when I wrote some tests. I'm sure I saw the style of failure message with some django app tests I wrote ages ago: maybe my brain has failed that test and it was a ruby unit test. Matt. -- You received this message because you are subscribed to the Google Groups

Re: DJango doesn't work with Oracle 11g on Windows 8

2011-09-21 Thread Alec Taylor
Thanks Anthony, unfortunately although I made progress, I am still unable to proceed due to an error. manage.py syncdb error: http://pastebin.com/syqxF4m6 On Thu, Sep 22, 2011 at 3:47 AM, Anthony Tuininga wrote: > Hi, > > You should just download and install

Re: DJango doesn't work with Oracle 11g on Windows 8

2011-09-21 Thread Anthony Tuininga
You're welcome. This can be due to a number of things -- one of them might be the difference between 64-bit and 32-bit -- not sure which one you are using, of course. Everything has to match -- Python, Oracle and cx_Oracle. You might be able to find something out using "Process Explorer" which

Re: DJango doesn't work with Oracle 11g on Windows 8

2011-09-21 Thread Alec Taylor
Hi Anthony, I'm running 64-bit Python 2.7, with 64-bit cx_Oracle. On Thu, Sep 22, 2011 at 2:16 PM, Anthony Tuininga wrote: > You're welcome. This can be due to a number of things -- one of them > might be the difference between 64-bit and 32-bit -- not sure which >