Deploying a Django project on PythonAnywhere
1. Git
1-1. Add .gitignore in the base directory
.gitignore in the base directory*.pyc
*~
/.vscode
__pycache__
myvenv
db.sqlite3
/static
.DS_Store
*.swp
*.swo1-2. Push your code to GitHub
$ git add .
$ git commit -m "Initial commit"
$ git push origin master2. PythonAnywhere
2-1. Start a "Bash" console on PythonAnywhere Dashboard
2-2. Clone your git repo
2-3. Create a virtual environment
2-4. Create a database
2-5. Add a new web app
2-6. Virtualenv configurations
2-7. WSGI configuration file
3. You are now live!
Last updated