Fixed sample settings for Django 3.2 new DEFAULT_AUTIFIELD and added local fonts also on admin interface

This commit is contained in:
Adolfo Gómez García 2021-04-08 17:41:03 +02:00
parent afd36886d6
commit 0fd24dadff
2 changed files with 4 additions and 3 deletions

View File

@ -34,6 +34,7 @@ DATABASES = {
} }
ALLOWED_HOSTS = '*' ALLOWED_HOSTS = '*'
DEFAULT_AUTO_FIELD='django.db.models.AutoField'
# Local time zone for this installation. Choices can be found here: # Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems. # although not all choices may be available on all operating systems.

View File

@ -66,8 +66,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="/uds/res/modern/img/favicon.png"> <link rel="icon" type="image/png" href="/uds/res/modern/img/favicon.png">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link href="/uds/res/modern/fonts/material-icons.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet"> <link href="/uds/res/modern/fonts/roboto.css" rel="stylesheet">
<!-- just in case translations cannot be loaded, provide a fallback --> <!-- just in case translations cannot be loaded, provide a fallback -->
<script type="text/javascript"> <script type="text/javascript">
@ -92,6 +92,6 @@
</svg> </svg>
</div> </div>
</uds-root> </uds-root>
<script src="/uds/res/admin/runtime.js?stamp=1614175871" defer></script><script src="/uds/res/admin/polyfills-es5.js?stamp=1614175871" nomodule defer></script><script src="/uds/res/admin/polyfills.js?stamp=1614175871" defer></script><script src="/uds/res/admin/main.js?stamp=1614175871" defer></script></body> <script src="/uds/res/admin/runtime.js?stamp=1617896369" defer></script><script src="/uds/res/admin/polyfills-es5.js?stamp=1617896369" nomodule defer></script><script src="/uds/res/admin/polyfills.js?stamp=1617896369" defer></script><script src="/uds/res/admin/main.js?stamp=1617896369" defer></script></body>
</html> </html>