redsolution / django-simple-feedback

Simple Django feedback application
http://readthedocs.org/docs/django-simple-feedback/en/latest/
GNU General Public License v3.0
18 stars 13 forks source link

register feedback form #5

Open ghost opened 12 years ago

ghost commented 12 years ago

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', }

summerisgone commented 12 years ago

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

ghost commented 12 years ago

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 ?

summerisgone commented 12 years ago

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

ghost commented 12 years ago

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

ghost commented 12 years ago

name of module and path...

ghost commented 12 years ago

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

summerisgone commented 12 years ago

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

ghost commented 12 years ago

ImportError: No module named OrderForm

summerisgone commented 12 years ago

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',
}