How To Deploy Django on Ubuntu 21.04 using Apache and MySQL

Поделиться
HTML-код
  • Опубликовано: 28 янв 2025

Комментарии • 36

  • @projectfullstack2156
    @projectfullstack2156  3 года назад +3

    Step 1: Setup Server 0:29
    Step 2: Connect To The Server: 6:39
    Step 3: Apply Software Updates 8:53
    Step 4: Create Directory Structure 11:35
    Step 5: Install PIP & Setup VirtualEnv 15:46
    Step 6: Create Django project 20:54
    Step 7: Install MySQL 25:22
    Step 8: Connect MySQL and Django 29:56
    Step 9: Install and Configure Apache: 37:12
    Step 10: Configuring Static Files 52:42

    • @Freeball99
      @Freeball99 2 года назад

      Pro-Tip....if you copy and paste this Table of Contents to the video description above then this will appear within the video timeline - it will segment your timeline into chapters.

    • @projectfullstack2156
      @projectfullstack2156  2 года назад

      @@Freeball99 amazing. Thank you for that tip!

  • @nehat786
    @nehat786 2 года назад +1

    Sir, you are awesome! You save me. I was struggling to deploy it on AWS for the past 3 days and now I got your videos. Stay blessed sir.

  •  2 года назад

    if anyone encounter virtualenv not writeable problem "virtualenv: error: argument dest: the destination . is not write-able". just switch to root shell using "sudo bash" and then you can easily install virtualenv. btw thank you for such a content, wish people like you could get more attention you helped a lot to me today.

  • @Frank-z4x1c
    @Frank-z4x1c Год назад

    Sir, I take my hat of for you. I am using Ubuntu 22.04.3 LTS, python 3.10.12, mysql 8.0.33, mysqlclient 2.0.3. I tried all kinds of tutorials but it wasn't until I stumbled across your youtube channel when I finally got traction and got it to work. My advice to anybody out there encountering issues: go back to the video, follow the instructions exactly and.... check your spelling..

  •  2 года назад

    the best django&apache video on the internet :fire:

  • @davidortiz3732
    @davidortiz3732 Год назад

    I tried several forums guidelines to setup django with apache and always got stuck; your tutorial was great; I was able to complete the job. I only faced issues receiving 403/Forbidden right after 000-default.conf files is set; after trying several options, I used full path definitions inside this file and it worked. Great Job.

  • @ladislauneto5078
    @ladislauneto5078 8 месяцев назад

    Dude, You saved me. Thank you very much. You did a beautiful job. Helped me a lot. Gratitude

  • @liamlawlliet4294
    @liamlawlliet4294 3 года назад +3

    Dude, this tutorial and the out dated one help me and my project team out sooooooo much. It really helped us to just get the setup done and out of the way. I'm just curious if you could host the Django server on a different device and have apache call to it whenever and receive responses like that.

    • @projectfullstack2156
      @projectfullstack2156  3 года назад +1

      Thanks! You can configure apache as a reverse proxy. I plan on doing a django/docker video covering how to containerize your django app. I'll look into a more complete series of videos that covers some multitier architecture how I normally setup small to medium scale django projects.

  • @mpicuser
    @mpicuser 8 месяцев назад

    Hi, thank you so much for this valuable tutorial. You're amazing!

  • @adamfatyga7977
    @adamfatyga7977 Год назад

    48:09 dosent work. I see on my page "You don't have permission to access this resource." Im try to connect from another computer, not at the same. I use public IP and local, still dosent work.

  • @TryingToLearn289
    @TryingToLearn289 10 месяцев назад

    Very nice tutorial! So if i have multiple urls/domains how do i specify it with the virtual hosts?

  • @farhadmotallebi2890
    @farhadmotallebi2890 Год назад

    its the best video in this field. thank yopu

  • @TienNguyen-xr4se
    @TienNguyen-xr4se 2 года назад

    Thank you so much for your sharing. You are my lifesaver

  • @HernandoRomero-yl7qs
    @HernandoRomero-yl7qs Год назад

    Excellent tutorial!!!

  • @nicko9958
    @nicko9958 Год назад

    18:31 seems like the command doesn't exist anymore on ubuntu 22.04

  • @thomasrenard4908
    @thomasrenard4908 Год назад

    Does this tutoriol works for an Almalinux 8 server too?

  • @FritzGriebler
    @FritzGriebler 6 месяцев назад

    What I will never understand is the fact that even the best here on RUclips always make the same mistake: they try to demonstrate by using extreme speed and keep making typing errors. This always leads to them taking significantly longer than necessary. And we viewers rub our eyes in astonishment and wonder if what is being shown is really that great when the presenter stumbles at every other step. Aside from that: the CONTENT of this video is brilliant. One can benefit greatly from it. Thank you for that!!!

  • @xxxx-zu8ub
    @xxxx-zu8ub 2 года назад

    really good tutorial, helped me much, thx

  • @rhineblueskyson
    @rhineblueskyson 2 года назад +1

    Failed! Error: SET PASSWORD has no significance for user 'root'@'localhost' as the authentication method used doesn't store authentication data in the MySQL server. Please consider using ALTER USER instead if you want to change authentication parameters
    How can I fix it when sudo mysql_secure_installation

  • @krzmaciek6010
    @krzmaciek6010 2 года назад

    Thank you for this video.

  • @untouchedpuppy2389
    @untouchedpuppy2389 2 года назад

    very cool, thank you.❤

  • @FritzGriebler
    @FritzGriebler 6 месяцев назад

    without "apt install pkg-config" i was not able to do a "pip install mysqlclient"

  • @saylijawale8855
    @saylijawale8855 11 месяцев назад

    can you share this ppt ?

  • @MiroslawButajlo
    @MiroslawButajlo 3 года назад

    I have You don't have permission to access this resource.. And what should I do ?

    • @taivan6991
      @taivan6991 2 года назад

      chmod 644 filename

    • @nehat786
      @nehat786 2 года назад

      @@taivan6991 hey mate I am also getting the same error, could you please which file we need to give permission to execute.

  • @loveofjava
    @loveofjava 2 года назад

    UnableUnable to stat Python home /root/deployment/venv. Python interpreter may not be able to be initialized correctly. Verify the supplied path and access permissions for whole of the path.
    Fatal Python error: Py_Initialize: Unable to get the locale encoding
    ModuleNotFoundError: No module named 'encodings'

    • @loveofjava
      @loveofjava 2 года назад

      Can you help me somebody

  • @geraldpheonix
    @geraldpheonix 2 года назад

    How to add HTML, CSS, JS files in Django Applications

  • @rashsh77
    @rashsh77 2 года назад

    Hi, this is very usefull and detailed video for me. I use virtual machine, ubuntu 20.04, last apache, but when i added WSGIDeamonProcess to apache's site_avaliable configuration file, then apache couldn't start because error "WSGIDeamonProcess misspelled or not included into apache configuration". I stuck for 5 days with apache+mod_wsgi, but nginx+gunicorn+django could install during 1 hour and it works. Can you check if your instruction still actual and if it's not change your pdf file ? It will be helpfull for those who, new in linux.

    • @hydenp
      @hydenp 2 года назад

      running 'sudo a2enmod wsgi' fixed that for me

  • @tejasgalande4557
    @tejasgalande4557 2 года назад

    Can i get proper documentation of this video, please make a document, I need it really.