summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/builder/base.py11
-rw-r--r--app/notes/models.py2
2 files changed, 7 insertions, 6 deletions
diff --git a/app/builder/base.py b/app/builder/base.py
index bde3a33..c77d358 100644
--- a/app/builder/base.py
+++ b/app/builder/base.py
@@ -72,10 +72,11 @@ class BuildWriting(Build):
for entry in qs:
c = Context({'object': entry, 'MEDIA_URL': settings.BAKED_MEDIA_URL, 'IMAGES_URL': settings.BAKED_IMAGES_URL})
t = render_to_string('details/entry.html', c).encode('utf-8')
- path = '%s/%s/' % (entry.pub_date.strftime("%Y/%b/%d").lower(), entry.slug)
- self.write_file(path, t)
- s = render_to_string('details/entry.txt', c).encode('utf-8')
- self.write_file(path, s, 'txt')
+ path = '/%s/' %(entry.pub_date.strftime("%Y/%m").lower())
+ slug = '%s' %(entry.slug)
+ self.write_file(path, t, 'html', slug)
+ s = render_to_string('details/entry.txt',c).encode('utf-8')
+ self.write_file(path, s,'txt', slug)
def build_writing_archives(self):
qs = self.get_model_querset()
@@ -123,7 +124,7 @@ class BuildWriting(Build):
c = Context({'type': 'monthly', 'date': '%s %s' % (
month_full_name, year), 'object_list': qs, })
t = render_to_string('archives/writing_date.html', c).encode('utf-8')
- fpath = '%s/%s/' % (year, month_name)
+ fpath = '%s/%s/' % (year, month)
self.write_file(fpath, t)
def build_homepage(self):
diff --git a/app/notes/models.py b/app/notes/models.py
index 6d139f0..818a139 100644
--- a/app/notes/models.py
+++ b/app/notes/models.py
@@ -116,7 +116,7 @@ def post_save_events(sender, instance, **kwargs):
instance.city_name = adr.get('hamlet') or adr.get('village') or adr.get('town') or adr.get('city')
instance.state_name = adr.get('state')
instance.country_name = adr.get('country')
- if instance.in_reply_to:
+ #if instance.in_reply_to:
#crawl url, extract text, store it locally with a reference to instance
pass
if instance.twitter_send and not instance.twitter_sent: