Sorry on that..
No i have not imported smsnotification.forms in the smsnotification model.
i have from smsnotifications.forms import SmsNotificationForm in the views
I further tried to import the smsnotifications.forms import SmsNotificationForm in the django shell it worked okey.
but importing views " from smsnotifications import views"
i get
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "apps/smsnotifications/views.py", line 51, in <module>
from smsnotifications.forms import SmsNotificationForm
ImportError: No module named forms
but commenting the import of SmsNotificationForm and coding the form directly to the views works okey..
I further try to removed all other imports..except for from smsnotifications.forms import SmsNotificationForm
and reduce all the veiw function to pass
ie
def index(request):
pass
just to see if the import will work and i still get the error..
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment