What does "makemigrations available for development purposes only" mean?

878 views
Skip to first unread message

Feng Xia

unread,
Aug 26, 2021, 9:06:16 AM8/26/21
to NetBox
Hi,

Hope someone has insight and workaround for this.

We are developing a new plugin following the doc. The code is built to a Docker image. Plugin code is outside the `/netbox` folder, and will be mounted into `/netbox/<my plugin>` folder using Docker-compose volume. 

Once the docker is up, I need to run "makemigrations" then "migrate" to initialize DB for my application. That's when I hit this message:

```
CommandError: This command is available for development purposes only. It will
NOT resolve any issues with missing or unapplied migrations. For assistance,
please post to the NetBox mailing list:
```
So, what does this mean? Why? and how should I create migrations and migrate for my plugin? Please advise.

Best,
feng

Feng Xia

unread,
Aug 26, 2021, 3:10:09 PM8/26/21
to NetBox
Answering my own question above.

Set `DEVELOPER=True` in `configuration.py`, and `makemigrations` will work as normal.

Reply all
Reply to author
Forward
0 new messages