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 !
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.
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
That's correct. I just went through the steps to deploy to PythonAnywhere in this video but you should definitely make sure your app is production ready!
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.
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
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.
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.
Ok I got it. I set up my database in settings.py like so: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': '$, 'USER': '', 'PASSWORD': '', 'HOST': 'user.mysql.pythonanywhere-services.com', } } and after I deleted all of my migrations in app folder. and py manage.py makemigrations py manage.py migrate OK Done :S
How to change API endpoints while deploying to public when localhost is there in endpoints , eg : 120.x.x.x:8000/to-dos , how to change this when deploying ? Won't it affect the end point for get and post ? Pls help anyone ;
This is a quick start that gets you up and running with PythonAnywhere. Could you elaborate on what I might be missing so others can benefit? Simply commenting that this is a bad tutorial without specifying what is incorrect is not very helpful.
@@BenjaminCarlson first of all thank you man ... The problem is that the project also contain three blogs which is not shown on this site but my local server is showing that part .. you can check it on my git hub repo link - github.com/Ramakant849/First-blog once again thanks for help ...
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 !
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.
The best tutorial, ever! Thanks!
Thanks!
You are amazing @Benjamin. Thanks a lot for very a clear and logical explanation. Just wow
Appreciate it!
Same. So glad I found this vid, explained simply/clearly what many other YTers couldn't do. Keep it up!
You are the best! The allowed host thing worked for me. I was about to give up on it. Thank you so much!
Great to hear!
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
I cannot use admin after deployment please help
Great tutorial.
One suggestion though: You shouldn't have DEBUG=True in production.
That's correct. I just went through the steps to deploy to PythonAnywhere in this video but you should definitely make sure your app is production ready!
@@BenjaminCarlson What should I do to make my app production ready?
I can't host my django file in Pythonanywhere. Please help me 🙏
What error are you getting?
@@BenjaminCarlson okay now I host my django website on pythonanywhere. Thank you 😊
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.
Same here...
This link works for me: benjamincarlson.pythonanywhere.com/
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
You just have to run the makemigrations command first!
@@BenjaminCarlson I have done that but still I am getting same error, please help me I am not able to move forward because of this error
how to change branch from main to master in dashboard?
Very helpful video brother 🤙❤️
Thanks for this video
My pleasure
Thank's bro your video help allot for me.
thank bro 👍👍🙌🙌
static file doesn't load even after configuring it although you didn't cover that, feels like a wasted time watching this.
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.
Good Job brother👍🏻
GOLD VIDEO!
It says Error: That port is already in use.
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.
I don't have a env files, ıs that a problem ?
Like Your Video, it worked Thanks
This Usl didn't work at all, what is it that is
Nice explanation. It is possible to backup and restore the mysql database with free tier if possible how to do.
How to use external database
I can't see my running migrations section like that 9:17
Why please help
Ok I got it. I set up my database in settings.py like so:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': '$,
'USER': '',
'PASSWORD': '',
'HOST': 'user.mysql.pythonanywhere-services.com',
}
}
and after I deleted all of my migrations in app folder.
and
py manage.py makemigrations
py manage.py migrate
OK Done :S
Glad you were able to figure it out!
@@BenjaminCarlson Thanks you helped out me really much
How to change API endpoints while deploying to public when localhost is there in endpoints , eg : 120.x.x.x:8000/to-dos , how to change this when deploying ? Won't it affect the end point for get and post ? Pls help anyone ;
Don't put 127..../todos in urls.py
Keep it relative for eg /todos
thanks
Can anyone please help me.
Good :)
You are missing so many things which is gonna make followers in trouble later.
This is a quick start that gets you up and running with PythonAnywhere. Could you elaborate on what I might be missing so others can benefit? Simply commenting that this is a bad tutorial without specifying what is incorrect is not very helpful.
Hello sir. Please help 🙏
bro my html part is not working ... arahul.pythonanywhere.com /it will be great if you can help
I went to the link and it looks like everything is loading correctly (no errors in console). What exactly is the part you are having a problem with?
@@BenjaminCarlson first of all thank you man ... The problem is that the project also contain three blogs which is not shown on this site but my local server is showing that part .. you can check it on my git hub repo link - github.com/Ramakant849/First-blog once again thanks for help ...
I got this Error code: Unhandled Exception :(
Could you provide the rest of the error and what step you were on?
@@BenjaminCarlson thanks for replying, it was a database ( sqlite3 ) error, i googled for a few hours and found a solution to it.
Glad you were able to fix it!
@@truedarkness1337 I am facing the same problem. how did you solve it? could you provide me with a link to the solution?
@@BenjaminCarlson hi, same problem here, googled it but I cannot solve it yet
thanks