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>
    <li><a 
href="http://mezzanine.jupo.org/docs/content-architecture.html";>Creating 
custom page types</a></li>
    <li><a 
href="http://mezzanine.jupo.org/docs/frequently-asked-questions.html#templates";>Modifying
 
HTML templates</a></li>
    <li><a 
href="http://mezzanine.jupo.org/docs/frequently-asked-questions.html#why-isn-t-the-homepage-a-page-object-i-can-edit-via-the-admin";>Changin$
    <li><a 
href="http://mezzanine.jupo.org/docs/frequently-asked-questions.html";>Other 
frequently asked questions</a></li>
    <li><a 
href="http://mezzanine.jupo.org/docs/configuration.html#default-settings";>Full 
list of settings</a></li>
    <li><a href="http://mezzanine.jupo.org/docs/deployment.html";>Deploying 
to a production server</a></li>
</ul>
{% endblocktrans %}
{% endblock %}

If someone can spot my (noobish)mistake, please let me know!
Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to