On 7/31/06, Parthan SR <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Am trying out my first hands with Django and was following the tutorial
> given in the documentation. I have created a project and in the settings.py
> file, as it is said in the tutorial, there is no default installed apps. It
> is like...
>
> INSTALLED_APPS = (
> )

How do you create your project, using: django-admin.py startproject
XXX? If you did like this, the settings.py should include default
apps.

>
> The tutorial says the following will be found by default in this section.
>
>         * django.contrib.auth -- An authentication system.
>         * django.contrib.contenttypes -- A framework for content types.
>         * django.contrib.sessions -- A session framework.
>         * django.contrib.sites -- A framework for managing multiple sites
> with one Django installation.
>
> Can I add these manually before doing a "syncdb"?

Yes. And you can also modify the settings.py as you change the
project, and rerun the syncdb command.

> Do I have to make any changes anywhere to get the samething working ?

Maybe you don't need.

> If I can edit the settings.py manually adding these 4 default things as said, 
> how do the
> settings.py need to be, ie what is the format to add these entries into the
> INSTALLED_APPS section ?

Of course you can add them manually. And there are string fromat, just
like python module. But you should write them just like these:

'yourprojectname.appname1',
'yourprojectname.appname2',

And you can also write them other formats, as long as django can
import them. For example:

'yourprojectname.apps.appname1'

or

'apps.appname1'  # and you should add apps' parent directory to
PYTHONPATH, so as django can import them correctly.
>



-- 
I like python!
My Blog: http://www.donews.net/limodou
My Django Site: http://www.djangocn.org
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to