Update resources.py

Django 1.6 compability
request 1.6?
Update resources.py
Update resources.py
Update resources.py
Update resources.py
Update resources.py
Merge pull request #2 from arkeros/master

Django 1.6 compatible