hi: Thanks for your reply! Do you mean the default css provided by django is working so? I see some examples of django admin on internet, they works fine with capitalize.
But I have not modified the default css file yet. 在 2017年2月7日星期二 UTC+8下午6:12:37,ludovic coues写道: > > The line 296 of base.css is responsible for this behaviour. > Adding a rule "thead th { text-transform: capitalize; }" at a later point > should do what you want. > To do that, I would add an app in INSTALLED_APPS before > django.contrib.admin. In that app > templates directory, I would add the following files, admin/base.html and > admin/django_base.html. > > admin/django_base.html would be a copy of admin/base.html found in the > django.contrib.admin. > admin/base.html would extends admin/django_base.html and add your css in > the block extrastyle. > > I hope I'm not confusing. If anyone know a better way to override > base.html, I would be happy to hear :) > > 2017-02-07 9:55 GMT+01:00 居飞 <jufe...@gmail.com <javascript:>>: > >> >> <https://lh3.googleusercontent.com/-rlahc1FQOwI/WJmLJ7N3jhI/AAAAAAAAA_w/cew7x0vR5BQtLI8GJ9y0AO-UK8Oc6thnQCLcB/s1600/listview.jpg> >> >> >> As show in the picture, in my django admin list view, all column header >> are uppercase, How can I change it to capitalize? >> >> Thanks. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users...@googlegroups.com <javascript:>. >> To post to this group, send email to django...@googlegroups.com >> <javascript:>. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/c127487a-86ce-40a1-b0f3-8d49e884c75c%40googlegroups.com >> >> <https://groups.google.com/d/msgid/django-users/c127487a-86ce-40a1-b0f3-8d49e884c75c%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > > Cordialement, Coues Ludovic > +336 148 743 42 > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/67798218-28ea-449d-a735-28e1a6a12568%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.