Websites/Mozilla.org/Static-Media-Improvements: Difference between revisions
< Websites | Mozilla.org
Jump to navigation
Jump to search
Pmclanahan (talk | contribs) (Minor updates and links to Grunt and npm-lockdown.) |
Pmclanahan (talk | contribs) (No Django 1.7. 1.8 FTW!) |
||
| Line 20: | Line 20: | ||
## use virtualenv built for step 4 | ## use virtualenv built for step 4 | ||
## use [https://github.com/dean/peepify peepify] to update requirements files | ## use [https://github.com/dean/peepify peepify] to update requirements files | ||
# Upgrade Django to | # Upgrade Django to 1.8 | ||
# Move to a hybrid [http://gulpjs.com/ Gulp] (or keep [http://gruntjs.com/ Grunt]) + Django media management system (CSS, JS, Images, etc.) | # Move to a hybrid [http://gulpjs.com/ Gulp] (or keep [http://gruntjs.com/ Grunt]) + Django media management system (CSS, JS, Images, etc.) | ||
#* see https://lincolnloop.com/blog/integrating-front-end-tools-your-django-project/ | #* see https://lincolnloop.com/blog/integrating-front-end-tools-your-django-project/ | ||
#* Manage node.js dependencies with [https://github.com/mozilla/npm-lockdown npm-lockdown]. | #* Manage node.js dependencies with [https://github.com/mozilla/npm-lockdown npm-lockdown]. | ||
# Add JS tests to CI | # Add JS tests to CI | ||
Revision as of 20:54, 1 April 2015
Bedrock Static Media Improvements
Move to Django 1.6Move media to use staticfiles (PR #2672)move from jingo-minify to django-pipeline
Clean up deploymentMove to Python 2.7 (Bug 1118786) (Full process from IT etherpad)alter code to use proper python (Bug 1118786, PR #2629)Adjust https://github.com/mozilla/bedrock/tree/master/bin/update scripts to call proper pythonAdjust https://github.com/mozilla/bedrock/tree/master/etc/cron.d to call proper pythonIdeally via PYTHON_PATH provided by Chief... would require this to be some form of template.Alternatively, a simple duplicate hard-coding of what's in commander_settings.py
update Travis CI to test against 2.7
Move from Apache to Whitenoise for serving static mediaMove non-template files served at site root (humans.txt, contribute.json, etc.) to a directory and have whitenoise serve it at the root of the site (via WHITENOISE_ROOT setting).
- Move deployment fully to peep and remove vendor submodules (Bug 1144669)
- Upgrade Django to 1.8
- Move to a hybrid Gulp (or keep Grunt) + Django media management system (CSS, JS, Images, etc.)
- see https://lincolnloop.com/blog/integrating-front-end-tools-your-django-project/
- Manage node.js dependencies with npm-lockdown.
- Add JS tests to CI