跳转到主要内容

您花费太多时间输入 'python manage.py'。

项目描述

您花费太多时间输入 python manage.py

用法

Django shortcuts安装一个django二进制文件,该文件代理Django的manage.pydjango-admin.py脚本。

$ django <command or shortcut>

$ cd any/project/subdirectory
$ django <command or shortcut>

需求

某些命令需要额外的包

  • South

  • Haystack

  • Django命令扩展

快捷键

# Django
'c'  : 'collectstatic',
'r'  : 'runserver',
'sd' : 'syncdb',
'sp' : 'startproject',
'sa' : 'startapp',
't'  : 'test',

# Shell
'd'  : 'dbshell',
's'  : 'shell',

# Auth
'csu': 'createsuperuser',
'cpw': 'changepassword',

# South
'm'  : 'migrate',
'mm' : 'makemigrations',
'sm' : 'schemamigration',
'dm' : 'datamigration',

# Haystack
'ix' : 'update_index',
'rix': 'rebuild_index',

# Django Extensions
'sk' : 'generate_secret_key',
'rdb': 'reset_db',
'rp' : 'runserver_plus',
'shp': 'shell_plus',
'url': 'show_urls',
'gm' : 'graph_models',
'rs' : 'runscript'

安装

$ pip install django-shortcuts

项目详情


下载文件

下载适用于您的平台文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分布

django-shortcuts-1.6.tar.gz (3.1 kB 查看哈希)

上传时间

由以下支持