django-sites Questions
6
Solved
I am trying to work with Sites Model of Django.
I dont quite understand why SITE_ID should be SITE_ID = 1.
in the docs:
The ID, as an integer, of the current site in the django_site database
table...
Maxima asked 24/8, 2014 at 4:58
13
Solved
I'm going through the standard Django tutorial to create an admin for an app. After commenting the admin related stuff in settings and running syncdb I'm getting this message:
DoesNotExist at /adm...
Demarcate asked 13/7, 2012 at 18:27
6
Solved
I've been working with a Django app for a while, and the Django admin interface works great, except that the "View on site" link doesn't work. Whenever I try to use it, I get an OperationalError wi...
Irishirishism asked 26/5, 2009 at 17:48
5
Solved
I have a Django project for a simple blog/forum website I’m building.
I’m using the syndication feed framework, which seems to generate the URLs for items in the feed using the domain of the curre...
Claustral asked 5/9, 2012 at 20:20
3
Solved
Before Django 1.7, when using the Django Sites Framework one could/should define the initial data using Initial Fixtures.
myproject/fixtures/initial_data.json
[
{
"pk": 1,
"model&...
Consolation asked 30/9, 2014 at 18:40
1
Is it possible to use Django allauth with the authentication method set to 'email' when using it on multiple sites?
I'm aiming to allow a user with the email address [email protected] to crea...
Centennial asked 6/4, 2018 at 12:20
3
Solved
after switching from sqlite to postgres for local dev db, I am unable to run migrations for my app.
Several fixes and approaches I've attempted have not resolved (ex: Django: relation "djang...
Fredra asked 19/1, 2018 at 17:22
2
Solved
I have defined multiple sites as the documentation of the Site Framework suggested.
I understand that if I would run mulitple instances of my application with each of them having a different setti...
Launceston asked 30/1, 2017 at 11:30
1
The admin.py is as follows :-
class SiteDetailInline(admin.TabularInline):
model = SiteDetail
form = SiteDetailForm
fields = ('name', )
can_delete = False
extra = 1
max_num = 1
def get_re...
Pitapat asked 30/6, 2014 at 11:16
2
Solved
I'm trying to simply get the current Site from within a template for parsing like so:
<h3>{{ site.name }}</h3>
Unfortunately, this isn't bringing anything up.
Is there a way to get...
Emanative asked 19/9, 2011 at 5:9
2
Solved
I want to serve a Django application that serves multiple web sites by single database but different user sets. Think like a blog application, it will be used by several domains with different them...
Marybellemarybeth asked 12/11, 2014 at 23:36
1
Solved
I have created a Django proyect with 20 sites (one different domain per site) for 20 different countries. The sites share everything: codebase, database, urls, templates, etc.
The only thing they ...
Walkway asked 7/7, 2012 at 15:53
3
Solved
i want to populate django_site table when i run after syncdb initially
how can i do that
i have one site only
Bibliopole asked 14/10, 2010 at 14:19
3
Solved
I need split my current Django application into two sites.
Site A will contain the public facing site which would contain all the static pages and the registration system.
The other site — Site...
Inez asked 7/9, 2011 at 13:16
1
Solved
I maintain a Django webapp for a client of mine. We built it out in Django and for computer users, it's great. We now want to cater to mobile device users.
On top of a template switch, we also nee...
Concavity asked 16/6, 2011 at 10:7
3
Solved
Django has the sites framework to support multiple web site hosting from a single Django installation.
EDIT (below is an incorrect assumption of the system)
I understand that middleware sets t...
Pycno asked 8/2, 2010 at 17:58
3
Solved
I am building a Django site framework which will power several independent sites, all using the same apps but with their own templates. I plan to accomplish this by using multiple settings-files an...
Inerasable asked 10/9, 2009 at 8:46
1
© 2022 - 2024 — McMap. All rights reserved.