summaryrefslogtreecommitdiff
path: root/app/builder
diff options
context:
space:
mode:
Diffstat (limited to 'app/builder')
-rw-r--r--app/builder/base.py5
-rw-r--r--app/builder/views.py2
2 files changed, 5 insertions, 2 deletions
diff --git a/app/builder/base.py b/app/builder/base.py
index fabea6e..04a92ce 100644
--- a/app/builder/base.py
+++ b/app/builder/base.py
@@ -1,6 +1,7 @@
import os
from math import ceil
from decimal import Decimal
+from django.contrib.sites.models import Site
from django.test.client import Client
from django.template.loader import render_to_string
from django.template import Context
@@ -33,7 +34,9 @@ class _FileWriter(object):
class BuildNew():
- def __init__(self, model, app):
+
+ def __init__(self, model, app, site=1):
+ self.site = Site.objects.get(domain=site)
self.model = apps.get_model(model, app)
self.get_model_queryset()
self.client = Client()
diff --git a/app/builder/views.py b/app/builder/views.py
index 97ca30a..7804630 100644
--- a/app/builder/views.py
+++ b/app/builder/views.py
@@ -37,7 +37,7 @@ def do_build(request):
BuildGuide("posts", "post").build()
elif section == 'pages':
context = {'message': 'Writing Pages to Disk'}
- BuildPages("pages", "page").build()
+ BuildPages("pages", "page", 'luxagraf.net').build()
elif section == 'fieldnotes':
context = {'message': 'Writing FieldNotes to Disk'}
BuildFieldNotes("posts", "post").build()