Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
5d3d5489
Commit
5d3d5489
authored
Jan 08, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed more bugs with simplewiki template conversion. Now working as they originally were.
parent
1968d520
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
simplewiki/views.py
+0
-24
No files found.
simplewiki/views.py
View file @
5d3d5489
...
...
@@ -21,30 +21,6 @@ import djangomako.middleware
from
mako.template
import
Template
from
mako.lookup
import
TemplateLookup
# def render_to_string(template_name, dictionary, context_instance=None):
# context_instance = context_instance or Context(dictionary)
# # add dictionary to context_instance
# context_instance.update(dictionary or {})
# # collapse context_instance to a single dictionary for mako
# context_dictionary = {}
# for d in context_instance:
# context_dictionary.update(d)
# # fetch and render template
# #template = djangomako.middleware.lookup.get_template(template_name)
# mylookup = TemplateLookup('/Users/bridger/Development/mitx_all/templates/')
# template = Template(filename='/Users/bridger/Development/mitx_all/templates/' + template_name, strict_undefined = True, lookup=mylookup)
# return template.render(**context_dictionary)
#
# def render_to_response(template_name, dictionary, context_instance=None, **kwargs):
# """
# Returns a HttpResponse whose content is filled with the result of calling
# lookup.get_template(args[0]).render with the passed arguments.
# """
# return HttpResponse(render_to_string(template_name, dictionary, context_instance), **kwargs)
from
models
import
*
from
settings
import
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment