Things to watch out for when migrating with Django

A memorandum for myself & for those who are addicted to the same thing.

Conclusion

Migration is not possible unless manage.py and the app directory are in the same hierarchy

Addictive background

--The root directory name and the project name were the same --I started app in the project directory, and manage.py and the app hierarchy are different.

Details of the error that occurred

ModuleNotFoundError: No module named 'app directory name'

NG directory structure

├.vscode
├ project directory
└ app directory
├venv
└manage.py

OK directory structure

├.vscode
├ project directory
├ app directory
├venv
└manage.py

Looking back, it's too rudimentary, but I'll contribute because it doesn't fit into the same thing.

Recommended Posts

Things to watch out for when migrating with Django
Things to watch out for when using default arguments in Python
Things to watch out for when naming dynamic routing in nuxt.js
Things to watch out for when creating a Python environment on a Mac
Things to do when you start developing with Django
Watch out for randint
When you want to filter with Django REST framework
How to handle static files when deploying to production with Django
How to resolve CSRF Protection when using AngularJS with Django
Things to keep in mind when using cgi with python.
Common html to rent with Django
How to get started with Django
Commands for creating SNS with Django
How to authenticate with Django Part 2
How to authenticate with Django Part 3
[Tips] How to do template extends when creating HTML with django
Things to keep in mind when converting row vectors to column vectors with ndarray
Error due to UnicodeDecodeError when reading CSV file with Python [For beginners]
How to do arithmetic with Django template
Step notes to get started with django
Memo to ask for KPI with python
Solution for errors when deploying to Heroku
Searching for properties to start with TensorFlow-Part 1
2015-03-25 python> Multi-line comment> Watch out for indent
Memorandum of Understanding when migrating with GORM
An example of cloudbuild.yaml when auto-deploying Django to App Engine with Cloud Build
Three things I was addicted to when using Python and MySQL with Docker
Things to keep in mind when using Python for those who use MATLAB
The easiest way to get started with Django
[Django] How to resolve errors when installing mysqlclient
How to develop a cart app with Django
Watch out for the return value of __len__
How to deal with SessionNotCreatedException when using Selenium
Create a dashboard for Network devices with Django!
Django with Python Tools 2.2 for Visual Studio (PTVS 2.2)
How to implement "named_scope" of RubyOnRails with Django
Materials to read when getting started with Python
A story that required preparation when trying to do a Django tutorial with plain centos7
[Python] I want to use only index when looping a list with a for statement
When I try to install mysqlclient with Django, I get error: command'gcc' failed with exit status 1.
Things to keep in mind when building automation tools for the manufacturing floor in Python