/DjangoCommands

ST2/ST3 plugin for managing django project

Primary LanguagePython

DjangoCommands for ST2/ST3

This tool is a Sublime Text wrapper around django manage.py commands.

With it you can run django commands like Django: Run Server, Django: Sync Database, Django: Migrate from Command Palette.

You can also run Django: Custom Command to access other manage.py commands. Try Django: Help and you will get full list of commands provided by each application.

Currently tested on Windows 7/8, Mac OS, Ubuntu.

Installation

Package Control

The easiest way to install this is with Package Control.

  • If you just went and installed Package Control, you probably need to restart Sublime Text before doing this next bit.
  • Bring up the Command Palette (Command+Shift+p on OS X, Control+Shift+p on Linux/Windows).
  • Select "Package Control: Install Package" (it'll take a few seconds)
  • Select Django Manage Commands when the list appears.

Package Control will automatically keep plugin up to date with the latest version.

Use

Commands

Currently supports following commands:

Django:

  • Django: Run Server
  • Django: Sync Database
  • Django: Test
  • Django: Test All
  • Django: Shell
  • Django: Custom Command
  • Django: Check
  • Django: Help

South:

  • Django: Migrate Database
  • Django: Schema Migration
  • Django: List Migrations

Settings

  • python_bin: path to python interpreter
  • python_virtualenv_paths: list of paths where virtualenvs are located (ex:~/.virtualenvs/)

Virtual Environment:

  • Django: Set Virtual Environment
  • Django: Terminal Here
  • Django: Pip Freeze