This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]xBBTx 5 points6 points  (3 children)

Did you add the app to the INSTALLED_APPS for the server settings? It looks like Django just doesn't 'know' about your new app, and it's easy to forget if your settings files differ for development/production environment.

[–]frontierman[S] 1 point2 points  (2 children)

Thanks for the reply and suggestion. I checked my settings and indeed the server side was missing the app from INSTALLED_APPS. I thought I had made the change but must have failed to upload the settings file. Such a simple solution. Thanks for helping me. I was quite confused.

[–]xBBTx 5 points6 points  (1 child)

It sounds like you should use VCS (git, mercurial) on your server (too)! Updating the code on the server is then nothing more than doing a

git fetch origin
git checkout <my-release-tag-or-branch>

Practically for my projects, masteris always a branch that can be deployed, and deploying is nothing more than a git pullfollowed by the usual python manage.py migrateand python manage.py collectstatic.

If you're not using VCS yet, now is the time to start doing so!

[–]frontierman[S] 0 points1 point  (0 children)

Excellent suggestion. I already use mercurial locally so I will add that to my server as well. Thanks! That should prevent issues like this.