On 3/20/06, Jaanus <[EMAIL PROTECTED]> wrote: > > hmm.. and just as I wrote this, I noticed the Django demo page on that > Linux host says... > > "Start your first app by running trmproject/manage.py startapp > [appname]." > > After I did it, the new app showed up right in the project's directory, > without "apps". So in one host it is with "apps" and in another it's > not. What's the logic behind that? At least I got it to work for myself > but would be good to know... >
In a directory, if you run manage.py startapp appname It'll setup a app named appname in current directory, but not apps directory. So if you want to create a new app in apps directory, you should go into apps directory, and run the django-admin.py. Or create the app manually it easy. cd apps mkdir appname cd appname >__init__.py that's ok. If you need models.py: >models.py if you need urls.py >urls.py if you need views.py >views.py >filename represents create a empty file, and you can copy code from existed files to it. -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---