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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:09:48+00:00 2026-05-27T07:09:48+00:00

I have Less CSS working with my Django site in local development. Everything looks

  • 0

I have Less CSS working with my Django site in local development. Everything looks fine. I’m including the files as follows:

<link rel="stylesheet/less" type="text/css" href="{{ STATIC_URL }}less/base.less">
<script src="{{ STATIC_URL }}js/less-1.1.3.min.js" type="text/javascript"></script>

However, when I deploy the project to Heroku, Less CSS inexplicably doesn’t work. What do I have wrong?

I know for a fact that I have static media set up properly: I can download base.less and less-1.1.3.min.js from the correct paths just fine.

Note: I realize that it’s best to compile and minify my .less files for production, but this is just a staging server for development purposes.

Note 2: If you know how to add compilation of Less CSS to the Heroku deployment process, without having to install node.js, I’d be interested in learning how to do that in addition to my main question..

  • 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-05-27T07:09:49+00:00Added an answer on May 27, 2026 at 7:09 am

    The problem is that less.js loads the .less stylesheets through XHR, which doesn’t work unless you set the appropriate Access-Control-Allow-Origin header, which S3 doesn’t permit (https://forums.aws.amazon.com/thread.jspa?threadID=34281).

    As a workaround some people have suggested setting up an HTTP Proxy, which adds the necessary header. (http://motoole.com/2011/10/19/hosting-font-face-fonts-on-s3.html) and (http://zefer.posterous.com/pure-html-ajax-solutions-to-upload-files-to-s)

    Otherwise, you’re going to have to compile the .less files to CSS, as less.js isn’t going to work.

    Of course, another alternative (which I use), is to simply deploy the static files to an Apache server, and not host them in S3.

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

Sidebar

Related Questions

I have downloaded a font that looks less than desirable if it is not
I'm writing a Django project that uses the LESS language. I'm using the django-css
My intentions is to make all *.less files into style.css I am not very
I have recently come across the LESS Leaner CSS a template engine for CSS
I am trying to use LESS CSS to write my CSS. I have imported
I am trying to use LESS CSS to write my CSS. I have imported
I used LESS CSS for my CSS document. The website have different themes. In
I have created a LESS ( http://lesscss.org/ ) version of a simple css grid
I have this folders structure: ~/css/file1.less ~/css/folder/file2.less What I want to do is importing
I have been looking at LESS ( http://lesscss.org/ ) which adds variables and macro

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.