title: OperationalError: table "django_session" already exists
body: <p>I have applied all solutions I could find, but still I got an operational error and also when I run project it gives error like: </p>
  
  <blockquote>
    <p>You have 1 unapplied migration(s).....</p>
  </blockquote>
  
  <p>I had applied all migrations.</p>
  
  <p>I tried this solution:</p>
  
  <ol>
  <li>Delete all files under migrations directory except <code>init.py</code> (successfully)</li>
  <li>run <code>$python manage.py makemigrations &lt;appname&gt;</code> (successfully)</li>
  <li>run <code>$python manage.py sqlmigrate &lt;appname&gt; 001</code> (Successfully)</li>
  <li>run <code>$python manage.py migrate</code> (Failed: operational error)</li>
  </ol>
  
  <p>Because of 4th failure I got a statement of migrations while I ran project</p>
  
  <p>What should I do?</p>
  
  <p>Below is my code:</p>
  
  <p><code>urls.py</code></p>
  
  <pre><code>urlpatterns = [  url(r'^$', views.index,name='index'), url(r'.*signup/$' , views.signup.as_view(), name='signup'),  ]
  </code></pre>
  
  <p><code>models.py</code></p>
  
  <pre><code>class PatientSignup(models.Model):
      Pname = models.CharField()
  </code></pre>
  
  <p><code>forms.py</code>:</p>
  
  <pre><code>class PatientSignupForm(forms.ModelForm):
      forms.CharField()  # add other fileds
  </code></pre>
  
  <p><code>views.py</code>:</p>
  
  <pre><code>class signup(TemplateView):
      temp = 'personal/signup.html'
  
      def get(self, request):
          psform = PatientSignupForm()
          data = PatientSignup.objects.all()
          args = {'psform': psform, 'data': data}
          return render(request, self.temp, args)
  
  
      def post(self, request):
          psform = PatientSignupForm(request.POST)
          if psform.is_valid():
              psform.save()
          cd = psform.cleaned_data
          args = {'psform': psform, 'data': data}
          return render(request, self.temp, args)
  </code></pre>
  
  <p>Template code:</p>
  
  <pre><code>&lt;form method="post"&gt;
      { % csrf_token %}
      &lt;div&gt;
          {{psform.as_p}}
          &lt;button type="submit"/&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>