Python & Django Project Hosting Using cPanel along with MySQL Database.

Поділитися
Вставка
  • Опубліковано 5 вер 2024
  • This video is regarding how you can deploy your Django app on cPanel along with the MySQL database and make your project live.

КОМЕНТАРІ • 236

  • @faruqismael615
    @faruqismael615 8 місяців тому +2

    I appreciate it bro after consuming over 20 video, JEZAKELLAH

  • @noorandjia4213
    @noorandjia4213 3 роки тому +4

    Thank you very much for this video. I have spent at least two days to figure out how to do all that and finally I found this video. Excellent work. Thanks

  • @achyutneupane4580
    @achyutneupane4580 4 роки тому +8

    i was waiting for this video, Thanks alot !

  • @azimjonjoraev2943
    @azimjonjoraev2943 2 роки тому

    man I downloaded my django project for the first time after watching this video I really liked it

  • @abhijitroy99
    @abhijitroy99 3 роки тому +1

    This is good video , I have seen many but the simplest way it explain is commendable. I need to change my project to MYSQL now instead of default django database post that I will follow this .

  • @humayunkabir7925
    @humayunkabir7925 3 роки тому +2

    Thank You So Much. After around 10 trials, finally i made it. Thank You So Much again.

  • @waresmuhammadi7881
    @waresmuhammadi7881 3 роки тому +3

    mysqlclient in not installing and showing the error of mysqlconfig file not found? can you help me
    my cpanel server is Redhat linux based 64 and i use django 3.1.3 with python 3.7.4 i need to install mysqlclient 2.0.1

    • @muhammedhajjar7221
      @muhammedhajjar7221 3 роки тому

      did you solved it?

    • @dipenshrestha1105
      @dipenshrestha1105 3 роки тому +1

      Yo can install it with whl file

    • @muhammedhajjar7221
      @muhammedhajjar7221 3 роки тому

      @@dipenshrestha1105 when I tried to install it with a whl file it gave an error says: " this platform does not support whl file "

    • @utshuk2861
      @utshuk2861  3 роки тому +1

      I think you need to upgrade the pip version using the command as:
      pip install --upgrade pip
      and then try to install mysqlclient with the command as:
      pip install mysqlclient==2.0.1
      or simply
      pip install mysqlclient

    • @imtiyazgm
      @imtiyazgm 3 роки тому

      @@utshuk2861 still not able pip install mysqlclient

  • @azadchowdhury2683
    @azadchowdhury2683 2 роки тому +5

    Creating website with Django is something like using Nuclear weapon to kill mosquitoes.

    • @SubscribeToMyChannel1
      @SubscribeToMyChannel1 Рік тому

      Which is the best way to create a website if not django or I can just create multiple Web pages in html only

    • @trendstamizha
      @trendstamizha 9 місяців тому

      ​@@SubscribeToMyChannel1 wordpress

  • @ShrayCreation
    @ShrayCreation Місяць тому

    Very very fruitful content! Thanks alot help in my deployment process. Cheers man!

  • @afifali3716
    @afifali3716 3 роки тому

    Thank You So Much. After around 100000000000000000000 trials, finally i made it. Thank You So Much again

  • @juanguirao
    @juanguirao 2 роки тому +7

    This is a great tutorial. Thank you!
    I am planning to deploy my app as a subdomain (not the main domain as you have done).
    Is the process very different, with regards to folders?

    • @samiullah-nw8ci
      @samiullah-nw8ci Рік тому +2

      Application root => public_html/{{your_subdomainname}}
      Select Application URL to desired Subdomain
      while you creating python app - all done cheers

  • @user-ur7vo8qp6j
    @user-ur7vo8qp6j Рік тому

    thanks a lot Utshuk the best video i mean the perfect video for django app deployment

  • @ramesh_tudu
    @ramesh_tudu Рік тому

    Khoje jastai video vetiyo... Thank you for awesome video 😍👍

  • @fahimalif4068
    @fahimalif4068 3 роки тому

    Thanks, man!!! After a lot of try I have successfully uploaded my site!! Many many thanks!!!!

  • @Alex-hp9no
    @Alex-hp9no 2 роки тому

    I have an issue, everything works, css files are loading, but when I add post or category, on the page instead of content it shows me " ?????? " or "??? ??????" how do i fix it ? Or what's even the problem here ?

  • @agranshuaggarwal3947
    @agranshuaggarwal3947 3 роки тому +2

    sr i have purchased godaddy economy linex hosting....but there is no terminal option

  • @adityanijave3393
    @adityanijave3393 8 місяців тому

    Thank you :) it helped me a lot with my assignment......You have earned a subscriber.

  • @awusacollins
    @awusacollins Рік тому

    It's unbelievable you have less than 1k subs.
    Thanks for this helpful tutorial. Subscribed.

  • @texodus_et6313
    @texodus_et6313 2 роки тому

    Straight to the point ... Much Appreciated! Kudos! You have earned a subscriber.

  • @Jani-911-ps5
    @Jani-911-ps5 2 роки тому

    Very very useful video, Big thank you

  • @blackhole724
    @blackhole724 3 роки тому

    This was very simple explanation. Thanks a lot!

  • @sechannel6349
    @sechannel6349 7 місяців тому

    Thanks. You are a god. This video helped me so much

  • @rejeanpion460
    @rejeanpion460 2 роки тому

    Wow! so great, thanks a lot. I could put my django project online. Wonderful!

  • @paristonhill2752
    @paristonhill2752 3 роки тому +2

    Django admin isn't loading css.
    Please help.

  • @rgfuelcells2720
    @rgfuelcells2720 2 роки тому +1

    How would you (or anyone else really) suggest to handle static files? Django suggests not to use the same server as the web server, that's why many Django developers use something like AWS S3 and Linode Object Storage.

    • @idesign254
      @idesign254 Рік тому +1

      Handling static files can be an important consideration when deploying a Django application, particularly for larger or more complex projects where serving static files from the same server as the web server may not be the most efficient or scalable option.
      One common approach to handling static files in Django is to use a content delivery network (CDN) such as Amazon S3 or Linode Object Storage. These services are designed to efficiently store and deliver large files, such as images, videos, and other static content, and can be integrated with a Django application to serve static files in a scalable and efficient manner.
      To use a CDN with a Django application, you would typically configure your project's settings to use a third-party storage backend, such as django-storages, that supports integration with the CDN of your choice. You would then upload your static files to the CDN, and configure your application to serve static files from the CDN.
      Another option is to use a dedicated static file server, such as nginx or Apache, to serve static files separately from the web server. This can be particularly useful for larger or more complex applications where the volume of static files is significant, or where the web server is not optimized for serving static content.
      Regardless of the approach you choose, it is important to ensure that your static files are served efficiently and securely, and that your configuration is optimized for the needs of your specific application.

  • @PresentTech
    @PresentTech Рік тому

    Thank You so much it helped me a lot

  • @prabhuraj1684
    @prabhuraj1684 3 роки тому

    Excellent and useful video. Keep going!!!

  • @ronn_zw
    @ronn_zw Рік тому

    This is a great tutorial. Thanks

  • @saladierrouge2552
    @saladierrouge2552 Рік тому

    Impressive, very nice !

  • @leatslearn4181
    @leatslearn4181 3 роки тому +2

    Can you make full video on flask and upload flask website

  • @IqbalArain-io3du
    @IqbalArain-io3du 8 місяців тому

    static file doesn't load. in project folder or public_html folder.

  • @trippy_b
    @trippy_b 5 місяців тому

    i started the python app in cpanel but it showing "index of / " with cgi bin instead of my project home page when i enter the url of the hosted website, please help

  • @onebyzeroedu.broadcast
    @onebyzeroedu.broadcast 3 місяці тому

    Thank you so much! 💜

  • @TURKISTONIM2
    @TURKISTONIM2 2 роки тому

    Thanks it works fully 100 %

  • @puravparekh9162
    @puravparekh9162 3 роки тому +1

    The python version on my local is 3.9.0 but cPanel doesn't have the option of 3.9.0, has only 3.7.8. Can I choose that option and host my website? I hope it wont crash?

    • @utshuk2861
      @utshuk2861  3 роки тому

      Just try it once i don't think there will be problem due to different python versions...

  • @khan7700
    @khan7700 2 роки тому

    Thisis very good video
    can you pls send a information related to deploy django project on godaddy windows hosting and cpanel hosting

  • @walterrandazzo6399
    @walterrandazzo6399 2 роки тому +1

    Hi Utshuk, great video and explanation. How u set environment variables and then how to get them?

  • @eonnisworld3542
    @eonnisworld3542 5 місяців тому

    Iam having some issues with css styles and also the sql databse issue. so can you help me to figure out the isssue

  • @abdurrazzak1612
    @abdurrazzak1612 Рік тому

    Great video

  • @moofficial1153
    @moofficial1153 2 роки тому

    Thx for the tutorial
    And don't forget to make debug false

  • @mouctechy
    @mouctechy Рік тому

    Bro you're my hero

  • @betelhemtesfaye7838
    @betelhemtesfaye7838 3 роки тому

    Thank you so much. It helps a lot!

  • @aimenkaabi6125
    @aimenkaabi6125 2 роки тому

    great and clear work, ty :)

  • @AmritBhandari
    @AmritBhandari 2 роки тому

    Dami lagyo.

  • @victordziedzorm
    @victordziedzorm 3 роки тому

    Thank you Bro, you saved me alot

  • @suyog_codin
    @suyog_codin 5 місяців тому +1

    16:25 what about the debug=false

  • @user-ur7vo8qp6j
    @user-ur7vo8qp6j Рік тому

    really appreciate

  • @gumastanagarindore5199
    @gumastanagarindore5199 3 роки тому +1

    good

  • @mdhossen7082
    @mdhossen7082 2 роки тому +1

    This video is very helpful,
    but Terminal is not showing in cPanel,
    What is this solution please suggest to me about these problems,
    Thanks

  • @ruchitx
    @ruchitx 5 місяців тому

    can share about this hosting plan and cpanel ? because in my cpanel so not show setup python app in software...

  • @segunalabi4873
    @segunalabi4873 Рік тому

    Thanks a lot 😊

  • @AkhileshYadav-bj1vw
    @AkhileshYadav-bj1vw 2 роки тому

    my bootstrap and CSS file is not work i am using sqlite3 for database please reply me.

  • @sanketgaikwad1399
    @sanketgaikwad1399 2 роки тому

    Cool buddy 🔥

  • @kahve1979
    @kahve1979 2 роки тому

    Thank yot this is good work.

  • @ravikiranmutta1124
    @ravikiranmutta1124 5 місяців тому

    i cant find terminal in cpanel
    where it is in tools

  • @markdecoder
    @markdecoder Рік тому

    Thanks,
    I do highly appreciate your work..
    Which hosting platform you using

  • @joeretzyee9181
    @joeretzyee9181 6 місяців тому

    hi, can u make a video how to host your api using django rest framework in cpanel?

  • @kanhiyaseth1990
    @kanhiyaseth1990 2 роки тому

    I am getting error "unable to execute '/opt/rh/devtoolset-7/root/usr/bin/gcc': No such file or directory" while trying to install mysqlclient, please suggest what can be the fix for it.

  • @sakshampathak8407
    @sakshampathak8407 Рік тому

    hello when i am trying to deploy my application the domain is still showing 403 error and not it works as described in the video can you help?

  • @basiludeh811
    @basiludeh811 2 роки тому +1

    Great video. Very helpful. My app is running. The only issue I have is that whenever I tried to do python manage.py makemigrations or migrate , I receive this message Access denied. Any help from anyone will be appreciated.

  • @cloud_computing
    @cloud_computing 3 роки тому

    very helpful....Thank you

  • @francenylson
    @francenylson 2 роки тому

    SENSACIONAL YOU TUTORIAL. PARABÉNS

  • @evanderteixeira5457
    @evanderteixeira5457 2 роки тому

    Greate tutorial

  • @universen2004
    @universen2004 2 роки тому

    I keep getting 503 Service Unavailable
    The server is temporarily busy, try again later!\
    How to solve this?

  • @CodingIsThinking
    @CodingIsThinking 3 роки тому

    Thanks for this great video
    Can you tell me where we can create our superuser??

  • @japhethachimba174
    @japhethachimba174 Рік тому

    Hey, thanks for this awesome and informative video, but on my cpanel I cant find the software section anyone to help?

  • @sharadbee3813
    @sharadbee3813 3 роки тому

    i am facing problem in install mysql client and then did some google and not found solution yet ,Failed building wheel for mysqlclient, how to solve this error

  • @thebasics8383
    @thebasics8383 3 роки тому

    hi, im having an error, i have a django web application, its working fine, until i installed wordpress, and for the
    meantime i stop my django application, since im applying for a job so, i turn on my django application again,
    but unfortunately, the problem has just begun, until now i cant solve the error

  • @MuhammadAhtishamYousaf
    @MuhammadAhtishamYousaf 2 місяці тому

    i am facing the error 503 service unavailabel this server is tamprarilly busy try again later. kindly suggest me any video

  • @everythingthatworked
    @everythingthatworked Рік тому

    I have no idea why images I upload in mysql are not showing in the webpage. Any ideas?

  • @asmaamohammad6004
    @asmaamohammad6004 2 роки тому

    I am trying to install postgresql
    But there is an error:
    There has been an error.
    Error running C:\Windows\Systems32\icacls "C:\Users\a.m.s\AppData\Local\Temp/postgresql_installer_6d4885e97d"/T/Q/grant"öa-m\a.m.s:(OI)(CI)F":?a-m\a.m.s:No mapping between account names and security IDs was done
    Can you help me please?

  • @user-ce2vy8lh1j
    @user-ce2vy8lh1j Рік тому

    Thank you, sir!!!

  • @AkashSingh-iu6ce
    @AkashSingh-iu6ce 3 роки тому

    great video !!

  • @josakotech1303
    @josakotech1303 3 роки тому +1

    Thank you so much for your informative video, I was wondering which hosting provider & plan you are using, is it a shared hosting? Thanks again👍

    • @utshuk2861
      @utshuk2861  3 роки тому

      It's a shared hosting purchased from himalayanhost

    • @VishalKumar-ve8hb
      @VishalKumar-ve8hb 2 роки тому

      @@utshuk2861 sir in my shared hosting there no option for terminal access from where I purchased. so is there any other way to install django framework??

    • @eliyaskedir8808
      @eliyaskedir8808 2 роки тому

      @@VishalKumar-ve8hb I have faced the same problem. is there any solution?

    • @tanmoychakraborty1328
      @tanmoychakraborty1328 2 роки тому

      Is it good to use Hostinger ??

  • @abhineshghugloth4314
    @abhineshghugloth4314 3 роки тому +1

    Hey buddy, I did setup my django+Mysql project following your video. But, when I ran the migration, it only did for default migrating models what Django provides in default. It didn't run my models.py classes and that's why it's not working in pages where we're fetching data from the DB. Could you please help me if I've to setup my models.py somewhere or need to add anywhere while configuring the project?

    • @prakashmadariya9559
      @prakashmadariya9559 3 роки тому +3

      @kumar A Yeah buddy I got the solution for that. What you need to do is make the migrations for the respective app... for example: >python manage.py makemigrations your_app_name then to migrate >python manage.py migrate your_app_name.... This will do the job..

    • @prakashmadariya9559
      @prakashmadariya9559 3 роки тому

      @kumar A Yeah buddy I got the solution for that. What you need to do is make the migrations for the respective app... for example: >python manage.py makemigrations your_app_name then to migrate >python manage.py migrate your_app_name.... This will do the job..

    • @santiagotituana2441
      @santiagotituana2441 Рік тому

      @@prakashmadariya9559 thank you.....

  • @abhilashoommen4704
    @abhilashoommen4704 2 роки тому

    Thank you. Can you tell about this hosting provider and plan you took. Is it good one

  • @RajeshSingh-jh6bl
    @RajeshSingh-jh6bl Рік тому

    They uses old and outdated software stack in shared hosting servers. It’s not at all fit for python app as checked in Dec 2022 as GCC is still version 4.x instead of latest 14.x Thus, many popular python package dependencies can not install, example - pillow, wagtail, Above all, if we contact support, they won’t fix GCC instead start up selling private servers😅

  • @krishnamaurya2516
    @krishnamaurya2516 2 роки тому

    Got a error We're sorry, but something went wrong.
    The issue has been logged for investigation. Please try again later.

  • @viswanath1421
    @viswanath1421 2 роки тому

    Hi, it was great to see your video followed every step but I am getting:
    500
    Internal Server Error
    An internal server error has occurred.
    Plzzz help

  • @azimrose6926
    @azimrose6926 2 роки тому

    hi, thank you for the tutorial. It's very helpful. Can you share the django files you are using, so that I can do some experimentation?

  • @scientistengrmdabulfazal
    @scientistengrmdabulfazal Рік тому

    Nice

  • @josiahbautista727
    @josiahbautista727 Рік тому

    thank you!

  • @tanvirahmed-ko1nt
    @tanvirahmed-ko1nt 3 роки тому

    ThankYou for your amazing tutorial but one problem i'm facing with my flask website.... after hosting my flask website on a shared hosting like you everything is working fine except unicode URL.. on my local host it was fine just after hosting unicode url are not recognized by server..... if you give the solution it will be very helpful for me please.... :)

  • @miragetechltd
    @miragetechltd 2 роки тому

    PERFECT UTSHUK

  • @vijiraju7521
    @vijiraju7521 2 роки тому +1

    can we link this database to power apps . pls reply🙏🙏

  • @VikasVerma-dk6zs
    @VikasVerma-dk6zs 7 місяців тому

    brother in my cpanel this setup python app option is not available

  • @Luqmanx96
    @Luqmanx96 3 роки тому +1

    Hi, could you share a git link to your file? Would love to take a look at how you set up your staticdirs in settings.py. Thank you very much in advance.

    • @utshuk2861
      @utshuk2861  3 роки тому

      Sorry as it's a private repository so I can't provide you the whole GitHub link but here I have attached the code that you need to put in the settings.py file I hope that this could be helpful.
      ##### In Settings.py ################
      STATIC_URL = '/static/'
      STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
      MEDIA_URL = '/media/'
      MEDIA_ROOT = os.path.join(BASE_DIR, 'media'') -----> here in deployment time you need to provide full path to
      public_html of Cpanel.
      [eg: /home/username/public_html/media]
      ####### In Project urls.py ############
      from django.conf import settings
      from django.conf.urls.static import static
      urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

  • @fazliddinfayziyev5347
    @fazliddinfayziyev5347 Рік тому

    Hello Mr. in terminal It is saying that permission is denied.
    What can I do.

  • @anujkumarraj945
    @anujkumarraj945 2 роки тому

    Great

  • @lakshyapratapsingh6501
    @lakshyapratapsingh6501 Рік тому

    hey my css is not working can you help me with that ?

  • @iittirupatifreaks6177
    @iittirupatifreaks6177 3 роки тому

    bro while serving, I am able to serve only single page
    I am unable to serve all HTML files why?

  • @luisgonzalez-ut8kf
    @luisgonzalez-ut8kf 3 роки тому +1

    thanks for the video. I did every step as you, however when I go to the webpage I am getting a 503 error Service Unavailable. Do you know why is this. Did you do other configuration on the server to deploy python applications? any help will be greatly appreciated.

    • @utshuk2861
      @utshuk2861  3 роки тому

      No any other configuration is done.

    • @ajinzrathod
      @ajinzrathod 3 роки тому

      Did you find a solution to this. I am getting the same error

  • @abhaykatwe9667
    @abhaykatwe9667 3 роки тому +2

    On which site did you host and what and which cPanel is it?

  • @EntranceMaster
    @EntranceMaster 5 місяців тому

    Brother can you please apply NGINX on it it would be a great help

  • @rasimmamedov248
    @rasimmamedov248 2 роки тому

    Thank You !

  • @mohammadnuruzzaman5195
    @mohammadnuruzzaman5195 4 місяці тому

    thanks...

  • @bennyvarughese7800
    @bennyvarughese7800 2 роки тому

    Can you please let me know which is hosting partner you are using

  • @crcacom
    @crcacom Рік тому

    Thanks

  • @shrenda
    @shrenda 2 роки тому

    how to access the admin pannel now?

  • @pitcha021
    @pitcha021 2 роки тому

    Very thank you Bro. if you have Patreon or something else please share with us...