Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8545223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:44:40+00:00 2026-06-11T12:44:40+00:00

The django documentation indicates that custom css can be added to an Admin page

  • 0

The django documentation indicates that custom css can be added to an Admin page as follows:

class ArticleAdmin(admin.ModelAdmin):
    class Media:
        css = {
            "all": ("my_styles.css",)
        }
        js = ("my_code.js",)

It doesn’t, however, explain what the “all” means in the css declaration. What does it mean, and are there other values or configurations one could potentially use instead of “all”?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:44:41+00:00Added an answer on June 11, 2026 at 12:44 pm

    all is for all types of media declarations which are:

    ‘aural’, ‘braille’, ’embossed’, ‘handheld’, ‘print’, ‘projection’,
    ‘screen’, ‘tty’ and ‘tv’

    .

    so, if you want a specific style for handheld:

    class ArticleAdmin(admin.ModelAdmin):
        class Media:
            css = {
                "handheld": ("my_handheld_styles.css",)
                "all": ("my_styles.css",)
            }
            js = ("my_code.js",)
    

    https://docs.djangoproject.com/en/1.0/topics/forms/media/#css

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The Django documentation ( http://docs.djangoproject.com/en/1.3/topics/testing/#running-tests ) says that you can run individual test cases
The permission/authentication documentation for Django 1.4 provides the following snippet for creating custom permissions
This example is from the Django documentation . Given the (Django) database model: class
I'm creating custom template tags for my django site. I've followed the django documentation
I'm trying to adopt the Django documentation example on using class based views with
The Django documentation on its CSRF protection states that: In addition, for HTTPS requests,
This is from the django documentation : condition(etag_func=None, last_modified_func=None) etag(etag_func) last_modified(last_modified_func) These decorators can
The Django documentation states the following clearly: Not every template in contrib\admin\templates\admin may be
I noticed in the django documentation that when DEBUG is False it will mail
I read filter and exclude from django documentation but I want to know that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.