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 .
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
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 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.
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
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 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.
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 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
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
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?
@@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??
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..
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😅
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.... :)
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)
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.
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!
i was waiting for this video, Thanks alot !
Enjoy!
man I downloaded my django project for the first time after watching this video I really liked it
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.
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
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
Very very fruitful content! Thanks alot help in my deployment process. Cheers man!
Thank You So Much. After around 100000000000000000000 trials, finally i made it. Thank You So Much again
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
thanks a lot Utshuk the best video i mean the perfect video for django app deployment
Khoje jastai video vetiyo... Thank you for awesome video 😍👍
Thanks, man!!! After a lot of try I have successfully uploaded my site!! Many many thanks!!!!
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 ?
sr i have purchased godaddy economy linex hosting....but there is no terminal option
Same also how to migrate
Thank you :) it helped me a lot with my assignment......You have earned a subscriber.
It's unbelievable you have less than 1k subs.
Thanks for this helpful tutorial. Subscribed.
Straight to the point ... Much Appreciated! Kudos! You have earned a subscriber.
Very very useful video, Big thank you
This was very simple explanation. Thanks a lot!
Thanks. You are a god. This video helped me so much
Wow! so great, thanks a lot. I could put my django project online. Wonderful!
Django admin isn't loading css.
Please help.
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 helped me a lot
Excellent and useful video. Keep going!!!
This is a great tutorial. Thanks
Impressive, very nice !
Can you make full video on flask and upload flask website
static file doesn't load. in project folder or public_html folder.
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
Thank you so much! 💜
Thanks it works fully 100 %
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...
Thisis very good video
can you pls send a information related to deploy django project on godaddy windows hosting and cpanel hosting
Hi Utshuk, great video and explanation. How u set environment variables and then how to get them?
Iam having some issues with css styles and also the sql databse issue. so can you help me to figure out the isssue
Great video
Thx for the tutorial
And don't forget to make debug false
Bro you're my hero
Thank you so much. It helps a lot!
great and clear work, ty :)
Dami lagyo.
Thank you Bro, you saved me alot
16:25 what about the debug=false
really appreciate
good
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
can share about this hosting plan and cpanel ? because in my cpanel so not show setup python app in software...
Thanks a lot 😊
my bootstrap and CSS file is not work i am using sqlite3 for database please reply me.
Cool buddy 🔥
Thank yot this is good work.
i cant find terminal in cpanel
where it is in tools
Thanks,
I do highly appreciate your work..
Which hosting platform you using
hi, can u make a video how to host your api using django rest framework in cpanel?
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.
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?
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.
very helpful....Thank you
SENSACIONAL YOU TUTORIAL. PARABÉNS
Greate tutorial
I keep getting 503 Service Unavailable
The server is temporarily busy, try again later!\
How to solve this?
Thanks for this great video
Can you tell me where we can create our superuser??
Hey, thanks for this awesome and informative video, but on my cpanel I cant find the software section anyone to help?
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
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
i am facing the error 503 service unavailabel this server is tamprarilly busy try again later. kindly suggest me any video
I have no idea why images I upload in mysql are not showing in the webpage. Any ideas?
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?
Thank you, sir!!!
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 ??
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.....
Thank you. Can you tell about this hosting provider and plan you took. Is it good one
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😅
Got a error We're sorry, but something went wrong.
The issue has been logged for investigation. Please try again later.
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
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?
Nice
thank you!
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.... :)
PERFECT UTSHUK
can we link this database to power apps . pls reply🙏🙏
brother in my cpanel this setup python app option is not available
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)
Hello Mr. in terminal It is saying that permission is denied.
What can I do.
Great
hey my css is not working can you help me with that ?
bro while serving, I am able to serve only single page
I am unable to serve all HTML files why?
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
On which site did you host and what and which cPanel is it?
hostnali.com
Brother can you please apply NGINX on it it would be a great help
Thank You !
thanks...
Can you please let me know which is hosting partner you are using
Thanks
how to access the admin pannel now?
Very thank you Bro. if you have Patreon or something else please share with us...