Deploy Django Website To PythonAnywhere

preview_player
Показать описание
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:
mkvirtualenv --python=/usr/bin/python3.8 mysite-virtualenv
pip install django

Congratulations on successfully deploying your Django application to PythonAnywhere!

Links mentioned in video:

My Coding Gear:

My Camera Gear:

My Favorite Software:

Support Me:

Who Am I?

Connect With Me:

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
Рекомендации по теме
Комментарии
Автор

Thank you Benjamin! Awesome step by step tutorial. I literally spent 5 hours struggling with heroku and did nothing. This took me only 20 mins. Thanks again !

gocepaunov
Автор

I have been looking for videos making on python anywhere and Django deploys on it. This is the right and easy video tutorial to host your Django app so far.
Thank you so much.

ahmadsharifkhannoor
Автор

You are amazing @Benjamin. Thanks a lot for very a clear and logical explanation. Just wow

a.rahman
Автор

You are the best! The allowed host thing worked for me. I was about to give up on it. Thank you so much!

shreyasingh
Автор

In settings py. Line 23 secret key and line 26 debug True. It says that it should not be displayed as true in production.
Can I delete those 2 lines? Or already delete them before in the github?
I mean theres a reason why its a Secret Key :p
Please tell me if you know.
Thanks

tigreonice
Автор

Very helpful video brother 🤙❤️
Thanks for this video

rinkeshranpariya
Автор

Thank's bro your video help allot for me.

nileshdeore
Автор

I can't host my django file in Pythonanywhere. Please help me 🙏

AKSH_DESAI
Автор

Great tutorial.
One suggestion though: You shouldn't have DEBUG=True in production.

bluecodes
Автор

how to change branch from main to master in dashboard?

recourse
Автор

I cannot use admin after deployment please help

utkarshsharma
Автор

There was an error loading your PythonAnywhere-hosted site. There may be a bug in your code.

Error code: Unhandled Exception


im getting this error while loading the page. please help me.

sivakumarchodavarapu
Автор

Thank you for your clearly guiding video. I have problem with virtualenv. I have two virtual env - one from the project and the other created in pythonanywhere bash console. It lead to conflicting python version and cause uploading the image entry on admin page error of PIL error message. And I saw you have virtual env of your project from GitHub repo too and also you created another in the pythonanywhere bash console too.

reksmeyok
Автор

Nice explanation. It is possible to backup and restore the mysql database with free tier if possible how to do.

muruganraja
Автор

After running "./manage.py migrate" I am getting this error :- """"Your models in app(s): 'Portal' have changes that are not yet reflected in a migration, and so won't be applied.
Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.""""
Please help as soon as possible

surbhityagi
Автор

I don't have a env files, ıs that a problem ?

ylrmali
Автор

For anyone getting "Something went wrong :-(" error message on the web page. In my case the path inside wsgi file should not have '/mysite' at the end of the path variable. I removed it and then the website worked. I think this was due to finding 'settings.py' file.

minihohtis
Автор

I can't see my running migrations section like that 9:17
Why please help

enes
Автор

It says Error: That port is already in use.

Автор

This Usl didn't work at all, what is it that is

pineforest