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
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 .
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?
I developed a web application using react with php backend in 6 months. Same application I did using django in two weeks. Guess what, The django version worked without any obvious bugs and iching biching.
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
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 ?
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.
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.
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
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
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.
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.
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.
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)
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?
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?
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?
@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..
@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..
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.... :)
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 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??
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
Virtual env project start garda dekhinai setup gareko thiyo. Paxi heroku ma deploy garda gunicorn pani configure gareko xa. Aba malai deploy garnu paryo cpanel use garera , aba k garne. Tyo env hatayera video ma dekha jasari env create garnu parne hunxa ki merai env use garne kunai process xa. Ani gunicorn pani use garne kunai process xa?
would you also please ellaborate how to migrate data on local server on mysql on the cPanel mysql workbench(php myadmin) and also about git push and pull from cpanel terminal. Thanks
If you are trying to load the data from an online server(i.e from Cpanel project database) to your local server it would be easier for you if create the fixtures of your database. I will be making a tutorial regarding how to use git functionality in Cpanel as soon as possible. Thanks! stay tuned.
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😅
Hello, sir I have been getting 500 error whenever I change debug to False. And i saw in your videos,you run your project with debug = True. Is that secure for our project cause even the project has write do not turn on in production with a comment. So, can you make the video of that error?
It is generally not recommended to run a Django application with DEBUG=True in a production environment. This is because DEBUG=True can expose sensitive information about your application, such as stack traces and other debugging information, to potential attackers. Additionally, when DEBUG=True, Django will serve static files and handle errors in a way that is not optimized for production use. In a production environment, it is recommended to set DEBUG=False in your Django settings file. However, when you do this, you may encounter a 500 error if there is an issue with your application that would normally be handled by the built-in Django debug page. In this case, it is important to have appropriate error handling in place, such as logging and custom error pages, to ensure that your application continues to function correctly and that users are not exposed to sensitive information. There are several steps you can take to ensure that your Django application is secure in a production environment, even when running with DEBUG=False. These include: Configuring appropriate error handling, including logging and custom error pages, to handle errors that may arise in your application. Using a secure web server configuration, such as HTTPS, to ensure that data transmitted between the server and clients is encrypted. Following security best practices, such as using strong passwords and limiting access to sensitive information. Keeping your Django installation and any third-party libraries up to date with security patches and updates. Conducting regular security audits and vulnerability assessments to identify and address any potential security issues. In short, while running Django with DEBUG=True may be useful during development, it is not recommended for production environments. Instead, take appropriate steps to ensure that your application is secure and optimized for production use.
I appreciate it bro after consuming over 20 video, JEZAKELLAH
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
Glad it helped!
man I downloaded my django project for the first time after watching this video I really liked it
Khoje jastai video vetiyo... Thank you for awesome video 😍👍
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 .
Thank You So Much. After around 10 trials, finally i made it. Thank You So Much again.
Very very fruitful content! Thanks alot help in my deployment process. Cheers man!
i was waiting for this video, Thanks alot !
Enjoy!
Thank you :) it helped me a lot with my assignment......You have earned a subscriber.
thanks a lot Utshuk the best video i mean the perfect video for django app deployment
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?
Application root => public_html/{{your_subdomainname}}
Select Application URL to desired Subdomain
while you creating python app - all done cheers
It's unbelievable you have less than 1k subs.
Thanks for this helpful tutorial. Subscribed.
Very very useful video, Big thank you
Thank You So Much. After around 100000000000000000000 trials, finally i made it. Thank You So Much again
Creating website with Django is something like using Nuclear weapon to kill mosquitoes.
Which is the best way to create a website if not django or I can just create multiple Web pages in html only
@@SubscribeToMyChannel1 wordpress
I developed a web application using react with php backend in 6 months. Same application I did using django in two weeks. Guess what, The django version worked without any obvious bugs and iching biching.
PERFECT UTSHUK
Straight to the point ... Much Appreciated! Kudos! You have earned a subscriber.
Dami lagyo.
Impressive, very nice !
Thisis very good video
can you pls send a information related to deploy django project on godaddy windows hosting and cpanel hosting
Can you make full video on flask and upload flask website
Thanks, man!!! After a lot of try I have successfully uploaded my site!! Many many thanks!!!!
Thank You so much it helped me a lot
Thanks. You are a god. This video helped me so much
This was very simple explanation. Thanks a lot!
Great video
Excellent and useful video. Keep going!!!
Thanks it works fully 100 %
Thx for the tutorial
And don't forget to make debug false
Wow! so great, thanks a lot. I could put my django project online. Wonderful!
This is a great tutorial. Thanks
hi, can u make a video how to host your api using django rest framework in cpanel?
Bro you're my hero
Thanks,
I do highly appreciate your work..
Which hosting platform you using
Cool buddy 🔥
Thank you. Can you tell about this hosting provider and plan you took. Is it good one
Hi Utshuk, great video and explanation. How u set environment variables and then how to get them?
sr i have purchased godaddy economy linex hosting....but there is no terminal option
Same also how to migrate
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
SENSACIONAL YOU TUTORIAL. PARABÉNS
Thanks for this great video
Can you tell me where we can create our superuser??
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 ?
great and clear work, ty :)
very helpful....Thank you
Great
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.
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.
Thank you so much. It helps a lot!
Thank yot this is good work.
Hey, thanks for this awesome and informative video, but on my cpanel I cant find the software section anyone to help?
Greate tutorial
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
did you solved it?
Yo can install it with whl file
@@dipenshrestha1105 when I tried to install it with a whl file it gave an error says: " this platform does not support whl file "
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
@@utshuk2861 still not able pip install mysqlclient
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.
Thank you so much! 💜
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.
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.
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)
Thank you Bro, you saved me alot
Nice
Very thank you Bro. if you have Patreon or something else please share with us...
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?
Just try it once i don't think there will be problem due to different python versions...
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
Iam having some issues with css styles and also the sql databse issue. so can you help me to figure out the isssue
good
really appreciate
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?
i am facing the error 503 service unavailabel this server is tamprarilly busy try again later. kindly suggest me any video
Brother can you please apply NGINX on it it would be a great help
Thank you, sir!!!
Thanks a lot 😊
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?
@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..
@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 thank you.....
This video is very helpful,
but Terminal is not showing in cPanel,
What is this solution please suggest to me about these problems,
Thanks
Go to Manage shell and turn on the terminal
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.... :)
@Utshuk can you tell me how to get the || SETUP PYTHON APP || tool in cpanel
I keep getting 503 Service Unavailable
The server is temporarily busy, try again later!\
How to solve this?
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.
No any other configuration is done.
Did you find a solution to this. I am getting the same error
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?
can we link this database to power apps . pls reply🙏🙏
great video !!
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👍
It's a shared hosting purchased from himalayanhost
@@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??
@@VishalKumar-ve8hb I have faced the same problem. is there any solution?
Is it good to use Hostinger ??
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?
Django admin isn't loading css.
Please help.
my bootstrap and CSS file is not work i am using sqlite3 for database please reply me.
Bro, how can we make fb and google authentication in django? Please make a video on that!
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
Hello Mr. in terminal It is saying that permission is denied.
What can I do.
Can you please let me know which is hosting partner you are using
Virtual env project start garda dekhinai setup gareko thiyo. Paxi heroku ma deploy garda gunicorn pani configure gareko xa. Aba malai deploy garnu paryo cpanel use garera , aba k garne. Tyo env hatayera video ma dekha jasari env create garnu parne hunxa ki merai env use garne kunai process xa. Ani gunicorn pani use garne kunai process xa?
I have no idea why images I upload in mysql are not showing in the webpage. Any ideas?
would you also please ellaborate how to migrate data on local server on mysql on the cPanel mysql workbench(php myadmin) and also about git push and pull from cpanel terminal. Thanks
If you are trying to load the data from an online server(i.e from Cpanel project database) to your local server it would be easier for you if create the fixtures of your database. I will be making a tutorial regarding how to use git functionality in Cpanel as soon as possible. Thanks! stay tuned.
static file doesn't load. in project folder or public_html folder.
Thank You !
On which site did you host and what and which cPanel is it?
hostnali.com
Got a error We're sorry, but something went wrong.
The issue has been logged for investigation. Please try again later.
16:25 what about the debug=false
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😅
is it possible to use this method for hosting django project in godaddy??
Hello, sir I have been getting 500 error whenever I change debug to False. And i saw in your videos,you run your project with debug = True. Is that secure for our project cause even the project has write do not turn on in production with a comment. So, can you make the video of that error?
It is generally not recommended to run a Django application with DEBUG=True in a production environment. This is because DEBUG=True can expose sensitive information about your application, such as stack traces and other debugging information, to potential attackers. Additionally, when DEBUG=True, Django will serve static files and handle errors in a way that is not optimized for production use.
In a production environment, it is recommended to set DEBUG=False in your Django settings file. However, when you do this, you may encounter a 500 error if there is an issue with your application that would normally be handled by the built-in Django debug page. In this case, it is important to have appropriate error handling in place, such as logging and custom error pages, to ensure that your application continues to function correctly and that users are not exposed to sensitive information.
There are several steps you can take to ensure that your Django application is secure in a production environment, even when running with DEBUG=False. These include:
Configuring appropriate error handling, including logging and custom error pages, to handle errors that may arise in your application.
Using a secure web server configuration, such as HTTPS, to ensure that data transmitted between the server and clients is encrypted.
Following security best practices, such as using strong passwords and limiting access to sensitive information.
Keeping your Django installation and any third-party libraries up to date with security patches and updates.
Conducting regular security audits and vulnerability assessments to identify and address any potential security issues.
In short, while running Django with DEBUG=True may be useful during development, it is not recommended for production environments. Instead, take appropriate steps to ensure that your application is secure and optimized for production use.
Nice Explanation Is it for free
i cant find terminal in cpanel
where it is in tools
Kun hosting lida best hola bro, vandinu paryo
VPS or hosting?
Can I access Admin panel?