|
Installation
In the repository you'll find the contents of a Komodo project containing a collection of Komodo resources for adding Django-enhanced capabilities to the editor. You can open this project (komodo.kpf) in Komodo. You should see the following folders:
You should also now be able to see a "Django" menu option on the main menu containing a subset of the DjangoManageCommands. Since the project contains a Komodo Menu Resource the menu gets added when the project is loaded. If you right click on the project and select "Create Template from Project", save the template to something like: ~/.komodoedit/4.3/project-templates/My Templates/Django.kpz Now you create new projects via File -> New -> New Project from Template. Select the project template you just created. The newly created Komodo project will contain the Django hooks such as the menu and the macros. It will also automatically create a new Django project for you due to the "oncreate" macro. Macros named "oncreate" are automatically run when the project is created. You can also export it as a package that can then be imported into your Toolbox. This should have the effect of making the DKK resources available on more of a global level. On my Komodo Edit instance, the resources aren't being loaded until I restart Komodo at this time. If you open multiple template-based projects or have a template-based project open and the toolbox loaded you'll notice you can get multiple Django menus. |
Sign in to add a comment
Are there any plans to add Windows support? I could edit the commands in a project to add ".py" or prefix the command with "python", but I couldn't figure out how to edit the template itself to save those changes to the template. I realize it's kind of a pain, but maybe a branch in svn a buildscript creates from the trunk and just replaces placeholders with "python" and ".py" for Windows, an empty string for other platforms.
Thanks for this project.
if you add .py to the PATHEXT environment variable, you can run .py files without the extension from the command line.
Does this work in KomodoIDE 5.x?
Thanks for all your hard work.