Go Live with Django and Heroku for Free | Python-Django Deployment Tutorial

preview_player
Показать описание
Go Live with Django and Heroku | Python-Django Deployment Tutorial

Bring your Django project live with this step-by-step series. BONUS: Add HTTPs (security) to your site for just $7/mo with Heroku.

-----

Amazing Starts Small. Learn to build great products with code.

-----

My equipment:
Рекомендации по теме
Комментарии
Автор

Like most programming, more learning is usually done with errors/troubleshooting. Your channel is becoming a favourite as I delve into Django...

madusan
Автор

Honestly I cannot thank you enough. Been developing my site for six months, worrying about going live. Everything worked in one day - this tutorial, along with all of your other videos, are amazing and have helped me immensely. Quick note for fellow europeans: you have to add --region eu when creating the project! Again, thank you!

williamkarlsson
Автор

Whenever I use "heroku open" command I get a Application error from heroku.
Also, when I'm trying to open my project locally, it is giving me an error as "This site can't provide secure connection". In spite of having HOST_SCHEME set to "http://".

divyavishwakarma
Автор

Thanks for the updates, Justin! I've been following your tutorials on your CFE website, on Udemy, and here on YouTube for a few years now.

navymiguelito
Автор

Hey there, I wanted to use the free Postgres Database provided by Heroku. However I end up with the following error:

cannot cast type time without time zone to integer
LINE 1: ... COLUMN "read_time" TYPE integer USING "read_time"::integer,

I actually don't see any operation using the integer of timezone in the corresponding models.py where its only usage is confirmed...

Thanks in advance for your help!

gutzbenj
Автор

i get error:
python: can't open file 'manage.py': [Errno 2] No such file or directory

mrtrader
Автор

Could you please tell me why I am getting relation “auth_permission” does not exist error while migrating on heroku?? In local env I am using sqlite, but in heroku I am using psql. Psql url is set in the env variable and psql settings are getting updated as you have mentioned in your production settings.. but I am unable to figure out what exactly problem is.

ayush
Автор

additional information you can use heroku-django and it will set up everything like database and allowed_hosts.


Some people might hate this kind of videos but for me they are just perfect, thank you so much.

whilelab
Автор

need help, i have " INTERNAL SERVER ERROR" when i access my heroku site, but only when DEBUG = False, when DEBUG = True everything is fine. when i check the logs i see:
ModuleNotFoundError: No module named 'views'. God knows i have done exactly like in the tutorial. please help!
Thanks

pandasworld
Автор

I set my database up using the addon provided by heroku. I have dj_database_url in my requirements.txt and set up in my production file yet I get the error:

could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?

Any ideas?

links
Автор

If you are using windows cmd and having issues at: heroku open; try to rewrite your Procfile like this:
web: gunicorn maKla.wsgi --log-file -
run the necessary commits and reopen heroku from cmd.

JonesDTaylor
Автор

I am using django version 2. Is there any difference in codes for that? please relpy.

edwinrapheal
Автор

hi justin..your explanation is great..i follow your videos on udemy and youtube mostly... just deployed a website to live. its showing in my browser but when i open through my friend laptop or mobile it is showing like hacking website and we cant open the site. i am new to to this. Can you tell me what improvements need to be done to make more live and can open in any laptop or mobile?

_justsiva_
Автор

i had Bad Request (400) when write heroku open? What's error and how i can solv it?

ayatsamir
Автор

name 'SECURE_FRAME_DENY' is not defined
i got this what is the problem can you please

blckdaisy
Автор

Hello, please help, how to do it better, write yourself or use the library? If you yourself can write permissible registration and verification, etc? Suppose the client does not need what is in that library, or look at the situfiation? You can learn from you how you do, write everything yourself, that is, 1 wrote and use your own everywhere, or libraries?

ThePirateHistory
Автор

people keep on telling me that PHP is dead because it's super complicated and unreadable. Well if the deployment process takes this much step i dont see the point of me moving from PHP to Python Django. Granted that i do find it easier to code in django than php, but Can you explain to me why i have to do all of this just to deploy a website when i can just upload index.php to any web host and it works?

yaykaboom
Автор

Thanks Justin for this Heroku and Trydjango1.11 video. I did all the changes that you did until 24:02 mins. and when I'm running my server by "python manage.py runserver" in cmd in directory of "src", I'm getting an error in cmd i.e., " You're accessing the development server over HTTPS, but it only supports HTTP." What should I do? Plz help me.

hrishigg
Автор

Have you ever deployed a django with zappa into aws lamdba ? Let me know if you do a tutorial. Thank you

ahut
Автор

except for images do i use s3 fot js, css files?

ΚωνσταντίνοςΚαλόφωνος
visit shbcf.ru