Webodm: Unable to make migrations for new model

Created on 17 Dec 2017  路  3Comments  路  Source: OpenDroneMap/WebODM

How did you install WebODM? (Docker, natively, ...)?

Docker

What's your browser and operating system? (Copy/paste the output of https://www.whatismybrowser.com/)

Firefox 57 on windows 10

What is the problem?

Unable to migrate new model in development environment

What should be the expected behavior?

Need help in migrating models

How can we reproduce this? (What steps did you do to trigger the problem? What parameters are you using for processing? If possible please include a copy of your dataset uploaded on Google Drive or Dropbox. Be detailed)

I am currently running webodm in development environment. I added a new model in app but I am unable to migrate the model. Screenshot attached below.

image

image

I did run python manage.py makemigrations.
image

question

All 3 comments

You are running the makemigrations command from your host environment, which is not going to work (you need to run the command within the webodm_webapp docker container).

Or more simply, just recreate the container:

./webodm.sh down && ./devenv.sh start

Thanks a lot. I did try to recreate the container using above command still the changes were not reflected in the database not sure why. So I ran the migration command inside the docker container which solved my problem.

I would also like to know if I should post issues here or somewhere else for better communication as I am a bit new to development environment and often have some questions or queries.

If there's a bug, this is the best place to report it. If it's more of a question, the forum at http://community.opendronemap.org/c/webodm is probably the better place. 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Pratyush1991 picture Pratyush1991  路  3Comments

dawonn-haval picture dawonn-haval  路  3Comments

ivanmalo picture ivanmalo  路  4Comments

cwitting picture cwitting  路  3Comments

pierotofy picture pierotofy  路  6Comments