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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:55:53+00:00 2026-06-05T10:55:53+00:00

I have recently deployed a Django-based site. I was looking for ways to speed

  • 0

I have recently deployed a Django-based site. I was looking for ways to speed up page loads, so I decided to give django-compressor a try.

My home page includes quite a few CSS and JS files, so django-compressor seemed like the perfect tool for the job. I modified the template for the home page to take advantage of django-compressor’s CSS concatenation capabilities:

{% compress css %}
  <link href="{{ STATIC_URL }}css/file1.css" rel="stylesheet" />
  <link href="{{ STATIC_URL }}css/file2.css" rel="stylesheet" />
{% endcompress %}

Unfortunately, the problem is that django-compressor is modifying the files. file1.css contains a large number of declarations and file2.css contains some new declarations and overrides some of the declarations in file1.css. Unfortunately some of the declarations in file2.css are missing (part of the file is there – but part of it isn’t).

This still happens even when I set:

COMPRESS_CSS_FILTERS = []

…in settings.py. The files are concatenated but some of file2.css‘s declarations are missing. Is there some setting I don’t know about that is causing the file to be modified or declarations to be dropped? Nothing like this happens with the JavaScript files.

  • 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-05T10:55:55+00:00Added an answer on June 5, 2026 at 10:55 am

    Turns out the problem was that I forgot to run:

    python manage.py collectstatic
    

    …and therefore the missing attributes were due to the fact that the static directory contained an older copy of the CSS file.

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

Sidebar

Related Questions

We have a web based application in production built using django. It is deployed
I have recently installed .net 3.5 SP1. When I deployed a compiled web site
I have MVC3 & SqlServer 2008 based application recently deployed. The application works fine
I have recently deployed an app to a shared host (webfaction), and for no
I have a Titanium Android app that I'm developing and recently deployed to the
I have a Ruby on Rails app that I've recently deployed to a remote
I recently bought some webspace with dailyrazor.com. I have deployed an application I have
We have a C++ (SOAP-based) web service deployed Using Systinet C++ Server, that has
I recently decided to try some java web development, so I installed xampp, the
I have recently deployed my web role to Windows Azure. In the properties of

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.