SITE_ID or no SITE_ID, that is the question.

2018-12-12 Thread Ira Abbott
. Depending the package and approach (derivation versus replacement) this can also involve porting data. My current dilemma involves mixing allauth (oath) (supports site_by_request) and dbtemplates (requires SITE_ID). Is there an 'accepted practice for handling this situation? Certainly

Re: SITE_ID

2014-02-05 Thread Adam Hurwitz
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

Re: Django Sites set current domain to site_id

2013-08-27 Thread Mike Dewhirst
data from the set site_id in settings How can i change the site_id based on the incomming domain so if i visit trough domain1.com it should set the site_id to the id of domein1.com in the database , not the set site_id in settings. How do i do this? You need to have all the various domains

Re: Django Sites set current domain to site_id

2013-08-27 Thread Mike Dewhirst
On 28/08/2013 4:01am, Gerd Koetje wrote: Hi all, I got a django application that is called by difrant domains for the same code (some minor changes for each domain) When i visit my application trough domain1.com or domain2.com its keep outputting data from the set site_id in settings How can

Django Sites set current domain to site_id

2013-08-27 Thread Gerd Koetje
Hi all, I got a django application that is called by difrant domains for the same code (some minor changes for each domain) When i visit my application trough domain1.com or domain2.com its keep outputting data from the set site_id in settings How can i change the site_id based

Re: Missing 'SITE_ID' breaks first Django app

2012-07-08 Thread Thomas Orozco
What is kills the whole app supposed to mean? Just pulling this out of thin air, but do you have a record in your database (sites) that corresponds to your SITE_ID setting (when you add it) Le 6 juil. 2012 13:43, "Melvyn Sopacua" <m.r.sopa...@gmail.com> a écrit : > On 6-7-

Re: Missing 'SITE_ID' breaks first Django app

2012-07-06 Thread Melvyn Sopacua
On 6-7-2012 7:38, DF wrote: > Hi. I just delayed my first Django app via Heroku and I'm having an issue > that's proving very difficult to resolve. I have django-registration and > profiles installed and apparently something runs afoul unless the > 'django.contrib.sites',

Missing 'SITE_ID' breaks first Django app

2012-07-05 Thread DF
Hi. I just delayed my first Django app via Heroku and I'm having an issue that's proving very difficult to resolve. I have django-registration and profiles installed and apparently something runs afoul unless the 'django.contrib.sites', and SITE_ID is removed from settings (this wasn't

Re: SITE_ID

2010-09-28 Thread Benedict Verheyen
ebsite 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. >>> >>>

Re: SITE_ID

2010-09-27 Thread Tim Sawyer
e 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 ach

Re: SITE_ID

2010-09-27 Thread Benedict Verheyen
nsider 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 settin

Re: SITE_ID

2010-09-25 Thread Tim Sawyer
, 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

Re: SITE_ID

2010-09-25 Thread werefr0g
Hello, I searched the web for your error message and found that maybe you should see at INSTALLED_APPS level [1]. Regards, [1] http://www.pubbs.net/200908/django/40799-django-sites-framework.html -- You received this message because you are subscribed to the Google Groups "Django users"

Re: SITE_ID

2010-09-25 Thread Max Countryman
Have you set SITE_ID in your settings.py file and run 'python manage.py syncdb'? On Sep 25, 2010, at 10:59 AM, craphunter wrote: > Yes, I have read it, but I don't really get it. What ist the meaning? > What do I have to do?! > > Craphunter > > On 25 Sep., 16:50, c

Re: SITE_ID

2010-09-25 Thread craphunter
Yes, I have read it, but I don't really get it. What ist the meaning? What do I have to do?! Craphunter On 25 Sep., 16:50, craphunter <craphun...@yahoo.de> wrote: > Hey, > > I do have problem with SITE_ID. I don't really get this. What is it? > > I am using the django regist

Re: SITE_ID

2010-09-25 Thread craphunter
gt; Hey, > > > I do have problem with SITE_ID. I don't really get this. What is it? > > > I am using the django registration from bitbucker. When I click on > > register I get the following error-message: > > > You're using the Django "sites framework" without

Re: SITE_ID

2010-09-25 Thread Max Countryman
http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#site-id On Sep 25, 2010, at 10:50 AM, craphunter wrote: > Hey, > > I do have problem with SITE_ID. I don't really get this. What is it? > > I am using the django registration from bitbucker. When I click on &

SITE_ID

2010-09-25 Thread craphunter
Hey, I do have problem with SITE_ID. I don't really get this. What is it? I am using the django registration from bitbucker. When I click on register I get the following error-message: You're using the Django "sites framework" without having set the SITE_ID setting. Create a si

SITE_ID Set Incorrectly and Ignored by get_current()

2008-04-29 Thread Szaijan
I'm not quite sure what I'm doing wrong here. Using the Sites framework, I have a site defined in my database with ID = 2. In the manage.py shell, I can get the correct site by setting SITE_ID to '2' or 2, and calling Site.objects.get(id=SITE_ID), but Site.objects.get_current() always returns

freecomment site_id

2007-11-25 Thread [EMAIL PROTECTED]
i did notice when i compared the admin added comment with the other comments was that the site_id was different. The comments added by my detail page have an id of '1', but checking the db again, none of my sites added have that id. The comment added in the admin, has an id matching that of a site

Setting SITE_ID dynamically

2006-10-16 Thread Afternoon
of this on top of the standard sites framework without great modification. One thing I do need to do is modify settings.SITE_ID at runtime. The domain name is found in request.META["HTTP_HOST"] and the SITE_ID is looked-up from that. I've created a trivially simple middleware to do this an