You can define your Custom User Model in your models.py (
https://docs.djangoproject.com/en/1.6/topics/auth/customizing/#substituting-a-custom-user-model
)
and then in your settings specify with AUTH_USER_MODEL = 'myapp.MyUser'
On Tuesday, March 26, 2013 9:51:21 PM UTC+1, frocco wrote:
>
> Hello
>
Hi Frocco
> I need a couple of extra fields in my user model
You can connect a model in your app to the user model and add your
fields there.
Example myapp/models.py:
...
from django.contrib.auth.models import User
...
class Profile(models.Model):
user = models.OneToOneField(User, related_n
Inherid from User Model
2013/3/26 frocco
> Hello
>
> I need a couple of extra fields in my user model
>
> Do I have to specify all fields in django user?
>
> Is django user still used?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To
Hello
I need a couple of extra fields in my user model
Do I have to specify all fields in django user?
Is django user still used?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from i
4 matches
Mail list logo