diff options
author | luxagraf <sng@luxagraf.net> | 2020-11-17 16:31:44 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-11-17 16:31:44 -0500 |
commit | bcb8a8e367c308e89204a287fc9c531fe97c5035 (patch) | |
tree | 0b40b9783f7a80a8bb1658457c2d2d68ba7627d1 | |
parent | b359e5b0ac136da51c08069a24ec4f727597247e (diff) |
fixed a bug in src build
-rw-r--r-- | app/builder/base.py | 3 | ||||
-rw-r--r-- | app/posts/views/src_views.py | 4 | ||||
-rw-r--r-- | design/templates/admin/index.html | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/app/builder/base.py b/app/builder/base.py index 7b99c58..532deea 100644 --- a/app/builder/base.py +++ b/app/builder/base.py @@ -37,7 +37,7 @@ class _FileWriter(object): class BuildNew(): - def __init__(self, model, app, site=1): + def __init__(self, model, app, site='luxagraf.net'): self.site = Site.objects.get(domain=site) self.model = apps.get_model(model, app) self.get_model_queryset() @@ -381,7 +381,6 @@ class BuildProjects(Build): js = leaflet_providers_js + natparks_js self.write_file('media/js/', js.encode('utf-8'), 'js', 'natparks') - class BuildSitemap(Build): def build(self): c = Client() diff --git a/app/posts/views/src_views.py b/app/posts/views/src_views.py index 5265707..990088f 100644 --- a/app/posts/views/src_views.py +++ b/app/posts/views/src_views.py @@ -33,11 +33,11 @@ class SrcDetailView(DetailView): class SrcDetailViewTXT(SrcDetailView): - template_name = "jrnl/entry_detail.txt" + template_name = "posts/jrnl_detail.txt" class TopicListView(ListView): - template_name = 'src/topic_list.html' + template_name = 'posts/topic_list.html' def get_queryset(self): return Post.objects.filter(topics__slug=self.kwargs['slug'],post_type=PostType.SRC) diff --git a/design/templates/admin/index.html b/design/templates/admin/index.html index 4264ef2..3514138 100644 --- a/design/templates/admin/index.html +++ b/design/templates/admin/index.html @@ -169,6 +169,6 @@ td, th { {% endblock %} {% block adminembed %} <div class="flex-right"> -<iframe style="border:none;width:98%;height: 40%" src="https://awstats.luxagraf.net/cgi-bin/awstats.pl?config=luxagraf.net&framename=mainright"></iframe> + <!--<iframe style="border:none;width:98%;height: 40%" src="https://awstats.luxagraf.net/cgi-bin/awstats.pl?config=luxagraf.net&framename=mainright"></iframe>--> </div> {% endblock %} |