Fully understanding of TemplateView - Can you take a look at my video course, please?

2017-09-15 Thread Rafał Szymański
Hi guys! Can you take a look at my video course about TemplateView, please? Django GCBV - Fully undestanding of TemplateView. It's free and it's on Udemy. Here the link https://www.udemy.com/django-gcbv-fully-understanding-of-templateview/ Thanks a lot for time, advice, comment, help, any

Re: How to install mod_wsgi after upgrading to python3.5 from python2.7

2017-09-15 Thread James Schneider
On Sep 15, 2017 2:04 AM, "BIJAL MANIAR" wrote: Hi, I had a production application running with Python2.7 and Django1.11 through Apache and mod_wsgi. Now I have upgraded to Python3.5 and created virtual env. pip install mod_wsgi is giving below error. (p3_venv) bash-4.1# pip

Re: Hi, I want to know what's the core layer of django.

2017-09-15 Thread Antonis Christofides
Hi, You can write Django without the models, and you can write Django without templates and without forms. If there's one thing that all people who write Django applications use, it's probably the request/response cycle, which includes the url dispatcher and, I believe, the views. There's a

Re: generic views empty args problem

2017-09-15 Thread Rafał Szymański
Does it help? return super(SampleUpdateView, self).get(request, project_name, *args, **kwargs) W dniu czwartek, 14 września 2017 13:25:06 UTC+2 użytkownik Adrian Jasiński napisał: > > > > When I have in my urlpatterns args and kwargs in any of generic views then > the view is loosing args

Compute multiple model properties in one call

2017-09-15 Thread Navi Sr
Hi! I have some Django Model which has two properties: class M(Model): @property def p1(self): return process_result(SomeModel.objects.filter(val_gt=1)) @property def p2(self): return process_result(SomeModel.objects.filter(val_lt=1)) And both used in Django

Re: How to install mod_wsgi after upgrading to python3.5 from python2.7

2017-09-15 Thread Antonis Christofides
> RuntimeError: The 'apxs' command appears not to be installed or is not > executable. Please check the list of prerequisites in the documentation for > this package and install any missing Apache httpd server packages. Hi, I've never faced this, but the error message is quite clear: in order for

Re: django custom authentication

2017-09-15 Thread James Schneider
, However, when i try to access my homepage,i expect it to render my custom login page(login.html). But it always say TemplateDoesNotExist. I also tried putting the template folder inside an app. But the login page doesnt get rendered still. I need help urgently.Thanks The error page

Re: How to install mod_wsgi after upgrading to python3.5 from python2.7

2017-09-15 Thread BIJAL MANIAR
Hi James, Thanks for reply. I read below commands to install for mod_wsgi from here - (https://modwsgi.readthedocs.io/en/develop/user-guides/quick-installation-guide.html) tar xvfz mod_wsgi-X.Y.tar.gz cd mod_wsgi-4.5.14 ./configure --with-apxs=/usr/sbin/apxs

Re: View to download a tar archive

2017-09-15 Thread pieceofkayk2718
Ahh, thank you James. :). Especially for that last link! > -- 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

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

2017-09-15 Thread Andrew Godwin
You'll have to write your own authentication code that runs in `connect` and puts a user into the channel session - there's nothing built in that will really help you past that I'm afraid. Andrew On Thu, Sep 14, 2017 at 6:35 PM, Robin Lery wrote: > I am using a frontend

Re: single queryset from multiple tables

2017-09-15 Thread DG
After reading this thread and answers on SO (e.g. How to combine 2 or more querysets in a Django view? ) I'm still not sure if this code is fully lazy with Django 1.11+ or if it is going to

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

2017-09-15 Thread oon arfiandwi
Hi, have you try to use jwt_decode_handler(token)? I found this on utils.py I check the source code of verify token, there's reference to decode handler inside the code. -- sincerely, Oon Arfiandwi On Fri, Sep 15, 2017 at 10:11 AM, Robin Lery wrote: > I am using

Hi, I want to know what's the core layer of django.

2017-09-15 Thread callsamleung
In Django Developer group, easy to see core layer of django, but what's the layer is the core layer? model, view, template? thanks -- 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

Re: django custom authentication

2017-09-15 Thread callsamleung
template_name maybe - template_name: The name of a template to display for the view used to log the user in. Defaults to registration/login.html. see: https://docs.djangoproject.com/en/1.8/topics/auth/default/#all-authentication-views news:

How to install mod_wsgi after upgrading to python3.5 from python2.7

2017-09-15 Thread BIJAL MANIAR
Hi, I had a production application running with Python2.7 and Django1.11 through Apache and mod_wsgi. Now I have upgraded to Python3.5 and created virtual env. pip install mod_wsgi is giving below error. (p3_venv) bash-4.1# pip install mod_wsgi Collecting mod_wsgi Downloading

Re: Hi, I want to know what's the core layer of django.

2017-09-15 Thread Jani Tiainen
Hi. There isn't exactly core if the Django. All things you mentioned forms the core. Plus there is much more. Forms, url routing. And bunch of helpers like auth and GIS. 15.9.2017 10.54 ap. kirjoitti: > In Django Developer group, easy to see core layer of django,

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

2017-09-15 Thread Robin Lery
Thanks. But that doesn't verify the token. On Fri, Sep 15, 2017 at 6:44 PM, oon arfiandwi wrote: > > Hi, > > have you try to use jwt_decode_handler(token)? > I found this on utils.py > > I check the source code of verify token, > there's reference to decode handler

Talos - alternative authentication, authorization and accounting application

2017-09-15 Thread Roman Akopov
Hi, Not to offend anyone, but django.contrib.auth is quite limited. At some point I have decided that something should be done with that. Here is my attempt to change something - Talos application. I tried to implement as much as I considered reasonable, but not everything I ever saw in real