Django - Create user profile on user creation
I'm following Django documentation here in order to achieve a simple objective: Create a user profile as soon as a new user is created. I have an 'accounts' app and my accounts.models looks like this: # -*- coding: utf-8 -*- from django.db import models from django.db.models.signals import post_save from django.contrib.auth.models import User from main.models import Store class UserProfile(models.Model): GENRE_CHOICES = ( ('m', 'Masculino'), ('f', 'Feminino'), ) MARITAL_STATUS_CHOICES = ( ('s', 'Solteiro'), ('c', 'Casado'), ('d', 'Divorciado'), ('v', 'Viúvo'), ) user = models.ForeignKey(User,