Ok, problem solved. The AUTH_PROFILE_MODULE value should not include the 
apps folder

AUTH_PROFILE_MODULE = "apps.chefinfo.Chef"

but directly the name of the app

AUTH_PROFILE_MODULE = "chefinfo.Chef"




Il giorno sabato 23 settembre 2017 13:57:22 UTC+2, Rainell Dilou Gómez ha 
scritto:
>
> Hello everyone,
> I have read the documentation for create a user profile 
> <http://mezzanine.jupo.org/docs/user-accounts.html> and I have made a 
> test followed the documentation example. This is my test:
>
> *project_folder/apps/chefinfo/models.py*
> class Chef(models.Model): 
>     user = models.OneToOneField("auth.User") 
>     cell_phone = models.CharField(max_length=20, verbose_name=_("Cell 
> phone"))
>     about_me = RichTextField(null=True, blank=True, verbose_name=_("About 
> me"))
>
> I have also try
>
> user = models.OneToOneField(User, on_delete=models.CASCADE)
>
> *project_folder/**project_folder/settings.py*
>
> INSTALLED_APPS = (
>     #...
>     "apps.chefinfo",
>     "mezzanine.accounts",
>     #...
> )
>
> ACCOUNTS_PROFILE_MODEL = "apps.chefinfo.Chef"
>
> and nothing has changed, the admin and website forms are rendered as 
> before make changes. Why?
>
> now I'm going to do a test following the django documentation for 
> extending the User model 
> <https://docs.djangoproject.com/en/1.11/topics/auth/customizing/#s-extending-the-existing-user-model>,
>  
> but I presume I'll have problems with the admin.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to