Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

MEDUSA_URL_PREFIX, and exception handling + logging fixes when running in multiprocessing #13

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
de23099
Add support for rendering with a URL prefix
hyperair Jan 14, 2014
2360905
Call Renderer.get_paths() before set_script_prefix
hyperair Jan 14, 2014
d2644f8
Reduce chunksize to 1 when using multiprocessing
hyperair Feb 17, 2014
378adc9
Reduce chunksize to 1 for other renderers as well, not just disk
hyperair Feb 18, 2014
e75e35b
Handle cases when MEDUSA_URL_PREFIX isn't set
hyperair Feb 20, 2014
507503b
Move batch-processing/generate logic into BaseStaticSiteRenderer
hyperair Feb 20, 2014
f9a90c1
Move some of the render_path() logic into BaseStaticSiteRenderer
hyperair Feb 21, 2014
4b820ed
Factor directory index file name derivation into separate method
hyperair Feb 24, 2014
270347e
Move _s3_render_path into S3StaticSiteRenderer.render_path
hyperair Feb 26, 2014
276caa8
Move _gae_render_path into GAEStaticSiteRenderer
hyperair Feb 26, 2014
2c80b88
Fix up typo in variable name
hyperair Feb 26, 2014
fc3bd4b
Initialize BaseStaticSiteRenderer.client to None
hyperair Feb 26, 2014
6d5eac3
Fix missing import of os
hyperair Feb 26, 2014
5c78ff1
Fix NameError: global name 'mime' is not defined
hyperair Feb 27, 2014
41a04df
Fix missing mimetypes import
hyperair Feb 27, 2014
af569b0
Fix missing mimetype name in appengine.py
hyperair Feb 27, 2014
dba06d6
Forward render_path return values so they can be properly reaped by .…
hyperair Feb 27, 2014
0e99a28
Use QueueHandler from logutils when logging in a multiprocessing context
hyperair Feb 28, 2014
1027477
Move all log setup code into separate submodule
hyperair Mar 3, 2014
73def02
Replace all print-based logging with proper logging calls
hyperair Mar 3, 2014
30c9379
Don't use super() with logging.Handler
hyperair Mar 3, 2014
65d6154
Fix finalize_logger handling
hyperair Mar 3, 2014
9e3f795
Initialize and finalize logger on BaseStaticSiteRenderer
hyperair Mar 4, 2014
13851b7
Use logger in get_static_renderers for logging
hyperair Mar 6, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Handle cases when MEDUSA_URL_PREFIX isn't set
  • Loading branch information
hyperair committed Oct 28, 2015

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
commit e75e35bd7ffb44b8f5c5a5d674a15c6c366f84ac
2 changes: 1 addition & 1 deletion django_medusa/management/commands/staticsitegen.py
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ def handle(self, *args, **options):
renderer.paths

# Set script prefix here
url_prefix = getattr(settings, 'MEDUSA_URL_PREFIX')
url_prefix = getattr(settings, 'MEDUSA_URL_PREFIX', None)
if url_prefix is not None:
set_script_prefix(url_prefix)