django admin not recognized after enabling django-social-auth backends
<p>I have used django-social-auth in my project to sign in using facebook but then I couldn't login to django admin page even after logout from facebook.</p>

<p>I thought I forgot my password and tried to change it from shell got: </p>

<pre><code>&gt;&gt;&gt; from django.contrib.auth.models import User
&gt;&gt;&gt; User.objects.filter(is_superuser=True)
&lt;QuerySet []&gt;
</code></pre>

<p>Here's my setting.py file:</p>

<pre><code># Application definition

INSTALLED_APPS = [
    'django.contrib.admin',
    'social.apps.django_app.default',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'portfolio',
    ]

AUTHENTICATION_BACKENDS = (
    # For Facebook Authentication
    'social.backends.facebook.FacebookOAuth2',
    # Default Django Auth Backends
    'django.contrib.auth.backends.ModelBackend',
    )


TEMPLATES = [
    {
    'BACKEND': 'django.template.backends.django.DjangoTemplates',
    'DIRS': [],
    'APP_DIRS': True,
    'OPTIONS': {
        'context_processors': [
            'django.template.context_processors.debug',
            'django.template.context_processors.request',

             # Setting of Template Context Processors for Social Auth
            'social.apps.django_app.context_processors.backends',
            'social.apps.django_app.context_processors.login_redirect', 
            'django.contrib.auth.context_processors.auth',
            'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]
</code></pre>

<p>models.py:</p>

<pre><code>from django.db import models

class Personal(models.Model):
    name = models.CharField(max_length=100)
    address = models.CharField(max_length=100)
    email = models.EmailField()
    phone = models.CharField(max_length=100)
    status = models.CharField(max_length=100)
    cover = models.CharField(max_length=100)
</code></pre>

<p>And I have a form.py file:</p>

<pre><code>from django import forms
from django.forms import ModelForm
from . import models as m

class PersoForm(ModelForm):
    class Meta:
        model = m.Personal
        fields = ['name', 'status', 'address', 'email', 'phone', 'cover']
</code></pre>

<p>I know I can create a new superuser but I want to understand why this is happening and how can I use both the django-admin and django-social-auth?</p>

<p>I appreciate some clarification here, I am new to django framework. </p>

<p>Did you run <code>python manage.py createsuperuser</code> ? It looks like you have no super user at all. How did you login into <code>admin</code> ?</p>

python django django-admin