the manage.py startapp actually does very little. just a folder and a
"couple" of empty files.

if you want to have an apps folder, just create one. if your main
project folder is MyProject, just go to MyProject and:
mkdir apps (or if you are in windows, just use what you always use)

under MyProject/apps you need a __init__.py if you want python to treat
that folder as module

then, when you are in apps. just do a startapp polls like you always
do.

don't forget to put the correct path in INSTALLED APPS

MyProject.apps.polls (for example)

or when doing imports:
from MyProject.apps.polls.models import whatever

cheers, ash




On Jan 21, 8:28 pm, "johnny" <[EMAIL PROTECTED]> wrote:
> Does django create apps folder for you, so you can create weblogs,
> forums inside it?
> I tried using python manage.py startapp polls, but it doesn't create
> apps folder.  It creates polls in the current folder "mysite/polls",
> not "mysite/apps/polls".
>
> How do I get an apps folder to contain forums, news, blogs ?  Do I
> first create a folder called apps, and inside the folder I execute the
> following:
> python manage.py startapp polls
>
> When you execute the above code, it creates polls, on which ever the
> current folder is.


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to