.
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?
Cert
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.s
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
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
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 on the
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" a écrit :
> On 6-7-2012 7:38, DF wrote:
>
> &
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.con
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 settin
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.
>>>
>>
e 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 ca
t; 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 set
2.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 ar
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" gr
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.,
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 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 b
> > 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 ha
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
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. C
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_curr
, either increment the count or show the comment.
What 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.
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 and it
21 matches
Mail list logo