Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Document importance of Site setting in install docs

Also, document the meaning of the "document" parameter in Letter models.
  • Loading branch information...
commit 300c3ab67ae9350619f221a61caa0c169dbc05b2 1 parent d0dae1d
@yourcelf authored
View
11 docs/installation.rst
@@ -169,7 +169,7 @@ After running that script, there will be a single admin user with username
"admin" and password "admin". This can be changed in the Django admin site by
navigating to ``http://localhost:8000/admin/``.
-8. Run the dev server!
+7. Run the dev server!
----------------------
Django ships with a built-in devserver. You can run this directly::
@@ -182,3 +182,12 @@ To also auto-compile coffeescript and sass sources, and run the celery deamon, u
./fromage.py
+8. Set the site name in admin
+-----------------------------
+
+In order to download documents as PDF's, you'll need to set the 'Site' object
+so that it isn't the default (unless ``example.com`` resolves as you :)).
+
+To do this, navigate to the admin site: ``http://localhost:8000/admin/``.
+Click ``Sites``, and change the default site to a URL that will resolve
+(probably ``localhost:8000``).
View
4 scanblog/correspondence/generate.py
@@ -118,7 +118,9 @@ def first_post_letter(letter):
'letter': letter
})
)
- # First post, if any
+ # First post, if any. First post uses a dynamic document rather than the
+ # letter.document field, so that if a document is ever removed/unpublished,
+ # we get the updated "first post" on printout.
try:
document = Document.objects.filter(status="published", type="post",
author__pk=letter.recipient.pk).order_by('date_written')[0]
View
2  scanblog/example.settings.py
@@ -38,7 +38,7 @@
# http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=Gentium_download
# Be sure to change this to the exact location
-TEXT_IMAGE_FONT = "/usr/share/fonts/truetype/ttf-sil-gentium/GenR102.ttf"
+TEXT_IMAGE_FONT = "/usr/share/fonts/truetype/gentium/GenR102.ttf"
# You'll want to change these as needed...
NICE_CMD = "/usr/bin/nice"
Please sign in to comment.
Something went wrong with that request. Please try again.