On Jun 27, 1:26 pm, Allen Machary <allen.mach...@gmail.com> wrote: > Hi All, > i have a problem in import problem. in importing forms.py in views.py > here are my files both located in smsnotifications app > -- smsnotifications/forms.py > from django.forms import ModelForm > from smsnotifications.models import SmsNotification > class SmsNotificationForm(ModelForm): > class Meta: > model = SmsNotification > exclude = ('modified','created',)
Not sure why you needed to post 200 lines of commented-out code, but never mind. The thing you didn't post, which would have been useful, is the actual traceback. My only guess is that there is a circular dependency somewhere - are you importing smsnotifcations.forms inside smsnotifcations.models, by any chance? -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.