Browse Source

Use UTF-8 for the API on Python2

Baptiste Jonglez 10 years ago
parent
commit
bf17c454b6
4 changed files with 12 additions and 0 deletions
  1. 3 0
      api/serializers.py
  2. 3 0
      api/tests.py
  3. 3 0
      api/urls.py
  4. 3 0
      api/views.py

+ 3 - 0
api/serializers.py

@@ -1,3 +1,6 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals, division, print_function
+
 from rest_framework import serializers
 
 from panorama.models import Panorama, ReferencePoint, Reference

+ 3 - 0
api/tests.py

@@ -1,3 +1,6 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals, division, print_function
+
 from django.test import TestCase
 
 # Create your tests here.

+ 3 - 0
api/urls.py

@@ -1,3 +1,6 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals, division, print_function
+
 from django.conf.urls import url, include
 from rest_framework import routers
 from . import views

+ 3 - 0
api/views.py

@@ -1,3 +1,6 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals, division, print_function
+
 from rest_framework import viewsets
 from django.conf import settings