Django custom form ImportError even though file is in the same directory
问题 I'm working through Effective Django's tutorial series. I'm currently having an issue trying to create a custom form to use in an app. I created the forms.py file as instructed in this part of the tutorial, and made the alterations to my views.py file. My directory structure looks like this: (project root) | ├── address.db ├── addressbook │ ├── __init__.py │ ├── __pycache__ │ ├── settings.py │ ├── static │ ├── urls.py │ └── wsgi.py ├── contacts │ ├── __init__.py │ ├── admin.py │ ├── forms.py