Traceback:
File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/core/handlers/base.py" in get_response
resolver_match = resolver.resolve(request.path_info)
File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/core/urlresolvers.py" in resolve
for pattern in self.url_patterns:
File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/core/urlresolvers.py" in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/core/urlresolvers.py" in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File "/usr/lib/python2.7/importlib/init.py" in import_module
import(name)
File "/home/pi/GoProController/GoProController/urls.py" in
from rest_framework import serializers, viewsets, routers, filters
File "/usr/local/lib/python2.7/dist-packages/djangorestframework-3.5.4-py2.7.egg/rest_framework/serializers.py" in
from django.db.models import DurationField as ModelDurationField
Exception Type: ImportError at /
Exception Value: cannot import name DurationField
`
It seems that something is wrong with django. Here is the error I get:
`Environment:
Request Method: GET Request URL: http://localhost:8000/
Django Version: 1.7.1 Python Version: 2.7.9 Installed Applications: ('django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'corsheaders', 'GoProController') Installed Middleware: ('corsheaders.middleware.CorsMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware')
Traceback: File "/usr/local/lib/python2.7/dist-packages/Django-1.7.1-py2.7.egg/django/core/handlers/base.py" in get_response
Exception Type: ImportError at / Exception Value: cannot import name DurationField `