Comments (4)
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.
Working on dev but rendering a test form on prod still generates an error.
https://mobilepartners.mozilla.org/test/
from fxoss.
Setting COMPRESS_OFFLINE = False on prod removes this error but results in a loss of styling. working on this now.
from fxoss.
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)
- Clear Notes Field on Content Copy
- Allow Localized Sites To Have Their Front End Enabled Or Not HOT 1
- DL Agreement Not Prompting With CN PDF HOT 1
- Chinese Characters Appearing in US Profile Screen HOT 3
- Configure ROSETTA if/when new locales are added.
- Media Library Has Vanished HOT 2
- Meta Data And Notes No Longer Editable HOT 3
- Rosetta Display Wonky HOT 2
- Error Page After Agreeing To Click Through HOT 3
- Add "Site" To Column Headings Under Redirect HOT 2
- Duplicate Sites Appearing In Admin HOT 7
- View On Site Links 404, Link to https://zh-cn.mobilepartners.mozilla.org HOT 2
- Locale Detection Based On Browser Language No Longer Working HOT 2
- Sandstone footer components need to be marked for translation.
- Explicitly add Mezzanine Pages context processor HOT 1
- Admin Left Nav Disapeared HOT 5
- Signed Prototypes In Profile Only Link To US PDF HOT 5
- docker: running apt-get update by itself prevents updating apt during rebuilds HOT 2
- missing beautifulsoup from pip requirements HOT 1
- CODE_OF_CONDUCT.md file missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fxoss.