You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I tried to install this library on Django 1.9 and got such error in admin interface when tried to run preview.
Internal Server Error: /markdown/preview/
Traceback (most recent call last):
File "/home/alexey/Dev/profcom/django-rest-env/lib/python3.4/site-packages/django/core/handlers/base.py", line 149, in get_response
response = self.process_exception_by_middleware(e, request)
File "/home/alexey/Dev/profcom/django-rest-env/lib/python3.4/site-packages/django/core/handlers/base.py", line 147, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/alexey/Dev/profcom/django-rest-env/lib/python3.4/site-packages/django_markdown/views.py", line 22, in preview
content=request.REQUEST.get('data', 'No content posted'),
AttributeError: 'WSGIRequest' object has no attribute 'REQUEST'
[10/Dec/2015 22:14:47] "POST /markdown/preview/ HTTP/1.1" 500 14951
Here is the model code
class Post(models.Model):
name = models.CharField(max_length=50, null=False, primary_key=True) # Name for human-readable url
title = models.CharField(max_length=255, null=False, unique=True) # Human-readable title
text = MarkdownField() # Text in markdown syntax
documents = models.ManyToManyField('Document', blank=True)
commission = models.ForeignKey('Commission', related_name="posts")
pinned = models.BooleanField(default=False) # Should display on main
date = models.DateTimeField(auto_now=True)
image = models.FileField(upload_to='post_tiles', null=True)
Is it compatible with django 1.9?
Thank you in advance!
Hello, I tried to install this library on Django 1.9 and got such error in admin interface when tried to run preview.
Here is the model code
Is it compatible with django 1.9?
Thank you in advance!
Sinclerely, Alexey
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: