5 ms·
You are right. For now it runs the minified js in both envs. Yes, it is possible to fix it. There is a local_settings.py which can be customised for each enviro
by unbound 13y ago
You are right. For now it runs the minified js in both envs. Yes, it is possible to fix it. There is a local_settings.py which can be customised for each environment separately. If you set the DEBUG variable to TRUE, you can include appropriate assets by checking debug variable in django template. I will add this functionality asap.
- wlindner 13y agoI see! That's pretty cool. I don't really use django, I basically just use app engine as a backend REST api for my backbone.js app. So, I check if the build directly exists when I'm first loading the app, and the template loads the minified version if it exists, and the unminified version if it doesn't exist. That way I can test the production version by running `grunt build` and refreshing the page. But I still get all the benefits of developing on the unminified version if I just delete the build directory and refresh the page.