Coder Social home page Coder Social logo

Comments (4)

jgmize avatar jgmize commented on July 28, 2024

got the testing form working by making the following changes to project/settings/local.py:

  • COMPRESS_ENABLED = True
  • copy COMPRESS_PRECOMPILERS setting from project/settings/base.py and modify to include full path to lessc

I was not able to get it to work with COMPRESS_OFFLINE = True, however. I kept getting an error ``You have offline compression enabled but key "7e3f88f2dccb6748cb305db4ec09e6e1" is missing from offline manifest. You may need to run "python manage.py compress".` which persisted despite running manage.py compress and manually clearing out the static/CACHE directory and running it again. I've set COMPRESS_OFFLINE = False for now, and I did a test submission to the test-form without issue.

from fxoss.

bensternthal avatar bensternthal commented on July 28, 2024

Working on dev but rendering a test form on prod still generates an error.

https://mobilepartners.mozilla.org/test/

from fxoss.

jgmize avatar jgmize commented on July 28, 2024

Setting COMPRESS_OFFLINE = False on prod removes this error but results in a loss of styling. working on this now.

from fxoss.

daaray avatar daaray commented on July 28, 2024

I see similar issues with missing styles if I set DEBUG=FALSE on my local environment

It looks as though there is a middleware or something similar that is sniffing the language code from the client, and redirecting static resources to non-existent folders.

Browser set to EN
[06/Feb/2014 13:46:04] "GET /static/CACHE/js/21366e848caa.js HTTP/1.1" 301 0
[06/Feb/2014 13:46:04] "GET /static/CACHE/js/21366e848caa.js/ HTTP/1.1" 302 0
[06/Feb/2014 13:46:04] "GET /en/static/CACHE/js/21366e848caa.js/ HTTP/1.1" 404 6522

Browser set to FR
[06/Feb/2014 13:46:04] "GET /static/CACHE/js/21366e848caa.js HTTP/1.1" 301 0
[06/Feb/2014 13:46:04] "GET /static/CACHE/js/21366e848caa.js/ HTTP/1.1" 302 0
[06/Feb/2014 13:46:04] "GET /fr/static/CACHE/js/21366e848caa.js/ HTTP/1.1" 404 6522

from fxoss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.