diff --git a/guild/models.py b/guild/models.py
index f448f2b..c7248a9 100644
--- a/guild/models.py
+++ b/guild/models.py
@@ -101,6 +101,7 @@ class Character(models.Model):
class Meta:
verbose_name = _("character")
verbose_name_plural = _("characters")
+ ordering = ["name"]
def __str__(self):
return self.name
diff --git a/guild/templates/guild/character_detail.html b/guild/templates/guild/character_detail.html
index c16cfe1..7a8ecf0 100644
--- a/guild/templates/guild/character_detail.html
+++ b/guild/templates/guild/character_detail.html
@@ -29,10 +29,11 @@
-
-
-
-
+ {% if character.picture %}
+
+
+
+ {% endif %}
{{character.description|md|safe}}
diff --git a/guild_journal/settings/production.py b/guild_journal/settings/production.py
index 7965783..21acc47 100644
--- a/guild_journal/settings/production.py
+++ b/guild_journal/settings/production.py
@@ -7,7 +7,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent.parent
SECRET_KEY = "django-insecure-e*p%e)pwf+-ntt4wpn-^^7-0yq)!cjo*om18vy77-=*c0jjfqa"
# SECURITY WARNING: don't run with debug turned on in production!
-DEBUG = True
+DEBUG = False
ALLOWED_HOSTS = os.environ.get("DJANGO_HOST").split(",")
CSRF_TRUSTED_ORIGINS = [
@@ -25,5 +25,5 @@ DATABASES = {
}
}
-EDIA_ROOT = "/data/media"
+MEDIA_ROOT = "/data/media"
MEDIA_URL = "/media/"