Browse Source

Opraveny Python2 printy.

export_seznamu_prednasek
parent
commit
288dcc747b
  1. 8
      korektury/migrations/0011_prevod_autora_z_charField_na_Organizator.py
  2. 2
      mamweb/wsgi.py

8
korektury/migrations/0011_prevod_autora_z_charField_na_Organizator.py

@ -18,10 +18,10 @@ def transform_autor(apps, schema_editor):
oprava.autor_org = org oprava.autor_org = org
oprava.save() oprava.save()
except: except:
print "Org nenalezen -- mažu korekturu" print("Org nenalezen -- mažu korekturu")
# oprava.delete() # oprava.delete()
else: else:
print "Org nenalezen -- mažu korekturu" print("Org nenalezen -- mažu korekturu")
oprava.delete() oprava.delete()
# preorgovani komentaru # preorgovani komentaru
@ -35,10 +35,10 @@ def transform_autor(apps, schema_editor):
komentar.autor_org = org komentar.autor_org = org
komentar.save() komentar.save()
except: except:
print "Org nenalezen -- mažu korekturu" print("Org nenalezen -- mažu korekturu")
# oprava.delete() # oprava.delete()
else: else:
print "Org nenalezen -- mažu korekturu" print("Org nenalezen -- mažu korekturu")
komentar.delete() komentar.delete()
def back(apps, schema_editor): def back(apps, schema_editor):

2
mamweb/wsgi.py

@ -19,7 +19,7 @@ try:
application = get_wsgi_application() application = get_wsgi_application()
except Exception: except Exception:
print 'handling WSGI exception' print('handling WSGI exception')
# Error loading applications # Error loading applications
if 'mod_wsgi' in sys.modules: if 'mod_wsgi' in sys.modules:
traceback.print_exc() traceback.print_exc()

Loading…
Cancel
Save