In this video we deploy Django to PythonAnywhere. The first step is to commit your Django project to GitHub. Then, register for a PythonAnywhere account if you don't have one. Open a new bash console and write the following commands:
In bash console:
git clone https://github.com/bjcarlson42/django...
mkvirtualenv --python=/usr/bin/python3.8 mysite-virtualenv
pip install django
Then, we will create a new web app. Make sure to click 'manual configuration' and follow the instructions in the video! Next, we need to update the WSGI file. Be sure to click save and refresh. Back in the bash console, run ./manage.py migrate in the level of your project that has manage.py, just like you would do on your local machine. Finally, update your settings.py file and add your domain to the allowed hosts.
Congratulations on successfully deploying your Django application to PythonAnywhere!
Links mentioned in video:
Docs: https://help.pythonanywhere.com/pages...
PythonAnywhere: https://www.pythonanywhere.com/
My example code: https://github.com/bjcarlson42/django...
My example site: http://benjamincarlson.pythonanywhere...
Deploying Django playlist: • Playlist
My Coding Gear:
⌨️ Keyboard - Apple Magic Keyboard - https://amzn.to/3g8A8QI
💻 Laptop - Apple MacBook Pro (2018 / 15 inch) - https://amzn.to/3wddJHL
🖥️ Monitor - Samsung CF390 Series - https://amzn.to/3pDc9fO
My Camera Gear:
📹 Camera - Canon EOS M50 - https://amzn.to/3ixAZfq
🔭 Awesome Camera Lens - Sigma (16mm / f1.4) - https://amzn.to/3pH1K2B
🎤 Microphone - Blue Yeti - https://amzn.to/2TdXLyq
💡 Lights - Neewer LED Lights - https://amzn.to/3gbm6ht
My Favorite Software:
📽️ Final Cut Pro - https://www.apple.com/final-cut-pro/
❗ Student Discount For FCP - https://www.apple.com/us-hed/shop/pro...
🚀 VSCode - https://code.visualstudio.com/
View All My Gear - https://benjamincarlson.io/gear
Support Me:
👨🏼💼 Join this channel to get access to perks - / @benjamincarlson
💸 Sponsor me on GitHub - https://github.com/sponsors/bjcarlson42
Who Am I?
I’m Benjamin Carlson, a developer, student, and YouTube creator living in CT, USA. I make videos on programming, computer science, and productivity. I also started a programming tutorial website called Coffeeclass (https://coffeeclass.io) that complements this YouTube channel. Finally, I have a newsletter (https://buttondown.email/benjamincarlson) where I send out updates on my recent videos, writing, and anything I’m currently working on or find interesting. You can expect emails every 2 to 3 weeks.
Connect With Me:
📧 Email - ben@carlsontechnologies.dev
🚅 Website - https://benjamincarlson.io
🐦 Twitter - / bjmncrlsn
🚀 Github: https://github.com/bjcarlson42
💼 LinkedIn - / bjcarlson42
✍️ Medium - / benjamincarlson
📓 Newsletter - https://buttondown.email/benjamincarlson
If you need to contact me, the best way is email. I try to respond to everyone but it may take some time!
Disclaimer: Some of the above links are affiliate links. This means I may receive a small commission at no expense to you. This allows me to continue to post videos like this one!
#django #pythonanywhere
Nesta página do site você pode assistir ao vídeo on-line Deploy Django Website To PythonAnywhere duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Benjamin Carlson 19 Setembro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 37,663 vezes e gostou 599 espectadores. Boa visualização!