diff --git a/example/blog/templates/base.html b/example/blog/templates/base.html new file mode 100644 index 0000000..62f9c02 --- /dev/null +++ b/example/blog/templates/base.html @@ -0,0 +1,30 @@ +{% load i18n %} + + + + + Example.com + + + {% block css %} + + + {% endblock css %} + + +
+
+
+

+
+
+ {% block content %}{% endblock content %} +
+ + {% block javascript %} + + + + {% endblock javascript %} + + diff --git a/example/blog/templates/blog/home.html b/example/blog/templates/blog/home.html index 8609179..9a765c0 100644 --- a/example/blog/templates/blog/home.html +++ b/example/blog/templates/blog/home.html @@ -1,10 +1,48 @@ -{% extends "admin2/bootstrap/base.html" %} +{% extends "base.html" %} +{% load staticfiles %} {% block content %} -

Example Home

+
+
+

Example.com

- +

Imagine that this is a real site

+ +

Pretend that this is the homepage of a big Django site.

+ +

Imagine lots of things are here:

+ + +

In other words, these are items that we can introspect through the Django admin.

+ +

Under the hood

+ +

Now, explore the Django admin for example.com. Click on either of the following:

+
+
+ +
+
+

The original Django Admin

+ + + + + +

Powered by django.contrib.admin. This is just here for reference.

+
+
+

The new Admin2

+ + + + + +

Powered by django-admin2.

+
+
{% endblock %} \ No newline at end of file diff --git a/example/example/settings.py b/example/example/settings.py index 6d91c87..62c669e 100644 --- a/example/example/settings.py +++ b/example/example/settings.py @@ -1,4 +1,7 @@ # Django settings for example project. +import os + +BASE_DIR = os.path.dirname(os.path.dirname(__file__)) DEBUG = True TEMPLATE_DEBUG = DEBUG @@ -67,6 +70,7 @@ STATICFILES_DIRS = ( # Put strings here, like "/home/html/static" or "C:/www/django/static". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. + os.path.join(BASE_DIR, "static"), ) # List of finder classes that know how to find static files in diff --git a/example/static/img/admin.png b/example/static/img/admin.png new file mode 100644 index 0000000..da0ac0b Binary files /dev/null and b/example/static/img/admin.png differ diff --git a/example/static/img/admin2.png b/example/static/img/admin2.png new file mode 100644 index 0000000..2424370 Binary files /dev/null and b/example/static/img/admin2.png differ