I`m writing a simple extension of django-admin.py/manage.py so I can
have a predefined set of configurations and use those when I create a
new project or reusable app. For instance, I use sqlite3 in the
initial stage of development so that should be set automatically. My
name doesn`t change that often, same for me email. Those things should
go into the settings.py by default. And when I create reusable apps I
don`t want to bother with setting hardcoded links in settings.py to my
template-folder in settings.py either.

So what I`m thinking of is an extension of manage.py, let`s call it
"lime" for now, an executable script, working something like this:

1. All my default values; name, email, django settings that doesn`t
change much are stored in a config file in my home directory like
~/.lime/config.ini
2. When I call "lime app blog" the result is:

* a folder with a package called blog, a complete reusable django app
( I use the standard django code to generate the app itself )
* a setup.py with my name, email, package info, basics requirements -
all ready for pypi uploading and distribution
* a test-project to test my reusable app, configured to use that app
and find the templates and static content automatically without adding
hardcoded paths to the settings.py of the test-project and an admin
inteface enabled by default
* a virtualenv for my test-project
* code revision files for files to ignore etc
* <your input comes here>

The goal is to quickly create a standardized, complete and distribute-
friendly layout for a reusable app and to cut down on the manual,
repetetive typing. I`m also planning to support different configs so
calling something like "lime app blog --config postgresql" will use a
config specifying the app to use a config called postgresql instead of
the default.

So what are your thoughts? And what is a good layout for a reusable
app? What else could be automated in django development?

My main motivation for this project came when I started working on a
plugin for the Editra editor for django management. I wanted to create
django reusable apps from inside the editor and I saw that a lot of
the initial work on a new app is very repetetive - first create
project, then create app, then edit settings.py, then urls.py to
enable admin, then edit views.py to enable admin etc. I want to have a
configurable standard layout for my apps created in very few steps,
from within Editra and outside the editor as well.

Thanks for your attention and hope to hear some of your ideas or
thoughts.

Regards,
Thomas

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to