django-users Questions

2

Solved

I have made a custom profile model which looks like this: from django.db import models from django.contrib.auth.models import User class UserProfile(models.Model): user = models.ForeignKey('User...
Sovereignty asked 17/10, 2013 at 17:44

2

I'm trying to delete users from the admin and get this error: DatabaseError at /admin/users/neverlateuser/ relation "django_comments" does not exist LINE 1: ..._admin", "users_neverlateuser"."da...
Calesta asked 18/7, 2013 at 7:30

1

I have to track the history of all of changes, which occure to my models. I also keep track of user making this changes. For now I was dealing with in views.py but I would like to utilitize this fu...
Literatim asked 14/8, 2014 at 9:55

2

Solved

Looking tough django auth models code, I came across this bit of code: class User(AbstractUser): class Meta(AbstractUser.Meta): swappable = 'AUTH_USER_MODEL' It's obvious that it has something t...
Stockjobber asked 25/2, 2014 at 20:29

8

I'm working on a Django 1.5 project and I have a custom user model (let's call it CustomUser). Another app (SomeApp) needs to reference this custom user model. For the purposes of ForeignKey and su...
Vapor asked 4/7, 2013 at 11:57

1

Solved

I'm using a custom user model in Django. The model works fine and is able to create a user. But when I try to access the admin page it throws me the error FieldError at /admin/ Unknown field(s) (a...
Phonology asked 10/6, 2014 at 9:27

2

I am new to Django and I have been trying this for weeks, but could not find a way to solve this problem. I want to store additional information like user mobile number, bank name, bank account. A...
Knighterrant asked 14/2, 2014 at 12:18

7

Solved

I extend the django user model as described in the dev doc. I wan't to keep most of the original User model features so I extend the AbstractUser class. I've defined in settings.py: AUTH_USER_MODE...
Codicil asked 26/11, 2012 at 15:42

1

Solved

I'm modeling a quite complex system in Django. I will post here only the relevant part of it and I will show simplified use cases diagrams to better express my ideas. I basically have 2 type of us...

2

Solved

Env: Django 1.5.1 + Django CMS 2.4.1 + Zinnia latest + my custom apps + custom Django CMS plugin Basically I can extend the default Django (1.5.X) User model like Django Ribbit Tutorial on NetTut...

1

Solved

When I use from django.conf import settings in my DjangoRestFramework views, class UserList(ListCreateAPIView): queryset = settings.AUTH_USER_MODEL.objects.all() serializer_class = UserSerial...

1

Solved

I have problem when I want to use simple CreateView for creating new user. Everything is ok, I can create user, but when I want logging with new created user, I cant do it. I got this type of my p...
Psilomelane asked 12/3, 2013 at 14:25

1

Solved

I need to set the is_staff value to True when creating a user in Admin interface. How can I do that? Thanks
Elastin asked 12/2, 2013 at 22:4

4

Solved

If you want to store extra information about a user (django.contrib.auth.models.User) in Django you can use the nifty AUTH_PROFILE_MODULE to plug in a "profile" model. Each user then gets a profile...
Salomon asked 3/8, 2010 at 20:46

1

Solved

I have been searching for best practice, but I did not found it. I was even unable to find solution I need used by anyone else. I need to generate username of the user based on his other data (fir...
Nansen asked 25/7, 2012 at 11:39

2

Solved

I have encountered with some suspicious behavior of create() method of User object manager. Looks like password field isn't required for creating User object if you use this method. In result you g...
Cocks asked 18/7, 2012 at 15:2

3

Solved

Initially, I started my UserProfile like this: from django.db import models from django.contrib.auth.models import User class UserProfile(models.Model): user = models.OneToOneField(User) verifi...
Plead asked 10/3, 2012 at 20:58

2

I am writing an application which stores "Jobs". They are defined as having a ForeignKey linked to a "User". I don't understand how to pass the ForeignKey into the model when creating it. My Model ...
Cirro asked 17/2, 2012 at 16:34

3

Solved

I'm writing a django project. And want to know after user deletes his own account, is there a way django build-in to auto delete all object related to this user(e.g. some generic foreign_key)? Or I...
Yee asked 25/1, 2012 at 22:51

1

I am new in Django and even after trying thoroughly to find an answer for this question, I couldn't find any. =/ I am using UserCretionForm to create my users and I wanted to know a couple of thin...
Cispadane asked 24/12, 2011 at 2:25

1

Solved

I have a Django application which allows different kinds of users: firms, administrators, external people etc. Of course all of this is easy to manage with the default authentication system and gro...
Aedile asked 12/7, 2011 at 10:36

3

Solved

I want that each user on my website will have an image in his profile. I don't need any thumbnails or something like that, just a picture for each user. The simpler the better. The problem is I don...
Zapata asked 18/6, 2011 at 13:44

1

Solved

My models: class UserProfile(models.Model): TYPES_CHOICES = ( (0, _(u'teacher')), (1, _(u'student')), ) user = models.ForeignKey(User, unique=True) type = models.SmallIntegerField(default=0,...
Grout asked 24/5, 2011 at 21:51

1

Solved

I have recently being trying to create a project which has several levels of user involved. (Just an example of an abbreviated and rough schema) ME (Super User) Client(s) Customer(s) Survey Co...

1

Solved

Possible Duplicate: get request data in Django form There's part of my Guest Model: class Guest(models.Model): event = models.ForeignKey(Event, related_name='guests') user = models...
Dinsdale asked 25/2, 2011 at 16:45

© 2022 - 2024 — McMap. All rights reserved.