-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wrote 'Django administration' text chapter
- Loading branch information
Showing
3 changed files
with
50 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,49 @@ | ||
How to change 'Django administration' text? | ||
================================================ | ||
|
||
By default Django admin shows 'Django administration'. You have been asked to replace this with 'UMSRA Administration' | ||
|
||
The text is at these pages: | ||
|
||
- Login Page | ||
- The listview page | ||
- The HTML title tag | ||
|
||
Login, Listview and Changeview Page | ||
++++++++++++++++++++++++++++++++++++++++++++ | ||
|
||
By default it looks like this and is set to :code:`“Django administration”` | ||
|
||
.. image:: images/default_login.png | ||
|
||
:code:`site_header` can be set to change this. | ||
|
||
Listview Page | ||
++++++++++++++++++++++ | ||
|
||
BY default it looks like this and is set to :code:`“Site administration”` | ||
|
||
.. image:: images/default_listview.png | ||
|
||
:code:`index_title` can be set to change this. | ||
|
||
|
||
|
||
HTML title tag | ||
++++++++++++++++++++++ | ||
|
||
By default it looks like this and is set to :code:`“Django site admin”` | ||
|
||
.. image:: images/default_title.png | ||
|
||
|
||
:code:`site_title` can be set to change this. | ||
|
||
|
||
We can make the three changes in urls.py:: | ||
|
||
|
||
admin.site.site_header = "UMSRA Admin" | ||
admin.site.site_title = "UMSRA Admin Portal" | ||
admin.site.index_title = "Welcome to UMSRA Researcher Portal" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters