Django 1.6.5 user registration error no such table: auth_user












0















my settings.py:



INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'crispy_forms',
'Mysite'
)
AUTH_USER_MODEL = 'Mysite.PortalUserAbstract'


my Mysite.models.py:



class PortalUserAbstract(AbstractUser):
is_client = models.BooleanField(default=False)
is_manager = models.BooleanField(default=False)


error message :



OperationalError at /accounts/signup/client/
no such table: auth_user
Request Method: POST
Request URL: http://127.0.0.1:8000/accounts/signup/client/
Django Version: 1.6.5
Exception Type: OperationalError
Exception Value:

no such table: auth_user



when i do manage.py syncdb it creates table "Mysite_portaluserabstract" but the auth module still looks for auth_user table.



what am I missing?










share|improve this question


















  • 1





    The full traceback should show you the code that is trying to read from the auth_user table. Note that Django 1.6.5 is years out of date and missing security fixes.

    – Alasdair
    Nov 20 '18 at 15:39











  • Don't use Django 1.6.x, there isn't even documentation online anymore. Use at least 1.11 (the latest long-term version).

    – dirkgroten
    Nov 20 '18 at 16:22
















0















my settings.py:



INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'crispy_forms',
'Mysite'
)
AUTH_USER_MODEL = 'Mysite.PortalUserAbstract'


my Mysite.models.py:



class PortalUserAbstract(AbstractUser):
is_client = models.BooleanField(default=False)
is_manager = models.BooleanField(default=False)


error message :



OperationalError at /accounts/signup/client/
no such table: auth_user
Request Method: POST
Request URL: http://127.0.0.1:8000/accounts/signup/client/
Django Version: 1.6.5
Exception Type: OperationalError
Exception Value:

no such table: auth_user



when i do manage.py syncdb it creates table "Mysite_portaluserabstract" but the auth module still looks for auth_user table.



what am I missing?










share|improve this question


















  • 1





    The full traceback should show you the code that is trying to read from the auth_user table. Note that Django 1.6.5 is years out of date and missing security fixes.

    – Alasdair
    Nov 20 '18 at 15:39











  • Don't use Django 1.6.x, there isn't even documentation online anymore. Use at least 1.11 (the latest long-term version).

    – dirkgroten
    Nov 20 '18 at 16:22














0












0








0








my settings.py:



INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'crispy_forms',
'Mysite'
)
AUTH_USER_MODEL = 'Mysite.PortalUserAbstract'


my Mysite.models.py:



class PortalUserAbstract(AbstractUser):
is_client = models.BooleanField(default=False)
is_manager = models.BooleanField(default=False)


error message :



OperationalError at /accounts/signup/client/
no such table: auth_user
Request Method: POST
Request URL: http://127.0.0.1:8000/accounts/signup/client/
Django Version: 1.6.5
Exception Type: OperationalError
Exception Value:

no such table: auth_user



when i do manage.py syncdb it creates table "Mysite_portaluserabstract" but the auth module still looks for auth_user table.



what am I missing?










share|improve this question














my settings.py:



INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'crispy_forms',
'Mysite'
)
AUTH_USER_MODEL = 'Mysite.PortalUserAbstract'


my Mysite.models.py:



class PortalUserAbstract(AbstractUser):
is_client = models.BooleanField(default=False)
is_manager = models.BooleanField(default=False)


error message :



OperationalError at /accounts/signup/client/
no such table: auth_user
Request Method: POST
Request URL: http://127.0.0.1:8000/accounts/signup/client/
Django Version: 1.6.5
Exception Type: OperationalError
Exception Value:

no such table: auth_user



when i do manage.py syncdb it creates table "Mysite_portaluserabstract" but the auth module still looks for auth_user table.



what am I missing?







django authentication






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 20 '18 at 15:35









Omega DoeOmega Doe

155114




155114








  • 1





    The full traceback should show you the code that is trying to read from the auth_user table. Note that Django 1.6.5 is years out of date and missing security fixes.

    – Alasdair
    Nov 20 '18 at 15:39











  • Don't use Django 1.6.x, there isn't even documentation online anymore. Use at least 1.11 (the latest long-term version).

    – dirkgroten
    Nov 20 '18 at 16:22














  • 1





    The full traceback should show you the code that is trying to read from the auth_user table. Note that Django 1.6.5 is years out of date and missing security fixes.

    – Alasdair
    Nov 20 '18 at 15:39











  • Don't use Django 1.6.x, there isn't even documentation online anymore. Use at least 1.11 (the latest long-term version).

    – dirkgroten
    Nov 20 '18 at 16:22








1




1





The full traceback should show you the code that is trying to read from the auth_user table. Note that Django 1.6.5 is years out of date and missing security fixes.

– Alasdair
Nov 20 '18 at 15:39





The full traceback should show you the code that is trying to read from the auth_user table. Note that Django 1.6.5 is years out of date and missing security fixes.

– Alasdair
Nov 20 '18 at 15:39













Don't use Django 1.6.x, there isn't even documentation online anymore. Use at least 1.11 (the latest long-term version).

– dirkgroten
Nov 20 '18 at 16:22





Don't use Django 1.6.x, there isn't even documentation online anymore. Use at least 1.11 (the latest long-term version).

– dirkgroten
Nov 20 '18 at 16:22












1 Answer
1






active

oldest

votes


















0














