3 ms·
Does anybody have any reference to the scaffolding features? This might be the first I've heard of it. Yeah, see https://docs.djangoproject.com/en/1.4/ref/djan
by jacobian 15y ago
Does anybody have any reference to the scaffolding features? This might be the first I've heard of it.
Yeah, see https://docs.djangoproject.com/en/1.4/ref/django-admin/#django-admin-startapp https://docs.djangoproject.com/en/1.4/ref/django-admin/#djan... and https://docs.djangoproject.com/en/1.4/ref/django-admin/#django-admin-startproject https://docs.djangoproject.com/en/1.4/ref/django-admin/#djan....
It's really very simple: you just create a directory of files and point startproject/startapp to that directory with the --template flag. Files are copied over into the new app/project, with some simple replacements for things like the project name.
You can check out Django's source for the built-in one, or if you poke around on Github you'll find some others. Here's one, for example: https://github.com/amccloud/django-project-skel/ https://github.com/amccloud/django-project-skel/.