Re: response.status 404 testing problem

2018-08-05 Thread Mike Dewhirst
Forgot to mention ... dev = Django 1.11.15, Python 3.6 and 2.7 on Windows 10 staging = Django 1.11.15, Python 2.7 on Ubuntu 16.04 (no GUI) Apache 2.4 Sorry Mike On 6/08/2018 1:44 PM, Mike Dewhirst wrote: I have a test which succeeds in development but fails with Apache in staging ... Here

response.status 404 testing problem

2018-08-05 Thread Mike Dewhirst
I have a test which succeeds in development but fails with Apache in staging ... Here is the test ...     def test_course_view_not_found_status_code(self):         # no course exists with pk of 99     response = self.client.get(reverse('course:course_view', kwargs={'pk': 99}))    

Re: Channels/Redis fault tolerance with Twemproxy?

2018-08-05 Thread Tim Nelson
For sure, in order to support haproxy/redis-sentinel asgi_redis would have to handle redis-py's ReadOnlyError and reopen the connection. Way above my pay grade to inject this into 1.X. It seems 2.X might suffer from the same issue as I don't see it handling this condition either. Still baffles

How to use RSA-SHA256 in python using private key

2018-08-05 Thread prakash sharma
Hi all, I am stuck while salesforce jwt-bearer auth. I need help in this code section: String key='x'; Blob privateKey = EncodingUtil.base64Decode(key); String signature = System.encodingUtil.base64Encode( Crypto.sign('RSA-SHA256',

How to use RSA-SHA256 in python using private key

2018-08-05 Thread prakash sharma
Hi all, I am stuck while salesforce jwt-bearer auth. I need help in this code section: String key='x'; Blob privateKey = EncodingUtil.base64Decode(key); String signature = System.encodingUtil.base64Encode( Crypto.sign('RSA-SHA256',

Re: Channels/Redis fault tolerance with Twemproxy?

2018-08-05 Thread Andrew Godwin
Channels 1 and its Redis bindings have different behaviours to 2, so this might be improved there (but I can't guarantee it). Andrew On Sun, Aug 5, 2018 at 11:48 AM Filbert wrote: > Wow, I thought I had this working using haproxy in front of > redis-sentinel. haproxy fails over when

Re: Channels/Redis fault tolerance with Twemproxy?

2018-08-05 Thread Filbert
Wow, I thought I had this working using haproxy in front of redis-sentinel. haproxy fails over when redis-sentinel fails over within 30 seconds. Problem is Daphne (Channels 1.X), reports over and over: Error trying to receive messages: Error running script (call to

Re: Django Book

2018-08-05 Thread Tim Vogt (Tim Vogt)
https://wsvincent.com/about/ > Op 5 aug. 2018, om 17:20 heeft Jun Chen het volgende > geschreven: > > Does anyone know a good django book for the Django 2.0? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from

Re: Learning django

2018-08-05 Thread vineeth sagar
Not to be mean or cheeky, but Django documentation is best book imo. Read the docs, if they are unclear in anyway, Start reading code. That's how I learnt about sessions and also you'll get to learn all kinds of cool stuff when you start reading Django code, Like property,cached property, Lazy

Learning django

2018-08-05 Thread Caleb Bryson
Are there any books that teach django for the most recent version out there? I have not been successful at finding a book with up to date info -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Django Book

2018-08-05 Thread Jun Chen
Does anyone know a good django book for the Django 2.0? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to

Re: Using the admin navbar & bootstrap throughout my project

2018-08-05 Thread Derek
I also use the admin for the bulk of my project; if you create custom pages, you just need to inherit from the standard/default admin template(s) and overwrite/extend the relevant template blocks. I'd really recommend you figure out how to do this yourself rather than just copy & paste someone

Re: value error at dashboard did not return httpresponse

2018-08-05 Thread Kasper Laudrup
Return the result of the call to the render function at the end of your dashboard function instead of just calling render(). Kind regards, Kasper Laudrup On August 5, 2018 4:26:30 PM GMT+02:00, ireoluwa fakeye wrote: > > >-- >You received this message because you are subscribed to the

value error at dashboard did not return httpresponse

2018-08-05 Thread ireoluwa fakeye
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com.

Re: main page have stopped work after creating poll app

2018-08-05 Thread Muhammad Ibrahim
After following the due procedure to creating an app polls and running the server as guided by Django online tutorial , still can't navigate (The current path, polls/, didn't match any of these.) please can you help?. On Monday, May 28, 2018 at 1:47:09 PM UTC+1, Florian Schweikert wrote: > > It

Re: Change the default route of a view

2018-08-05 Thread Muhammad Ibrahim
Am using django 2.1 On Sun, 05 Aug 2018, 11:25 AM Jason wrote: > well, it was said early on you were avoiding good practices and > established convention with this, so I'm not surprised its not being > incorporated into the auto-generated api docs. > > -- > You received this message because you

Re: Change the default route of a view

2018-08-05 Thread Muhammad Ibrahim
please can you elaborate . Am just a beginner On Sun, 05 Aug 2018, 11:25 AM Jason wrote: > well, it was said early on you were avoiding good practices and > established convention with this, so I'm not surprised its not being > incorporated into the auto-generated api docs. > > -- > You

Re: Change the default route of a view

2018-08-05 Thread Jason
well, it was said early on you were avoiding good practices and established convention with this, so I'm not surprised its not being incorporated into the auto-generated api docs. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Downgrade and Upgrade Django migration

2018-08-05 Thread Melvyn Sopacua
On zaterdag 4 augustus 2018 18:03:21 CEST Andréas Kühne wrote: > I don't know how to revert migrations though - I do think it's possible Yes, easy. Name the app and migration you want to downgrade to: python manage.py yourapp 0002 This would unapply 0003_new_model, 0004_change_new_model