You're using Django 1.6, which is very out-of-date - it pre-dates migrations, which will create the missing tables for you. You should upgrade to at least Django 1.11 as was mentioned in comments; if this is a new project, I would recommend using Django 2.1 as of this writing, as the new URL syntax is much friendlier for getting started. It seems to be a new project as you are just starting with a custom user model.



In short:




  • Create a new virtualenv

  • pip install django

  • django-admin startproject myproject && cd myproject

  • python manage.py startapp mysite

  • edit mysite/models.py and add the following:


class PortalUserAbstract(AbstractUser):
is_client = models.BooleanField(default=False)
is_manager = models.BooleanField(default=False)




  • edit myproject/settings.py and add:


AUTH_USER_MODEL = 'Mysite.PortalUserAbstract'




  • run python manage.py makemigrations

  • run python manage.py migrate


Then you should be off and running with the latest version of Django. It would probably do you well to go through the tutorial: https://docs.djangoproject.com/en/2.1/intro/tutorial01/



Good luck!






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53396436%2fdjango-1-6-5-user-registration-error-no-such-table-auth-user%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    You're using Django 1.6, which is very out-of-date - it pre-dates migrations, which will create the missing tables for you. You should upgrade to at least Django 1.11 as was mentioned in comments; if this is a new project, I would recommend using Django 2.1 as of this writing, as the new URL syntax is much friendlier for getting started. It seems to be a new project as you are just starting with a custom user model.



    In short:




    • Create a new virtualenv

    • pip install django

    • django-admin startproject myproject && cd myproject

    • python manage.py startapp mysite

    • edit mysite/models.py and add the following:


    class PortalUserAbstract(AbstractUser):
    is_client = models.BooleanField(default=False)
    is_manager = models.BooleanField(default=False)




    • edit myproject/settings.py and add:


    AUTH_USER_MODEL = 'Mysite.PortalUserAbstract'




    • run python manage.py makemigrations

    • run python manage.py migrate


    Then you should be off and running with the latest version of Django. It would probably do you well to go through the tutorial: https://docs.djangoproject.com/en/2.1/intro/tutorial01/



    Good luck!






    share|improve this answer




























      0














      You're using Django 1.6, which is very out-of-date - it pre-dates migrations, which will create the missing tables for you. You should upgrade to at least Django 1.11 as was mentioned in comments; if this is a new project, I would recommend using Django 2.1 as of this writing, as the new URL syntax is much friendlier for getting started. It seems to be a new project as you are just starting with a custom user model.



      In short:




      • Create a new virtualenv

      • pip install django

      • django-admin startproject myproject && cd myproject

      • python manage.py startapp mysite

      • edit mysite/models.py and add the following:


      class PortalUserAbstract(AbstractUser):
      is_client = models.BooleanField(default=False)
      is_manager = models.BooleanField(default=False)




      • edit myproject/settings.py and add:


      AUTH_USER_MODEL = 'Mysite.PortalUserAbstract'




      • run python manage.py makemigrations

      • run python manage.py migrate


      Then you should be off and running with the latest version of Django. It would probably do you well to go through the tutorial: https://docs.djangoproject.com/en/2.1/intro/tutorial01/



      Good luck!






      share|improve this answer


























        0












        0








        0







        You're using Django 1.6, which is very out-of-date - it pre-dates migrations, which will create the missing tables for you. You should upgrade to at least Django 1.11 as was mentioned in comments; if this is a new project, I would recommend using Django 2.1 as of this writing, as the new URL syntax is much friendlier for getting started. It seems to be a new project as you are just starting with a custom user model.



        In short:




        • Create a new virtualenv

        • pip install django

        • django-admin startproject myproject && cd myproject

        • python manage.py startapp mysite

        • edit mysite/models.py and add the following:


        class PortalUserAbstract(AbstractUser):
        is_client = models.BooleanField(default=False)
        is_manager = models.BooleanField(default=False)




        • edit myproject/settings.py and add:


        AUTH_USER_MODEL = 'Mysite.PortalUserAbstract'




        • run python manage.py makemigrations

        • run python manage.py migrate


        Then you should be off and running with the latest version of Django. It would probably do you well to go through the tutorial: https://docs.djangoproject.com/en/2.1/intro/tutorial01/



        Good luck!






        share|improve this answer













        You're using Django 1.6, which is very out-of-date - it pre-dates migrations, which will create the missing tables for you. You should upgrade to at least Django 1.11 as was mentioned in comments; if this is a new project, I would recommend using Django 2.1 as of this writing, as the new URL syntax is much friendlier for getting started. It seems to be a new project as you are just starting with a custom user model.



        In short:




        • Create a new virtualenv

        • pip install django

        • django-admin startproject myproject && cd myproject

        • python manage.py startapp mysite

        • edit mysite/models.py and add the following:


        class PortalUserAbstract(AbstractUser):
        is_client = models.BooleanField(default=False)
        is_manager = models.BooleanField(default=False)




        • edit myproject/settings.py and add:


        AUTH_USER_MODEL = 'Mysite.PortalUserAbstract'




        • run python manage.py makemigrations

        • run python manage.py migrate


        Then you should be off and running with the latest version of Django. It would probably do you well to go through the tutorial: https://docs.djangoproject.com/en/2.1/intro/tutorial01/



        Good luck!







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 20 '18 at 20:39









        FlipperPAFlipperPA

        7,16122143




        7,16122143
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53396436%2fdjango-1-6-5-user-registration-error-no-such-table-auth-user%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?