title: OperationalError at /no such table: django_session error on public server, site works fine on local server
body: <p>I am trying to send data taken from a form to another views page to process it. I am using sessions to send that data. It works fine on a local host, the data is sent and received successfully, however, on a public server it crashes. I found a couple of posts regarding the same problem but their issue is mostly related to database integration which is not the case here. 
  This is the code that is causing the error its inside views.py:</p>
  
  <pre><code> from django.shortcuts import render, redirect
   from django.http import HttpResponse
   from django.templatetags.static import static
   from plots.forms import plotform
   from django.http import JsonResponse 
   #from rest_framework.views import APIView
   #from rest_framework.response import Response
   import numpy as np 
   import csv
   import math
   import json
  
  def plots2(request):
      if request.method == 'POST':
              form = plotform(request.POST)
              if form.is_valid():
                      frequency_min = form.cleaned_data['frequency_min']
                      frequency_max = form.cleaned_data['frequency_max']
                      distance  = form.cleaned_data['distance']
                      humidity  = form.cleaned_data['humidity']
                      temp  = form.cleaned_data['temp']
                      request.session['frequency_min'] = frequency_min 
                      request.session['frequency_max'] = frequency_max 
                      request.session['distance'] = distance 
                      request.session['humidity'] = humidity 
                      request.session['temp'] = temp
                      return redirect('plots/')
  
      form = plotform() #includes the form inside plots.html
      #render(request, 'plots/plots2.html', {'form':form})
      #return redirect(request.POST.get('next','plots/'))
      #return redirect('plots/plots')
      return render(request, 'plots/plots2.html', {'form':form})
  
  
   def plots(request):
  
      frequency_min_input = request.session['frequency_min']
      frequency_max_input = request.session['frequency_max']
      distance_input      = request.session['distance']
      humidity_input      = request.session['humidity']
      temperature_input   = request.session['temp'] 
  </code></pre>
  
  <p>This is the error I get on the browser:</p>
  
  <pre><code> Request Method:    POST
   Request URL:   http://142.93.51.83/
   Django Version:    1.8.7
   Exception Type:    OperationalError
   Exception Value:   
   no such table: django_session
   Exception Location:    /usr/lib/python2.7/dist- 
   packages/django/db/backends/sqlite3/base.py in execute, line 318
   Python Executable: /usr/bin/python
   Python Version:    2.7.12
   Python Path:   
   ['/home/django/django_project',
    '/home/django/django_project',
    '/usr/bin',
    '/usr/lib/python2.7',
    '/usr/lib/python2.7/plat-x86_64-linux-gnu',
    '/usr/lib/python2.7/lib-tk',
    '/usr/lib/python2.7/lib-old',
    '/usr/lib/python2.7/lib-dynload',
    '/usr/local/lib/python2.7/dist-packages',
    '/usr/lib/python2.7/dist-packages']
    Server time:  Fri, 10 Aug 2018 00:49:07 +0000
  </code></pre>