How to mock a model backend

2015-03-26 Thread Sven Mäurer
In my model backend I usually call an external service which returns me an user that is saved and returned. When I don't have credentials I want to mock the backend for some test cases. In the setup of each test case I am calling the login method where CRED contains the real credentials or mock

Re: Django accepting other applications ports

2015-03-25 Thread Sven Mäurer
Ohh thanks. You have saved at least 4 hours of my sleep, 10 coffees and a very bad mood! Am Mittwoch, 25. März 2015 21:57:19 UTC+1 schrieb Stephen Butler: > > On Wed, Mar 25, 2015 at 2:27 PM, Sven Mäurer > wrote: > > backend.conf > > > > Listen 8787 > > &g

Re: Django accepting other applications ports

2015-03-25 Thread Sven Mäurer
Mittwoch, 25. März 2015 20:22:05 UTC+1 schrieb Gergely Polonkai: > > Hello, > > Please share the rest of this Apache config; from what you copied, it's > impossible to tell. > > Best, > Gergely > On 25 Mar 2015 17:12, "Sven Mäurer" > > wrote: >

Django accepting other applications ports

2015-03-25 Thread Sven Mäurer
I have two applications on my apache. Why is my Django application running accepting the connection also of port ? Listen 8787 The other application: Listen -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from th

Dictionary in admin interface

2015-01-23 Thread Sven Mäurer
I want to manage a dictionary inline over the admin interface. These are my models. What I got working is of course a separated management of request and dictionary. But I want to add key value pairs in the request admin interface with a TabularInline. Do I have to skip the dictionary in some