i try to generate BlogPostForm in blog\forms.py as html form but output 
show a error

>>> f.as_table
<bound method BlogPostForm.as_table of <mezzanine.blog.forms.BlogPostForm 
object
 at 0x035FAB30>>
>>>

>>> f.as_table()
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File 
"C:\Users\DC\Documents\newProject\env\lib\site-packages\django\forms\form
s.py", line 257, in as_table
    errors_on_separate_row=False)
  File 
"C:\Users\DC\Documents\newProject\env\lib\site-packages\django\forms\form
s.py", line 219, in _html_output
    'field': six.text_type(bf),
  File 
"C:\Users\DC\Documents\newProject\env\lib\site-packages\django\forms\form
s.py", line 508, in __str__
    return self.as_widget()
  File 
"C:\Users\DC\Documents\newProject\env\lib\site-packages\django\forms\form
s.py", line 560, in as_widget
    return force_text(widget.render(name, self.value(), attrs=attrs))
  File 
"C:\Users\DC\Documents\newProject\env\lib\site-packages\filebrowser_safe\
fields.py", line 50, in render
    fullpath = os.path.join(get_directory(), directory)
  File 
"C:\Users\DC\Documents\newProject\env\lib\site-packages\filebrowser_safe\
functions.py", line 35, in get_directory
    if not default_storage.isdir(fullpath):
  File 
"C:\Users\DC\Documents\newProject\env\lib\site-packages\django\utils\func
tional.py", line 225, in inner
    return func(self._wrapped, *args)
AttributeError: 'FileSystemStorage' object has no attribute 'isdir'
>>>


how to print BlogPostForm correctly?

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to