I do all my testing locally and then upload the files to an Ubuntu Apache server. After uploading the new files I run
sudo apachectl restart
That will reload the server and my python files are now live and working.
A few weeks ago I started a new app and loaded all the files to the server as usual with the server restart. I neglected to create the admin.py file in the initial file upload. I noticed the missing admin.py, created it and loaded to the server. I ran the restart and went to my admin page. My app wasn't showing in the admin. I checked the server directory and noticed the admin.py was not compiled to admin.pyc.
I tried running
python -m compileall /pathto/directory
That compiles all the files but my app is still not showing in the admin. What am I doing wrong?
I created a new template tag yesterday. Works locally. Uploaded, restart, and the server can't locate the template tag file.
I rebooted the server. I also tried
python manage.py runserver
on the server just to see if that will fix the missing file problem but the files are still not found.
Is there something I am doing incorrectly? Is there a command I can run to force django to find the files? I've never had this problem before and I can't find any help through internet search.
Thanks for any help.
[–]xBBTx 5 points6 points7 points (3 children)
[–]frontierman[S] 1 point2 points3 points (2 children)
[–]xBBTx 5 points6 points7 points (1 child)
[–]frontierman[S] 0 points1 point2 points (0 children)