Import Image from PIL to support newer python

import the Django registration module rather than the troggle one
This commit is contained in:
Sam Wenham
2018-04-10 01:34:06 +01:00
parent 41a14f161d
commit 242cf4741a
2 changed files with 3 additions and 2 deletions

View File

@@ -17,7 +17,8 @@ import re, urlparse
from django.shortcuts import get_object_or_404
import settings
import Image, ImageDraw, ImageFont, string, os, sys
from PIL import Image, ImageDraw, ImageFont
import string, os, sys
def getCave(cave_id):
"""Returns a cave object when given a cave name or number. It is used by views including cavehref, ent, and qm."""