[Mixins] - Order of the Mixins - Is it a bug?

2018-06-15 Thread Vinnicyus Gracindo
Hi. I beat my brains out trying to find out why my cbv was not working with
LoginRequiredMixin.
I found the order of the mixins in the inheritance:
It works: class UserListView(LoginRequiredMixin, ListView)
Doesn't work:  class UserListView(ListView, LoginRequiredMixin)

Is that how it was designed? or is it a bug?

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 it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMjWKi9RFwDWSnNU%3Dv16-bXx%2BjEvMOfnVnWnhrnFnFzrWsMsyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Decoupling Postgres database credentials in django for deployment.

2018-04-22 Thread Vinnicyus Gracindo
Github: python-decouple

Em dom, 22 de abr de 2018 14:05, Bill Torcaso 
escreveu:

>
> I waited a while to answer this, and my answer comes in three distinct
> parts.
>
> #-
>
> Question:  what is the danger is using environment variables to hold
> secret info?
>
> Answer:  The Django runtime will dump secret info from environment
> variables into an HTTP response, in some circumstances.  Once secret info
> is in an HTTP response on the open internet, the secrecy is compromised.
> As far as I know, the Django runtime will never dump the contents of the
> settings object into an HTTP response.
>
> The defense of environment variables, as described in this thread are all
> vulnerable to human error.  Except possibly the one by Mike DeWhirst.
>
> The human error is as simple as this:
>
> On Elastic Beanstalk,
>
> git checkout DEBUG_branch
>
> eb use  PRODUCTION_environment
>
> eb deploy
>
>
> #-
>
> Question: what did I mean by "github security" as protection for secret
> information stored in a plaintext file in the github repository?
>
> Answer:  There are two ways to access a file in a private github
> repository.  One way is through hacking my password, and the other is by
> breaching the protection that github applies to keep a private repository
> private.
>
> My github password is random and has more than 120 bits of entropy.  In
> practical terms, is is safe from brute-force hacking.  As for the methods
> that github uses to keep a repository private, I have no specific
> information.  But I take it on faith that smart people have thought about
> it; and that's what I mean by "trusting github security".
>
> #-
>
> Lastly,  I'm not trying to persuade anybody of the one true way to do
> things.  Every method of storing secrets has strengths and weaknesses.  I
> have an opinion: using environment variables is more dangerous than
> generally believed, and, in my opinion, keeping secrets in plaintext in the
> repository is less dangerous than generally believed.
>
> --
> 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.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5e34a2a5-e226-4688-9d53-d5151bb741be%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMjWKi8NkgbdLFdRb3gAFhCC%2BhC6bw56H0E9xq62Eq504nJWag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: why donot work django

2017-10-25 Thread Vinnicyus Gracindo
see: https://docs.djangoproject.com/en/1.11/#index-first-steps

2017-10-25 12:58 GMT-03:00 Alaa Najmi :

> how to working django
>
> --
> 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.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/30a232e8-116d-4c3c-bcdb-4f66690dc1d4%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMjWKi8vvrg9UU1B5PRiyJSqHAXTbvbmZK%2B2upBokP7RRD2%3Dgg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.