barseghyanartur / django-fobi

Form generator/builder application for Django done right: customisable, modular, user- and developer- friendly.
https://pypi.python.org/pypi/django-fobi
486 stars 112 forks source link

TypeError at /fobi/forms/create/ #201

Closed hernanfila closed 6 years ago

hernanfila commented 6 years ago

Hi, I am getting next error: render() got an unexpected keyword argument 'renderer'

This is the information I got: Exception Location: | /home/myuser/myEnvironments/my_django_env/lib64/python3.6/site-packages/django/forms/boundfield.py in as_widget, line 93

Python Version: | 3.6.5

my_django_env/lib64/python3.6/site-packages/fobi/templates/fobi/generic/snippets/form_snippet.html, error at line 57

Last part of traceback:

File "/home/myUser/myEnvironments/my_django_env/lib64/python3.6/site-packages/django/forms/boundfield.py" in __str__
  33.         return self.as_widget()

File "/home/myUser/myEnvironments/my_django_env/lib64/python3.6/site-packages/django/forms/boundfield.py" in as_widget
  93.             renderer=self.form.renderer,

Exception Type: TypeError at /fobi/forms/create/
Exception Value: render() got an unexpected keyword argument 'renderer'

Anything else you need please tell me.

Thank you

barseghyanartur commented 6 years ago

@hernanfila:

Which version of django-fobi are you using? It seems much like a duplicate of https://github.com/barseghyanartur/django-fobi/issues/196, which has been fixed some time ago.

hernanfila commented 6 years ago

Hi, django-fobi==0.13.7. It happened with Django 2.1. When I downgraded to Django 2.0.8, the error seems to be gone. However now I have another error: image

I don't want to mess the original issue, but if you could help me I would appreciate it.

Anything you need, I can test it.

hernanfila commented 6 years ago

I uninstalled ckeditor and last error was gone(pip uninstall django-ckeditor) . If you need additional information for the original inquiry, please tell me. I keep using django 2.0.8.

Thanks!

barseghyanartur commented 6 years ago

@hernanfila:

Demo is currently running on Python 3.6, Django 2.1 and django-ckeditor >= 5.6.0.

The full list of demo requirements:

bleach==1.5.0
Django>=2.1,<2.2
SQLAlchemy==0.9.8
dj-database-url==0.5.0
django-postgrespool==0.3.1
gunicorn==19.9.0
psycopg2==2.7.5
whitenoise==4.0
ipython

MarkupSafe
django-fobi==0.13.5
django-admin-tools>=0.8.1
django-autoslug-iplweb
django-ckeditor>=5.6.0
https://github.com/marbont/django-codemirror-widget/archive/12bb692f805c47e5d418ae26be7e190f7138f364.zip
django-formtools>=2.1
django-nine>=0.1.10
django-nonefield>=0.3
django-registration-redux>=2.4
easy-thumbnails>=2.5.0
ordereddict>=1.1
simple-timer>=0.2
vishap>=0.1.5

django-simple-captcha>=0.5.7
mailchimp

django-admin-timeline>=1.6.1

FeinCMS==1.13.6
django-mptt==0.9.1

djangorestframework==3.8.2

Additionally, see the example requirements for Django 2.1.

Since that works, it would be good if you could find out where the problem is. I can't reproduce it locally or on demo.

barseghyanartur commented 6 years ago

@hernanfila:

Did you manage to solve your problem? If so, it would be useful to leave a couple of remarks here (for other folks who might experience similar issues in future).

hernanfila commented 6 years ago

Hi @barseghyanartur, this is what I added in settings.py, and error was gone: SITE_ID= 1. I am not pretty sure why it solved it, but it did it.

Thank you for your follow-up!