I am running Django 1.9. on MAC
I have 2 settings files settings.py (for production) and settings_dev.py (for dev)
On my machine I run the project with ./manage.py runserver --settings=myapp.settings_dev
The problem is when I submit a form I get the Error CSRF verification failed. Request aborted.
This start happening from the time the 2 settings files got very different. For some reason when I run ./manage.py runserver --settings=myapp.settings_dev
when there is a form submission Django gets settings.py
.
I am sure that it is happening like that because I copy paste my DEV file in settings.py and everything runs good.
Any Idea how I can fix that issue ?