django-simple-feedback icon indicating copy to clipboard operation
django-simple-feedback copied to clipboard

register feedback form

Open ghost opened this issue 13 years ago • 9 comments

http://illucent.info/contact/

ImproperlyConfigured at /contact/ Form not registered in FEEDBACK_FORMS though settings.py has FEEDBACK_FORMS = { 'default': 'feedback.forms.FeedbackForm', 'order': 'itsme.custom_feedback.forms.OrderForm', }

ghost avatar Jul 26 '12 11:07 ghost

Sorry, it's an error in documentation. Try to use {% show_feedback 'order' %} in your template.

summerisgone avatar Jul 26 '12 12:07 summerisgone

corrected this raised another one ImproperlyConfigured at /contact/ Error importing can not import feedback form illucent.custom_feedback.forms.OrderForm: "No module named custom_feedback.forms"

how should i call this module ? illucent.redsolutioncms.django_simple_feedback.forms.OrderForm ?

ghost avatar Jul 26 '12 13:07 ghost

Do you have illucent.custom_feedback.forms module? FEEDBACK_FORMS accepts full import path to form class.

summerisgone avatar Jul 26 '12 16:07 summerisgone

/nfs/http7/illucent/modules/redsolutioncms.django_simple_feedback-0.3.8-py2.6.egg

ghost avatar Jul 26 '12 16:07 ghost

name of module and path...

ghost avatar Jul 26 '12 16:07 ghost

i've thought in settings.py i should assign FEEDBACK_FORMS = { 'default': 'feedback.forms.FeedbackForm', 'custom': 'illucent.custom_feedback.forms.OrderForm', } " 'custom': 'illucent.custom_feedback.forms.OrderForm'," -- "illucent" is the name of the project

ghost avatar Jul 30 '12 19:07 ghost

Is OrderForm class can be imported from manage.py shell?

summerisgone avatar Aug 02 '12 14:08 summerisgone

ImportError: No module named OrderForm

ghost avatar Aug 02 '12 14:08 ghost

Form class should be importable. Correct errors and set FEEDBACK_FORMS dictionary value to importable class. For example, if you form lives in illucent/custom_feedback/forms.py and class name is CutomForm, FEEDBACK_FORMS should look like that:

FEEDBACK_FORMS = {
'default': 'feedback.forms.FeedbackForm',
'order': 'illucent.custom_feedback.forms.CutomForm',
}

summerisgone avatar Aug 02 '12 17:08 summerisgone