These are chat archives for django/django

Feb 2017
Feb 26 2017 00:12
By the way - is Django good choice for web directory in your opinion?
for building web directory of course
Feb 26 2017 01:54
Hi, guys
I wonder if we absolutely need to put the css and Js file in the static folder
Can we put html, css and Js file in side the one file ?
Feb 26 2017 02:32
Yes it can be done that way..
Kaushal Kumar
Feb 26 2017 12:50
I am overriding get_scope() method of python social auth authentication.
from social.backends.facebook import FacebookOAuth2

class CustomFacebookOAuth2(FacebookOAuth2):
    def get_scope(self):
        scope = super(CustomFacebookOAuth2, self).get_scope()
        scope += [('email')]
        return scope
   # 'social.backends.facebook.FacebookOAuth2',
Its is giving me error
ImportError at /login/facebook/
No module named CustomFacebookOAuth2django.contrib.auth.backends
Please help
Feb 26 2017 15:16
Dude @kaushal087 it's kind of annoying having to read you help posts here and in Django Girls Tutorial..
Kaushal Kumar
Feb 26 2017 15:20
@flyboy1565 Sorry, I was not getting any response so I posted at both the places.
Brett MacDonald
Feb 26 2017 15:26
@kaushal087 you forgot a comma to seperate the backends in
Kaushal Kumar
Feb 26 2017 15:29
@ArtistsTechGuy thank you. This is so embarrassing. Because of one missing comma I was stuck for 4 hours.
Brett MacDonald
Feb 26 2017 15:31
np, I was testing an email form the other day and when I went live with it it stoped working...turns out I forgot I changed the email to what it was supposed to be for live and forgot I wouldn't get it if i sent a test
Kaushal Kumar
Feb 26 2017 15:37
This kind of things happens :laughing: