28 thoughts on “Deploying Django to a server – Django Web Development with Python p.12

  1. incase someone else could not get TinyMCE to work
    try installing his version 1.7.3
    worked for me after trying everything possible

    code:
    python3 -m pip uninstall django django-tinymce4-lite
    python3 -m pip install django "django-tinymce4-lite~=1.7.3"

  2. Here is a little mistake in your mysite.conf file.
    " Alias /static/ /var/www/mysite/media/" – it should be Alias /media/ /var/www/mysite/media/
    Otherwise your cannot retrieve media files when you set your project in production mode i.e DEBUG = False. Hope it will help someone!

  3. Hi, In the tinymce editor, image uploading from a local machine is not working?? Can anyone tell me why it is happening and what code do I need to add in the existing tinymce configuration code.

  4. Tim, can I run the Apache Server and the test website (mysite) in a Ubuntu Virtual Window on a Win 10 machine (i.e. not in a linode or other cloud server)? What changes do I need to make to your scripts to run it there?
    Also, can this Django Apache Server deployment process work in a Raspberry Pi 4 (2GB) located on the same local network? Thanks.

  5. Getting a good error of "no module named django" inside the logs of apache2 with apache2 server. Wasn't this supposed to happen on windows? what the actual fuck. Apache2 server can not load the site-packages. I can run it manually but no luck with apache at all

  6. HI! If I'm developing in Windows, what's the best environment, a linux VM, linux subsystem, or Docker? Other alternatives? What's the best way to develop with Django. This to avoid production issues.

  7. hey man, im getting [error 13 ] permission denied, everytime i try uploading a file. I already added MEDIA_URL = '/media/' and MEDIA_ROOT='/var/www/website/media/' in my settings.py and granted all access in website.conf. Perhaps, few lines of codes should be added to wsgi.py, idk. Any soutions? Thanks!

  8. I have a request. I want to know how to use a CDN or maybe if it's possible another instance on the same server to serve the media files, since Django docs say that the way Django does it is zero efficient and probably unsafe (can't find that bit right now).

    Thanks a ton. You are one of the funniest tutors out there. 🙂

  9. Good tutorials, did learn alot with you, would like to see some showing how you use multiple apps in the same site, would you create a new app, create new modules? And then use import in the main app?

  10. Hello, guys! Sentdex rules!))) Great videos without being bored to death like it happens all the time with other teachers – this teacher knows how to get our attention. Unfortunately Linode sucks – they charge you 100% even when your VPS are down for few months – they get it for "SAVING OUR DATA" – expensive saving mode indeed!!! When you made few attempts and decided to return to it later you need to pay for it all the down time. It is so sad to be fooled like that and to pay for services you do not use. (((((((((((((((((((((((((((((

Leave a Reply

Your email address will not be published. Required fields are marked *