Skip to content

Staticfiles refinement & and Header not to loose #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/calculated_fields.rst
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ Adding a method to the model
You can add two methods to your :code:`Origin` model like this::


def hero_count(self,):
def hero_count(self):
return self.hero_set.count()

def villain_count(self):
3 changes: 2 additions & 1 deletion docs/logo.rst
Original file line number Diff line number Diff line change
@@ -34,14 +34,15 @@ Now copy the :code:`base_site.html` from the admin app to :code:`templates\admin
<h1 id="site-name">
<a href="{% url 'admin:index' %}">
<img src="{% static 'umsra_logo.png' %}" height="40px" />
{{ site_header|default:_('Django administration') }}
</a>
</h1>

With the changes your base_site.html will look like this::

{% extends "admin/base.html" %}

{% load staticfiles %}
{% load static %}

{% block title %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %}