0

When I am using attribute

form_for_model

I am getting an error module object has not attribute form_for_model..

I created the project from this http://www.mikecantelon.com/?q=node/22

but I am getting the above can any body help me

1
  • Thanx for the reply I create the project from mikecantelon.com/?q=node/22 but it is showing this error,can u help me out Commented May 13, 2011 at 6:33

1 Answer 1

1

The post you are referring to is fairly old (2007) and a few things have changed since then: form_for_model is deprecated.

I'd say you are better off looking at the official tutorial to get started with django.

The current way for creating forms based on models is explained in this part of the docs: http://docs.djangoproject.com/en/1.8/topics/forms/modelforms/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.