djangosenchatools

Django management command to simplify building extjs and sencha touch apps with Sencha tools
Download

djangosenchatools Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Espen Angell Kristiansen
  • Publisher web site:
  • http://devilry.github.com

djangosenchatools Tags


djangosenchatools Description

djangosenchatools is a Django app that provides Django management commands for the JSBuilder commands in Sencha SDK Tools. Unfortunately, the JSBuilder commands provided by Sencha Tools needs some workarounds to work when the HTML document and resources are not in the same directory. We have turned these workarounds into a Django management command available in the djangosenchatools app.InstallInstall the python package:pip install djangosenchatoolsAdd it to your django project:INSTALLED_APPS = UsageFirst, we need a Django ExtJS4 application. See django_extjs4_examples for an example application. We use the minimal_extjs4_app as our example.warning: The senchatoolsbuild management command runs collectstatic.Build one app1. Start the Django server (python manage.py runserver).2. Run: python manage.py senchatoolsbuild --url http://localhost:8000/minimal_extjs4_app/ --outdir /path/to/outdirWith --url and --outdir, the senchatoolsbuild command runs sencha create jsb and sencha build, and puts the result in the --outdir. Run with -v3 for full debug output if you want to see what the command does.Build all INSTALLED_APPSsenchatoolsbuild can autodetect sencha apps and build them all in their respective static directories. Run with --help and see the help for --buildall to see how apps are detected.To list detected apps, their --outdir and --url, run:python manage.py senchatoolsbuild --listallAdd -v3 to see skipped apps, and why they are skipped.To build all detected apps, run:python manage.py senchatoolsbuild --buildallBuild one app by nameYou can build a single app in INSTALLED_APPS using the same method of detecting outdir and url as --buildall using --app:python manage.py senchatoolsbuild --app minimal_extjs4_appIntegration with django_extjs4This app is made to work with django_extjs4, however they are losely coupled. The only place where you are likely to notice that they work together is that senchatoolsbuild checks that settings.EXTJS4_DEBUG==True. You can disable this check using --no-check-settings.Product's homepage


djangosenchatools Related Software