mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Start a custom version of startapp.
This commit is contained in:
parent
37303d022e
commit
4ea95c3c16
1 changed files with 8 additions and 0 deletions
|
|
@ -9,3 +9,11 @@ alias pmlf='python manage.py loaddata fixtures/*'
|
||||||
alias gs='gunicorn_django'
|
alias gs='gunicorn_django'
|
||||||
alias gk='kill `cat .gunicorn.pid`'
|
alias gk='kill `cat .gunicorn.pid`'
|
||||||
alias gl='tail -f .gunicorn.log'
|
alias gl='tail -f .gunicorn.log'
|
||||||
|
|
||||||
|
function djapp() {
|
||||||
|
mkdir -p $1/templates/$1
|
||||||
|
touch $1/__init__.py
|
||||||
|
echo "from django.db import models\n\n" > $1/models.py
|
||||||
|
echo "from django.contrib import admin\nfrom $1.models import *\n\n" > $1/admin.py
|
||||||
|
echo "from django.conf.urls.defaults import *\n\n" > $1/urls.py
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue