{% extends sitewide.template %} {% load static %} {% block main %}

Sitewide is Working!

Congratulations! You have successfully installed Sitewide. You are seeing this page because you do not have any other app in your Django Project, or other apps are not rendering pages yet. If the Sidebar, Header, and Footer are not visible, don't despair. Follow these steps to achieve the desired behaviour for your project.

Thank you for trying Sitewide. We appreciate your feedback.


Getting your Views to work with Sitewide

  1. So, You have done some models, views, urls, and now you want the Views to render pages. Usually, you would assign template paths in the views, then make sure the template files actually exist in those paths. Templates can be in an app's template folder or in the project's template folder. Start with a blank HTML template in your preferred path below.

    Placing the template in your app:

    project/app/templates/app/your_template.html

    Placing the template in the your Django Project

    project/templates/your_template.html
  2. Copy the following HTML markup into the new template file: {% verbatim %}{% extends sitewide.template %}{% endverbatim %}
    {% verbatim %}{% load static %}{% endverbatim %}
    {% verbatim %}{% block main %}{% endverbatim %}
    {% verbatim %}<-- Add your HTML here --!>{% endverbatim %}
    {% verbatim %}{% endblock %}{% endverbatim %}
  3. Add custom markups for the page within the {% verbatim %} {% main %}{% endverbatim %} block tags, replacing the comment with your HTML. Save the template.
  4. Doublecheck that the relevant view is pointing to you new template. Open your favourite development Browser and visit the url associated with the view.
  5. If you followed the setup guide (hinted above), you should be seeing a rendition of your page (on the browser), all nicely flanked by a Header, footer and Sidebar (according to your wishes). Bliss! You can now focus on making more contents. Sitewide will add the rest.

Wait, there's more ...

What if you want to change the color theme or perhaps you would like to adjust margins. Do you want to know how? See you at the 'Docs'.

What are you waiting for?

{% endblock %}