skibblenybbles / django-grunt Goto Github PK
View Code? Open in Web Editor NEWDjango tools for integrating Grunt into your workflow
License: MIT License
Django tools for integrating Grunt into your workflow
License: MIT License
We're using the workflow where we build everything locally. It would be nice to be able to run grunt-watch (maybe even with runserver) using this, but unfortunately we couldn't.
I noticed that I could not get django to acknowledge changes to any static content that I had applied when invoking os.system("grunt taskname filelocation")
after collect static. In your documentation you mention that this manage.py extension command is ok to run after collectstatic. Can you explain how this works? I have a related stack overflow post with more information: https://stackoverflow.com/questions/51098253/why-is-my-website-not-picking-up-changes-to-staticfiles
I built this project to improve my workflow with Django and Grunt. I work in a *nix environment, so I didn't bother with trying to support other platforms.
I tried anyway, and got the error below. Maybe mention in the readme that it does not work on Windows so other people won't have to try.
(env1) D:\Sites\storycollective\app>python manage.py grunt
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "D:\Sites\storycollective\env1\lib\site-packages\django\core\management\__init__.py", line 399, in execute_from_command_line
utility.execute()
File "D:\Sites\storycollective\env1\lib\site-packages\django\core\management\__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "D:\Sites\storycollective\env1\lib\site-packages\django\core\management\base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "D:\Sites\storycollective\env1\lib\site-packages\django\core\management\base.py", line 285, in execute
output = self.handle(*args, **options)
File "D:\Sites\storycollective\env1\lib\site-packages\commando\management\base.py", line 302, in handle
validate(*arguments, **options)
File "D:\Sites\storycollective\env1\lib\site-packages\grunt\management\grunt.py", line 44, in validate_grunt
self.check_program("grunt")
File "D:\Sites\storycollective\env1\lib\site-packages\commando\management\base.py", line 362, in check_program
if not check_program(name):
File "D:\Sites\storycollective\env1\lib\site-packages\commando\management\base.py", line 131, in check_program
subprocess.check_call(("which", name), stdout=null, stderr=null)
File "C:\Python27\Lib\subprocess.py", line 535, in check_call
retcode = call(*popenargs, **kwargs)
File "C:\Python27\Lib\subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "C:\Python27\Lib\subprocess.py", line 709, in __init__
errread, errwrite)
File "C:\Python27\Lib\subprocess.py", line 957, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.