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
Related
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 6 days ago.
Improve this question
What I mean is let's say I have a totally functional and regular Django Web App. But then the client tells me they want a mobile client of the same app. So that means I should make an API, to get the data on the client.
Django Rest Framework is the way to make api with Django, but I don't know if I can add the api layer after making the regular Django App and leverage or take advantage of the existing logic I have previously created so the both web app and api can coexist.
Or if I should have started making the app with django rest framework from the begining.(Wich isnt convenient for me now).
What do you think? What are my options?
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
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm a learning Python/Django programmer and want to try to create an easy web-messenger. Is it real to write web-messenger for django? And does any modules for that exist or any open-source protocols support python?
Or you can install xmpp server (like eJabberd) and write a server side interface over it. It will be easier, faster and optimal solution.
Gmail and Facebook both uses xmpp protocol. People using your application will also be able to send chat request to their friends in gmail.
You wont even have to write a website interface, there are javascript library (like Converse.js) available which you can directly plug into your website and you will be good to go.
Not sure what you mean by 'web-messenger'. Do you mean a chat system? Django have plenty of chat apps that you can integrate into your projects.
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.
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)