sreekanth
sreekanth

Reputation: 1371

'module' object has no attribute 'form_for_model'

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

Upvotes: 0

Views: 1323

Answers (1)

arie
arie

Reputation: 18982

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/

Upvotes: 1

Related Questions