blob: 9cfcaa620377a6bdf1385b7735961c11cddc1a3b [file] [log] [blame]
from django.conf import settings
from core.models import Site
def planetstack(request):
allSites = []
for site in Site.objects.all():
allowNewUsers = True # replace with logic for blessing sites for registration, if necessary
allSites.append( {"name": site.name,
"id": site.id,
"allowNewUsers": allowNewUsers} )
return {"DISABLE_MINIDASHBOARD": settings.DISABLE_MINIDASHBOARD,
"sites": allSites}