Search code examples
pythoninstallationmozilla

ImportError initialization error: ImportError: No module named session_csrf


I try to install pontoon. I use the doc here but when I make:

python manage.py migrate 

I have this error:

File "manage.py", line 22, in <module>
    execute_from_command_line(sys.argv)
ImportError: No module named session_csrf

I have no idea. Can someone help me?


Solution

  • session_csrf is a module from the Django framework (see : Django documentation), it seems then Pontoon are using Django. Your manage.py file can't found the module session_csrf. try to install it with :

    pip install django-session-csrf