unicode_literals everywhere and modoboa-admin deploy fixes

This commit is contained in:
Arthur Vuillard
2017-05-11 09:25:42 +02:00
parent 799e06bc2f
commit 615f73f272
182 changed files with 364 additions and 14 deletions
+3
View File
@@ -1,4 +1,7 @@
#!/usr/bin/env python
from __future__ import unicode_literals
import os
import sys
+1
View File
@@ -0,0 +1 @@
from __future__ import unicode_literals
+2
View File
@@ -8,6 +8,8 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
from __future__ import unicode_literals
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
from logging.handlers import SysLogHandler
+2
View File
@@ -1,3 +1,5 @@
from __future__ import unicode_literals
from django.conf.urls import include, url
urlpatterns = [
+2
View File
@@ -7,6 +7,8 @@ For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
from __future__ import unicode_literals
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project.settings")