Simple scripts and templates for scaffolding a basic Django project
-
Download the repository's tarball and extract it to your project's directory
$ mkdir myproject $ cd myproject $ wget https://github.com/vinco/luke/archive/master.tar.gz -O - | tar -xz --strip 1
-
Set your project's name in
evironments.json
,fabfile.py
andprovision/provision.sh
# myproject/environments.json { "vagrant": { "django_settings": "myproject.settings.devel", } }
# myproject/fabfile.py ... # urun('createdb luke -l en_US.UTF-8 -E UTF8 -T template0') urun('createdb myproject -l en_US.UTF-8 -E UTF8 -T template0') ... # urun('dropdb luke') urun('dropdb myproject') ...
# myproject/provision/provision.sh ... # PROJECT_NAME=luke PROJECT_NAME=myproject ...
-
Create the virtual machine
$ vagrant up $ fab environment:vagrant bootstrap
-
Init your repository
$ git init