[Django]-Django tutorial: runserver error

4πŸ‘

βœ…

It looks like you are using a version of django prior to version 1.7 (1.6.4 to be specific), and SessionAuthenticationMiddleware was not introduced until django 1.7. Hence the error

Documentation can be found here

On the bottom right, you can choose the version of django. Select the appropriate version, and follow the tutorial specific to the version of django you are using.

πŸ‘€karthikr

1πŸ‘

just delete the following session authentication middleware from your project settings.py

    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
πŸ‘€0x3bfc

Leave a comment