python-social-auth tutorial or project [closed] - python

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
social-auth (facebook) in django project, but I have a problem. Now I can loging by Facebook but account (email) must exist in User table. But I cannot log in when User not exist in db. Next question is about some good python-social-auth tutorial or maybe some body can show me some code how to do it. Ps I read official doc but I still have a problem

The docs for python-social-auth have a section for Django: http://psa.matiasaguirre.net/docs/configuration/django.html.
By default, you will have separate Facebook users and separate Django users.
Note that your settings.py you should have something like this:
AUTHENTICATION_BACKENDS = (
'social_auth.backends.facebook.FacebookBackend',
'django.contrib.auth.backends.ModelBackend',
)
That means you have different backends creating different users. You would have to do some work to synchronize them.

Related

Multiple signin in django [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 days ago.
Improve this question
I want to multiple role in django. I also create default auther user. But i want add login in second database table.
I try to authenticate(username='john', password='secret') function but it is working only django default author. I want to use second database table then how can i authenticate the second user and login to the site. Please advice currently working django 4.1 version.

How to use membership ( user account) in Django? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I am a beginner in Django and need to learn it for a local bot web application.
Usually, modern MVC and MVM web frameworks such as ASP.net core and meteor have simple possibilities and tricks for membership and the user account (especially meteor). But I didn't find anything about this in Django. Does Django has these possibilities or I should download third-party packages?
Django has of course several methods related to user authentication or ACL and so on.
See this
https://docs.djangoproject.com/en/2.1/topics/auth/default/
One exemple you can retrive user of request:
request.user

django framework, how to deploy the project about blog demo? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
there is console on under picture
The project is django demo from github, I don't know where modify database username and database password. This is sqlite3.
This is github link: https://github.com/MoreYoungGavin/my_blog
Try delete in your settings.py file the lines
TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + [
'django.core.context_processors.request',
]
BOOTSTRAP_ADMIN_SIDEBAR_MENU = True
(as they are only work for django 1.7 and I suppose you have a newer version of Django)
and restart the development server.

I am creating a social networking site using django, should I have create a email app [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I am creating a social networking site using django. I will send lots of emails depending on the user actions. Should I create an email app or just create an email_funcitons.py file in each individual app. Which is best practice?
Apps created so far:
Accounts
NewsFeed
Profile
Notifications
Messaging
Privacy
You should create separate module. There is no reason to have same function implemented in multiple places, it makes your code hard to maintenance.
Each functionality should have own module (in this case app), so modifying email you will have to modify only one file/module, not all email functions in all modules

Session handling in python / django [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I am creating an application that lets users login using Google, Facebook and the website's native login. The site is being built in Python / Django.
What would be the best way to handle login, session management and user authentication?
I do not want to use the in-built Django user management. I am using Django very sparingly(URLs, templates)

Categories