This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COMPRESS_CSS_FILTERS = ['compressor.filters.yuglify.YUglifyCSSFilter'] | |
COMPRESS_JS_FILTERS = ['compressor.filters.yuglify.YUglifyJSFilter'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install http://github.com/django-compressor/django-compressor/tarball/develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# myapp/signals/handlers.py | |
from django.dispatch import receiver | |
from .signals import example_signal | |
@receiver(example_signal) | |
def example_signal_handler(sender, **kwargs): | |
print kwargs['arg1'] | |
print kwargs['arg2'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# myapp/apps.py | |
from django.apps import AppConfig | |
class MyAppConfig(AppConfig): | |
name = 'myapp' | |
verbose_name = 'My App' | |
def ready(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# myapp/signals/signals.py | |
from django.dispatch import Signal | |
example_signal = Signal(providing_args=['arg1', 'arg2']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# myapp/__init__.py | |
default_app_config = 'myapp.apps.MyAppConfig' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "grunt-sass-coffeescript", | |
"version": "0.1.0", | |
"repository": "", | |
"devDependencies": { | |
"grunt": "~0.4.2", | |
"grunt-contrib-sass": "~0.7.2", | |
"grunt-contrib-coffee": "~0.10.1", | |
"grunt-contrib-watch": "~0.5.3", | |
"coffee-script": "~1.7.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = (grunt) -> | |
# configuration | |
grunt.initConfig | |
# grunt sass | |
sass: | |
compile: | |
options: | |
style: 'expanded' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.html | |
Gruntfile.coffee | |
package.json | |
/lib | |
/coffee | |
*.coffee | |
/css | |
*.css | |
/js | |
*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install sass | |
sudo gem install sass | |
# install grunt cli globally | |
sudo npm install -g grunt-cli | |
# note - switch to project directory where Gruntfile.coffee and package.json are sitting | |
# install dependencies | |
npm install |
OlderNewer