Skip to content

Commit

Permalink
Merge pull request klen#7 from SoftwareMaven/django_1.5
Browse files Browse the repository at this point in the history
Update to support Django 1.5.
  • Loading branch information
klen committed Dec 14, 2012
2 parents e186db7 + b639fb7 commit 1129dc0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion django_markdown/templates/django_markdown/preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="stylesheet" type="text/css" href="{% firstof STATIC_URL MEDIA_URL %}django_markdown/preview.css" />
</head>
<body>
{{ params.content|markdown }}
{{ content|markdown }}
</body>
</html>

2 changes: 1 addition & 1 deletion django_markdown/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.conf.urls.defaults import url, patterns
from django.conf.urls import patterns, url

from django_markdown.views import preview

Expand Down
4 changes: 2 additions & 2 deletions django_markdown/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.views.generic.simple import direct_to_template
from django.shortcuts import render


def preview(request):
return direct_to_template(
return render(
request, 'django_markdown/preview.html',
content=request.REQUEST.get('data', 'No content posted'))

0 comments on commit 1129dc0

Please sign in to comment.