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 8864181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:10:34+00:00 2026-06-14T16:10:34+00:00

I would like to know if there is some way to change a css

  • 0

I would like to know if there is some way to change a css class from a template page using django admin.
I would like to put the django tag inside of css file.

example:

body {
    background-color: {{ body.color }};
    width: {{ body.width }};
}
  • 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-14T16:10:36+00:00Added an answer on June 14, 2026 at 4:10 pm

    You could also include your CSS file using template tags. That would demand a style tag but considering the dynamic approach here it’s really not much of an issue:

    <html>
        <head>
            <style type="text/css">
            {% include 'templates/mytemplate.css' %}
            </style>
        </head>
        <body></body>
    </html>
    

    The template could then be what you described above. Then the CSS template would have access to whatever data your base template has access too.

    Depending on your use case you might also do something with blocks but I’m not sure that is worth exploring at this point.

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

Sidebar

Related Questions

I would like to know if there is some way to access the values
I'm implementing some code generators, i would like to know if there's any way
hi i would like to know if there is a wayI know some css
I would like to know if there's a way of automatically minify html, css
I would like to know if there is a way that jquery or some
I would like to know whether or not there is some way of marking
I would like to know if there is some kind of special markup to
I would like to know if there is some kind of instanceof functionality in
I would like to have some space between the same line.. I know there
I would like to know if there's a way in java to find out

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.