On Thu, Aug 28, 2008 at 8:27 AM, PENPEN <[EMAIL PROTECTED]> wrote:
> I have a question on the site concept.
> While reading the source code, I found that there is the site related
> statement in django.contrib.auth.views.login:
>
>    if Site._meta.installed:
>        current_site = Site.objects.get_current()
>    else:
>        current_site = RequestSite(request)
>
> I'm not clear about "Site._meta.installed". I tried in my project, and
> found it is already True. But I could not find a way to toggle its
> value. Could anybody explain how this variable is assigned?

It's already set probably because INSTALLED_APPS includes
'django.contrib.sites' by default.

More info:
http://docs.djangoproject.com/en/dev/ref/contrib/sites/

Ronny

--~--~---------~--~----~------------~-------~--~----~
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