1👍
✅
You need to add __init__.py
to your pages
directory, to make it a “package” in python parlance.
This is a bit of non-obvious behaviour from python. Now you know.
1👍
Could not import testsite.pages.views. Error was: No module named pages.views
You need to make pages
importable. Put an __init__.py
in the pages
directory.
- [Answered ]-Save pillow objects to S3 with django_storages
- [Answered ]-How to Pickle Django Model
- [Answered ]-How to initialize a formset with dynamic number of data entries
- [Answered ]-SECRET_KEY error when pushing django project to heroku
- [Answered ]-Django: sorl-thumbnail image not updated right away because of cache
- [Answered ]-Python: zipping csv buffers
- [Answered ]-How to deal with virtual index in a database table in Django + PostgreSQL
Source:stackexchange.com