Validate and get the user using the jwt token inside a view

2017-09-14 Thread Robin Lery
I am using django-rest-framework for the REST API and django-rest-framework-jwt for JSON web token authentication. After a successful login, the user is provided with a token. I have found how to verify

Re: View to download a tar archive

2017-09-14 Thread James Schneider
On Sep 14, 2017 3:48 PM, wrote: Hey guys, I'm trying to make a view so that my users can download a compressed tar archive. I've seen a ton of examples about downloading files yet cannot seem to find anything regarding tar. Anyone want to drop me an awesome example?

How to authenticate a user in websocket connection in django channels when using token authentication

2017-09-14 Thread Robin Lery
I am using a frontend framework (Vuejs ) and django-rest-framework for the REST API in my project. Also, for JSON web token authentication I am using django-rest-framework-jwt . After a

View to download a tar archive

2017-09-14 Thread pieceofkayk2718
Hey guys, I'm trying to make a view so that my users can download a compressed tar archive. I've seen a ton of examples about downloading files yet cannot seem to find anything regarding tar. Anyone want to drop me an awesome example? for a simple file I have def download_file(request,

Re: 1.11: Value error on related user name during save of user model

2017-09-14 Thread Axel Rau
> Am 21.08.2017 um 23:53 schrieb James Schneider : > > If this was working under 1.9 (I'd be surprised if it was), then I would file > this as a backward-incompatibility bug with the bug tracker. https://code.djangoproject.com/ticket/28594 Axel ---

django and w2ui together

2017-09-14 Thread Jan Krňávek
Hello all, i plan to use javascript ui library W2UI in my new project. Can anybody recommend best practice for collaboration between django + w2ui? Thanks in advance. Hanz URL library: http://w2ui.com/web/home -- You received this message because you are subscribed to the Google Groups

W2UI and Django together

2017-09-14 Thread Jan Krňávek
Hello all, I plan to use W2UI in my new project. Can anybody recommend best practice for collaboration between W2UI and Django? Thank you for advice. Hanz Javascript ui W2UI: http://w2ui.com/web/get-started -- You received this message because you are subscribed to the Google Groups "Django

Re: More bizarre URL behaviour after deploying

2017-09-14 Thread James Schneider
The technical issue is that a URL like this: http://domain.tld/script/path is split into these two variables by Lighttpd: SCRIPT_NAME: /script PATH_INFO: /path and Django wants this: SCRIPT_NAME: PATH_INFO: /script/path Your example is a bit misleading/lacking. Both