Skip to content

Instantly share code, notes, and snippets.

@arruda
Last active December 11, 2015 04:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arruda/4546833 to your computer and use it in GitHub Desktop.
Save arruda/4546833 to your computer and use it in GitHub Desktop.
django-admin.py startproject --template=https://github.com/githubuser/dj_project_templates/blob/master/project_template.tar --extension="md,py" myproject
├── LICENSE
├── manage.py
├── project_name
│   ├── apps
│   │   └── __init__.py
│   ├── __init__.py
│   ├── libs
│   │   ├── html5_boilerplate
│   │   │   ├── __init__.py
│   │   │   ├── README.rst
│   │   │   ├── static
│   │   │   │   ├── apple-touch-icon.png
│   │   │   │   ├── css
│   │   │   │   │   └── h5bp.css
│   │   │   │   ├── favicon.ico
│   │   │   │   └── js
│   │   │   │   ├── libs
│   │   │   │   │   ├── jquery-1.7.1.js
│   │   │   │   │   ├── jquery-1.7.1.min.js
│   │   │   │   │   └── modernizr-2.5.3.min.js
│   │   │   │   └── plugins.js
│   │   │   └── templates
│   │   │   ├── 403.html
│   │   │   ├── 404.html
│   │   │   ├── 500.html
│   │   │   ├── html5-boilerplate.html
│   │   │   ├── humans.txt
│   │   │   └── robots.txt
│   │   ├── __init__.py
│   │   └── user_backends
│   │   ├── email_username.py
│   │   └── __init__.py
│   ├── media
│   ├── scripts
│   │   └── __init__.py
│   ├── settings
│   │   ├── config.py
│   │   ├── env_dev.py
│   │   ├── env_prod.py
│   │   ├── __init__.py
│   │   ├── installed_apps.py
│   │   ├── logging.py
│   │   └── utils.py
│   ├── static
│   │   ├── css
│   │   ├── images
│   │   └── js
│   ├── templates
│   │   ├── index.html
│   │   └── util
│   │   ├── base.html
│   │   ├── float-lateral.html
│   │   ├── footer.html
│   │   ├── header.html
│   │   └── skeleton.html
│   ├── urls.py
│   └── wsgi.py
├── README.md
└── requirements.txt
cat <<EOF >> ~/.bashrc
#django
alias djproj='django-admin.py startproject --template=https://github.com/arruda/dj_project_templates/raw/master/project_template.tar --extension="md,py"'
alias djapp='django-admin.py startapp --template=https://github.com/arruda/dj_project_templates/raw/master/app_template.tar'
EOF
django-admin.py startproject myproject
django-admin.py startproject --template=/Users/arruda/projects/dj_project_templates --extension="md,py" myproject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment