I have been working hard lately to figure out as many of the pieces of django as possible, and it occurs to me that the python manage.py startapp script just isn't good enough.
Here's the problem, as I see it: - The startapp script doesn't complete about 80% of the actions necessary to make a basic app - There are eight files (!) that need to be completed/edited for an app to work (admin.py, forms.py, views.py, models.py, index.html, urls.py needs an include, appname/urls.py needs to be made, settings.py needs the app turned on) - Creating a new app is therefore crazy complicated. So, the solution. A script should be written that does the following: - Run the basic startapp process - Add the app to the settings.py file - Create urls.py in the app folder, and put an include in the default urls.py for that file - Create a template folder and put a basic template for it in that folder (perhaps based on a template template) - This template can be filled into the views.py file as a render_to_response. - Create an empty file called forms.py, and fill it in with some standard stuff - Add some standard stuff to the views.py and models.py files as well - Create the admin.py file, and put it in the app folder All of that could be done interactively, of course, so you don't have to create a forms.py file, if you don't want, and you don't have to use the template stuff, if you don't want. Etc. As a newbie, learning about eight different files, and how to edit each of them from scratch is pretty challenging. This might lower the curve. Thoughts? Does this already exist? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---