Questions tagged [django-sites]

django-sites is a framework for associating objects and functionality to particular Web sites. Is used when a single Django instance power more than one site.

django-sites is a framework for associating objects and functionality to particular Web sites. Is used when a single Django instance power more than one site.

119 questions
0
votes
1 answer

Django CMS site permissions to plugins

I have site and several subdomains. Like www.example.com, www.is.example.com, www.cs.example.com. Also users which can administrate this sites. Each user can administrate several sites. I want that each site have own permissions to plugins. How I…
0
votes
1 answer

How to make a Django admin changelist just show instances for current site

I have a Model that I want to only link to one site. I'll use the documentation example: from django.db import models from django.contrib.sites.models import Site class Article(models.Model): # ... site = models.ForeignKey(Site) But in the…
Oli
  • 235,628
  • 64
  • 220
  • 299
0
votes
1 answer

Should I use the FQDN as the "domain" in Django's sites framework?

I have a website where any request to the non-www domain i.e. http://example.com is redirected (with status 301) to http://www.example.com by the server. If I'm using Django's sites framework, should I set the domain as example.com or…
user4150760
  • 2,739
  • 5
  • 18
  • 25
0
votes
1 answer

I cannot see the icons from django-sitetree

I cannot see the icons from admin/sitetree.. must be a url problem.. I cannot figure out. I need some help please.
Young
  • 969
  • 1
  • 8
  • 18
0
votes
1 answer

Show all model instances regardless of site in django admin

I've enabled the sites framework (including the middleware) and setup two sites (ID=1 and ID=2). One of my models uses a foreign key to Site. For arguments sake, lets say it looks like this class Person(models.Model): name =…
BoomShaka
  • 1,571
  • 7
  • 27
  • 40
0
votes
1 answer

One admin for multiple sites

I have two sites with different SITE_IDs, but I want to have only one admin interface for both sites. I have a model, which is just an extended FlatPage: # models.py class SFlatPage(FlatPage): currobjects = CurrentSiteManager('sites') …
Valentin Golev
  • 9,965
  • 10
  • 60
  • 84
0
votes
1 answer

Django redirects app with development site

I have a Django application that exists with complete functionality in both a development and production environment. This is handled by just changing ALLOWED_HOSTS appropriately (assuming you don't want to DEBUG) and setting up Apache to serve each…
Jmills
  • 2,414
  • 2
  • 19
  • 22
0
votes
2 answers

Issue with Sites system in Django

I have an issue with the Sites system in Django. My problem is when running Site.objects.get_current() on some pages on initial load of the development server I get an exception saying Site matching query does not exist. however if I load the main…
icebox3d
  • 449
  • 7
  • 17
0
votes
1 answer

How does Django build URLs that depend on a site?

I am trying to find out how does Django build URLs, especially those that depend on multiple sites. Where does Django build URLs and how is the site domain prepended to the user defined URL patterns? Basically, I have several Django CMS pages and…
linkyndy
  • 17,038
  • 20
  • 114
  • 194
0
votes
1 answer

Django multisites for local development, advice on structure and workflow

I want to have 2 separate sites: The sites need to share users (users can create content for either site and log into either site) The sites will share some models (ie blog) but no content created via these models (each piece of content created via…
rix
  • 10,104
  • 14
  • 65
  • 92
0
votes
1 answer

Django sites framework, creating primary and slave logic for sensitive urls

I have two Django web apps that use the same database and modules, my issue is, I want one of the websites to act as primary site "A" (e.g. for secure authentication, as only site A will be under the https scheme, mind you "B" is under a subdomain…
RabbitInAHole
  • 551
  • 1
  • 4
  • 13
0
votes
2 answers

Django-CMS 2.4 pages with SITE_ID 2 only found if you're logged in

I have two sites using Django-CMS. They use the same code and the same database, with the SITE_ID distinguishing them. On the site with SITE_ID = 1, all is fine. On the site with SITE_ID = 2, some pages that I publish (using the admin panel) can…
Racing Tadpole
  • 4,270
  • 6
  • 37
  • 56
0
votes
1 answer

Can I put one django site inside of another?

I started develop two sites separately, but now I need to merge them (so http://site1.com/site2) points to site2 (which has a separate settings.py). I could probably refactor the code and make site2 an app of site1, but I suspect there is an easy…
CuriousMind
  • 15,168
  • 20
  • 82
  • 120
0
votes
1 answer

django site name needs to match domain name registered?

I am new to django framework. I created a site with name "project" and it is working on local machine. Now, I am trying to move on to my test server ("ideometrics.se)". I created a subdomain ("project.ideometrics.se") to access this application from…
dotnetrocks
  • 2,589
  • 12
  • 36
  • 55
1 2 3 4 5 6 7
8