Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

register feedback form #5

Open
ghost opened this issue Jul 26, 2012 · 9 comments
Open

register feedback form #5

ghost opened this issue Jul 26, 2012 · 9 comments

Comments

@ghost
Copy link

ghost commented Jul 26, 2012

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
Copy link
Contributor

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

@ghost
Copy link
Author

ghost commented Jul 26, 2012

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
Copy link
Contributor

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

@ghost
Copy link
Author

ghost commented Jul 26, 2012

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

@ghost
Copy link
Author

ghost commented Jul 26, 2012

name of module and path...

@ghost
Copy link
Author

ghost commented Jul 30, 2012

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
Copy link
Contributor

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

@ghost
Copy link
Author

ghost commented Aug 2, 2012

ImportError: No module named OrderForm

@summerisgone
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant