Parcourir la source

Use UTF-8 for the API on Python2

Baptiste Jonglez il y a 10 ans
Parent
commit
bf17c454b6
4 fichiers modifiés avec 12 ajouts et 0 suppressions
  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