Skip to content

Instantly share code, notes, and snippets.

@axilleas
Created December 22, 2012 09:49
Show Gist options
  • Save axilleas/4358288 to your computer and use it in GitHub Desktop.
Save axilleas/4358288 to your computer and use it in GitHub Desktop.
--- _django.org 2012-06-16 23:48:07.256319726 +0900
+++ .compfunc/_django 2012-06-16 23:55:32.556331127 +0900
@@ -31,7 +31,6 @@
"cleanup:remove old data from the database"
"compilemessages:compile .po files to .mo for use with gettext"
"createcachetable:creates table for SQL cache backend"
- "createsuperuser:create a superuser"
"dbshell:run command-line client for the current database"
"diffsettings:display differences between the current settings and Django defaults"
"dumpdata:output contents of database as a fixture"
@@ -52,6 +51,7 @@
"sqlreset:print the DROP TABLE and CREATE TABLE statements for the given app(s)"
"sqlsequencereset:print the SQL statements for resetting sequences for the given app(s)"
"startapp:create Django app directory in this project's directory"
+ "startproject:Creates a Django project directory structure"
"syncdb:create database tables for apps in INSTALLED_APPS where required"
"test:run the test suite for the specified app, or the entire site"
"testserver:run a development server with data from the given fixture(s)"
@@ -117,14 +117,6 @@
args+=':tablename:'
;;
- createsuperuser)
- args+=(
- $noinput
- '--username[username for the superuser]:username'
- '--email[email address for the superuser]:email'
- )
- ;;
-
dumpdata)
args+=(
'--format=:format:(xml python json yaml):[serialization format for the fixtures]'
@@ -174,6 +166,10 @@
args+=':new_appname:'
;;
+ startproject)
+ args+=':new_projectname:'
+ ;;
+
syncdb)
args+=(
$verbosity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment