0
votes
0answers
46 views

Django register and login - explained by example

Can someone please explain in details how to make a registration and authentication in as easy words as possible ? I made authentication (login) with django.contrib.auth but what I want to get is a ...
1
vote
2answers
31 views

Access to user in django models

Hi i have problem with django python app. Im creating function in model in django - which gives me true or false in template. Can i get access to logged user in function in model?
0
votes
0answers
21 views

Django not detecting logged in user upon redirect back from external page

I'm sending a user off-site to register on another service, and then as they are redirected back to a specific URL on my site I'm firing the view listed below: #views.py class OAuthView(View): ...
0
votes
1answer
23 views

Unable to log into the Django admin

Im trying to log into the admin GUI but keep getting the error : Please enter a correct username and password. Note that both fields are case-sensitive. Ive created a new user, dropped all the db ...
0
votes
0answers
37 views

Django keeps showing loggin form after being logged in

In a Django project I am using the standard authentication system. The user is redirected to /bewerken/dashboard/, which has two links. One of them is linked to /bewerken/inhoud/. However, when ...
0
votes
1answer
38 views

'WSGIRequest' object has no attribute 'successful_authenticator'

I've made an authentication class just like that : Token Authentication for RESTful API: should the token be periodically changed? restapi/settings.py REST_FRAMEWORK = { ...
0
votes
1answer
28 views

Form-based Kerberos authentication in Django

I have got an Django application that uses the RemoteUserBackend in combination with Apache and mod_auth_kerb to authenticate against Kerberos. However, this has some drawbacks: There is no proper ...
0
votes
0answers
23 views

django login with google app acoounts

Well, I thought this shouldn't be a big problem. However, since I have spent more than one day on this, I think it is the time for asking help. I have a simple django admin project and it works fine ...
0
votes
1answer
39 views

Isn't standard Django login authentication supposed to be case sensitive?

I am working on a Django web interface. According to everything that I have read, standard Django authentication, which we are using, is supposed to be case sensitive so that userid, UserId and ...
0
votes
1answer
41 views

How to let django user authenticate linux user

Here is the problem: I use django pam to let django able to authenticate linux users but it can only be run as root. Is there any solutions to let normal user able to authenticate lunux users?
0
votes
1answer
31 views

django-registration custom backend

I have successfully implemented my auth/login custom backend, and now i am trying to implement my own django-registration custom backend. The django-registration code seems to work fine, if i use the ...
0
votes
1answer
26 views

User registration process in django?

I want user to regist my app in two step basic info (email username password) realinfo (realname, age, gender ) and this is how I did def developRegistrationFirstStep(request): if ...
0
votes
1answer
47 views

How to handle user registration over django_rest_framework based API

How do I handle user registration over and API using django_rest_framework? Specifically, how would I set up a password field in the UserSerializer class NewUserSerializer(serializer.Serializers): ...
0
votes
2answers
45 views

in django, how to allow users to log in using their twitter accounts

I just want to use the social auth to help people login to my website, i do not want to make my own register app, so in my website's database, it only has a table contains 2 cols, there are uid and ...
0
votes
2answers
16 views

Django Client and Extranet Users distinction

I'm building an App with public access, restricted area for clients and another restricted area for managers. I have a Manager model and Client model with foreign key to Users. And Manager is ...
0
votes
1answer
122 views

JQuery ajax call with django session

I have a site that uses custom authentication in Django that authenticates to a web service using a username, password, and domain. I need to store this information for every subsequent view's ...
2
votes
1answer
105 views

Django : request.user not set after redirect

Specifically, after authentication and redirect, request.user is an anonymous user. login (view function) def login(request): if request.method == 'POST': form = LoginForm(request.POST) ...
1
vote
1answer
104 views

Django Social Auth (Google OAuth 2) - AuthCancelled even when “Allow access” is clicked

I am successfully using Django Social Auth to login users with Facebook. I'm trying to implement Google OAuth2. I have taken all the steps I know of to integrate it, but I'm getting an AuthCanceled at ...
0
votes
0answers
52 views

Browser redirects properly on @login_required but not when using urllib2

I am testing a Django app with a unnitest.TestCase test. if test['auth']: full_url = '{}/{}'.format(host, test['url']) request = urllib2.Request(full_url) cj = cookielib.CookieJar() ...
0
votes
1answer
77 views

ImproperlyConfigured at /login/ Error importing authentication backend backends.EmailAuthBackend: “No module named backends”

i'm working on Django project, i searched for a while how login and t found that the easiest way is to "django.contrib.auth". so i added my login view to urls.py : ...
0
votes
1answer
337 views

'url' requires a non-empty first argument. The syntax changed in Django 1.5, see the docs

i'm trying to login using django.contrib.auth but seems this does not work in Django 1.5 this is urls.py r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}), and this ...
0
votes
1answer
53 views

Authenticated file upload from Android App to Django Backend

I would like to allow users to upload files from an Android App to a Django website. To prevent random uploads I want to limit this feature to authenticated users. For example by assigning the user a ...
0
votes
0answers
34 views

use 2 user models in django for authentication

How do I use 2 different user models as my authentication backend in Django. I have inherited the User model from django.contrib.auth and used the UserProfile with OneToOne relationship with User. ...
0
votes
2answers
86 views

Django - Loading a page that has external authentication changes the session_key

I'm trying to migrate a project from Django 1.4 to Django 1.5.1 ... The web service has to be accessible both as authenticated and anonymous user. And we use external authentication with an Apache ...
0
votes
0answers
75 views

django tastypie custom authentication

so i have this implementation of django tastypie and jquery ajax post basic authentication and it works: tastypie: class RatingResource(ModelResource): city = fields.ForeignKey(CityResource, ...
0
votes
0answers
36 views

Device authentication in django

I have a Device model in django and I would like to be able to authenticate it. class Device(models.Model): device_key = models.CharField(max_length=100) udid = ...
2
votes
1answer
43 views

Django - Two auth system completely separated in the same project

I have a project using django. And now the need for having to completely separated auth system(with different tables, authentication back-end, users, user-info etc) comes in scene. Is there any way ...
2
votes
1answer
35 views

If I switch to custom user model, will I have to migrate all my existing User accounts?

Since django 1.5 it is possible to have a custom user model. I already have a lot of users in my database.. if I upgrade to my own (custom) user model, will I have to manually migrate all the already ...
0
votes
2answers
102 views

Django-social-auth dont log in

I have a Django-social-auth on my test project. I need to make authentication throw "vkontakte" (its a popular social network in russia). Docs. So, in /etc/hosts I have: #127.0.0.1 localhost ...
0
votes
0answers
38 views

Authentication decorators in Django

In Django, are authentication decorators considered business logic? I have a few extra parameters in my models, which require additional authentication decorators.

1 2 3 4 5 15
15 30 50 per page