Thanks Tim, but how does one implement a Site_ID under installed apps in the settings.py file?
INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'blog', Is there anywhere else code needs to be implemented for the site_ID? Thanks, Adam On Saturday, September 25, 2010 9:32:17 AM UTC-7, Tim Sawyer wrote: > > On 25/09/10 15:57, craphunter wrote: > > Yes, I have read it, but I don't really get it. What is the meaning of > > it? > > Consider a website that has multiple blogs, all of which are deployed to > the same database. > > Consider that you want each blog to be a separate URL: www.blog1.com, > www.blog2.com, but you only want one database for ease of backing up etc. > > So, you have one codebase, one database, but multiple sites. > > You can achieve this using SITE_ID. www.blog1.com has a settings.py > with SITE_ID = 1. www.blog2.com has a settings.py file with SITE_ID = > 2. In your database, there are two rows in the django_site database > table, with serials 1 and 2. The table that holds the blog entries has > a foreign key to Site, and so identifies which site the blog post > appears on. > > At least that's how I used it...hope that helps clarify it a bit! > > Tim. > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/84d88a5f-b746-4ec5-8d53-68d8a2c1379a%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.