ad-lebedev / DjangoCommands

ST2/ST3 plugin for managing django project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DjangoCommands for ST3

###The best tool for your django development.

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.

Or you can choose to use Django: Other Command to list and run all commands available to manage.py

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

Everything tested and running!

  • Virtualenv support
  • Django boilerplate
  • Install your dependencies
  • Install new pip packages
  • Open and search in django documentation from the editor
  • Create new projects from ST
  • Start new apps
  • Run custom servers
  • PostgreSQL specific features snippets
  • And More!

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: New Project
  • Django: New App
  • Django: Run Server
  • Django: Run Custom Server
  • Django: Boilerplate
  • Django: Sync Database
  • Django: Test
  • Django: Test All
  • Django: Shell
  • Django: DB Shell
  • Django: Custom Command
  • Django: Other Command
  • Django: Check
  • Django: Help
  • Django: Open Docs
  • Django: Search in Docs
  • Django: Use Default Interpreter
  • Django: Make Migration
  • Django: SQLMigration
  • Django: Migrate Database
  • Django: Initial Schema Migration
  • Django: Schema Migration
  • Django: List Migrations
  • Django: Click

Virtual Environment:

  • Django: Set Virtual Environment
  • Django: Terminal Here
  • Django: Pip Freeze
  • Django: Pip Freeze To File
  • Django: Pip Install Packages
  • Django: Pip Install Requirements

Settings

  • python_bin: path to python interpreter

  • python_version : default python interpreter version

  • python_virtualenv_paths: list of paths where virtualenvs are located (ex:~/.virtualenvs/)*

  • server_host: host for the runserver command

  • server_port: port for the server to listen

  • linux_terminal: Only Linux setting for command line emulator

  • project_override: (Boolean) Per project setting "python_interpreter" overrides "python_bin"

  • server_custom_command: Per project setting to specify a custom server to run (ex: {"command": "gunicorn", "args":["--workers=3"]}) use any script you want

It's important to set your envs directories

Check that your 'linux_terminal' setting uses an underscore "_"

Please report any issue, bug, enhacement or comment here

We'll be glad to read and work on all of them

About

ST2/ST3 plugin for managing django project


Languages

Language:Python 74.4%Language:JavaScript 25.6%