Hi,
I am trying to make my first theme, but I am not able to override the default index.html.
This is my theme directory:
.
├── __init__.py
├── static
│ ├── css
│ ├── img
│ └── js
└── templates
├── base.html
├── includes
│ └── footer_scripts.html
└── index.html
And I have tried to add the theme as an app like this:
INSTALLED_APPS = (
"theme",
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.redirects",
"django.contrib.sessions",
"django.contrib.sites",
"django.contrib.sitemaps",
"django.contrib.staticfiles",
"mezzanine.boot",
"mezzanine.conf",
"mezzanine.core",
"mezzanine.generic",
"mezzanine.blog",
"mezzanine.forms",
"mezzanine.pages",
"mezzanine.galleries",
"mezzanine.twitter",
#"mezzanine.accounts",
#"mezzanine.mobile",
)
And this:
INSTALLED_APPS = (
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.redirects",
"django.contrib.sessions",
"django.contrib.sites",
"django.contrib.sitemaps",
"django.contrib.staticfiles",
"mezzanine.boot",
"mezzanine.conf",
"mezzanine.core",
"mezzanine.generic",
"mezzanine.blog",
"mezzanine.forms",
"mezzanine.pages",
"mezzanine.galleries",
"mezzanine.twitter",
#"mezzanine.accounts",
#"mezzanine.mobile",
"theme",
)
My index.html looks like this:
{% extends "base.html" %}
{% load i18n %}
{% block meta_title %}{% trans "Home" %}{% endblock %}
{% block title %}{% trans "Home" %}{% endblock %}
{% block breadcrumb_menu %}
<li class="active">{% trans "Home" %}</li>
{% endblock %}
{% block main %}
{% blocktrans %}
<h2>Congratulations!</h2>
<p>
Test 1.. 2.. 3..
Welcome to your new Mezzanine powered website.
Here are some quick links to get you started:
</p>
<ul>
<li><a href="/admin/">Log in to the admin interface</a></li>
</ul>
{% endblocktrans %}
{% endblock %}
If someone can spot my (noobish)mistake, please let me know!
Thank you!