Skip to content

Commit

Permalink
Merge pull request #8 from agiliq/index_page_modifiacation
Browse files Browse the repository at this point in the history
Index page modifiacation
  • Loading branch information
shabda committed Feb 23, 2018
2 parents f5e8223 + 8f9c08e commit 129732f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.Django Admin Cookbook
Django Admin Cookbook
===========================================================

Django Admin Cookbook - How to do things with Django admin.
Expand Down
4 changes: 2 additions & 2 deletions docs/logo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ You need to override the default templates provided by Django. In your django se

This means that Django will look for templates in a directory called :code:`templates` inside each app, but you can override that by setting a value for :code:`TEMPLATES.DIRS`.

We change the code:`'DIRS': [],` to code:`'DIRS': [os.path.join(BASE_DIR, 'templates/')],`, and create the `templates` folder. If your code::`STATICFILES_DIRS` is empty set it to::
We change the :code:`'DIRS': [],` to :code:`'DIRS': [os.path.join(BASE_DIR, 'templates/')],`, and create the :code:`templates` folder. If your :code:`STATICFILES_DIRS` is empty set it to::

STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]

Now copy the code::`base_site.html` from the admin app to :code:`templates\admin` folder you just created. Replace thre default text in `branding` block with::
Now copy the :code:`base_site.html` from the admin app to :code:`templates\admin` folder you just created. Replace thre default text in `branding` block with::

<h1 id="site-name">
<a href="{% url 'admin:index' %}">
Expand Down
2 changes: 2 additions & 0 deletions heroes_and_monsters/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
django==2.0.1
Pillow

0 comments on commit 129732f

Please sign in to comment.