Hi Ken,

Thanks for your answer. I did indeed forget to migrate the database to use 
my user model. 
Once I ran:

python manage.py makemigrations myapp 
python manage.py migrate

Everything was working fine! Maybe a single line in the docs like (don't 
forget to migrate your database + with your link) could help novice users 
like myself) 

Op vrijdag 8 september 2017 17:06:38 UTC+2 schreef Kenneth Bolton:
>
> Hi Bernie,
>
> That error likely means that you need to create a schema migration for 
> your `Users` model and apply that migration to your database. 
> https://docs.djangoproject.com/en/1.10/topics/migrations/.
>
> - ken
>
> On Fri, Sep 8, 2017 at 10:06 AM, Bernie Caessens <[email protected] 
> <javascript:>> wrote:
>
>> Hi,
>>
>> I am setting up my first mezzanine based site and ran into some troubles 
>> using the mezzanine.accounts app. 
>> I have followed the steps about profiles and accounts in the mezzanine 
>> manual as found here <http://mezzanine.jupo.org/docs/user-accounts.html>
>> . 
>>
>> I have models.py in my app directory, and it looks like this:
>> so mydemoapp/models.py looks like this:
>>
>> from django.db import models
>>
>> class Users(models.Model):
>>     user = models.OneToOneField("auth.User")
>>     company = models.CharField(max_length=100)
>>
>> So, basically, for now, extending the auth.User with a field called 
>> company. 
>>
>> I added the lines to settings.py, i.e. include the mezzanine.accounts app 
>> in INSTALLED_APPS, and added 
>> ACCOUNTS_PROFILE_MODEL = mydemoapp.Users
>>
>> When I run the server, I do get the login/signup/ and so on. However, 
>> when I register a new user, and hit the save button, or when I am logged in 
>> and click the account update (username link) I get an error that says:
>>
>> django.db.utils.OperationalError: no such table: mydemoapp_users
>>
>>
>> As far as I understand this issue, the table related to my Users model is 
>> not found. Probably this is a very simple ommission, but I am a bit lost on 
>> how this happens. 
>>
>> I note that although we create a class Users, and set the profile_model 
>> to mydemoapp.Users, it is looking for a table mydemoapp_users! Could this 
>> be the problem?
>>
>>
>> Any thoughts,
>>
>> Thanks. 
>>
>> -- 
>> 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 [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to