Skip to content

Commit 2e23f77

Browse files
authored
Merge pull request #88 from jchen-eb/url
Add option to pass a URL explicitly instead of reading from settings
2 parents e33781f + b3826c1 commit 2e23f77

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

react/render_server.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ def __unicode__(self):
2121

2222

2323
class RenderServer(object):
24-
def render(self, path, props=None, to_static_markup=False, request_headers=None, timeout=None):
25-
url = conf.settings.RENDER_URL
24+
def render(self, path, props=None, to_static_markup=False, request_headers=None, timeout=None, url=None):
25+
if not url:
26+
url = conf.settings.RENDER_URL
2627

2728
if props is not None:
2829
serialized_props = json.dumps(props, cls=JSONEncoder)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy