49 thoughts on “[Tutorial] How to run Python Django on cPanel

  1. Sorry please what host is this? Because I've been trying upload my django app on a blue host cpanel but I can't find the create python app icon please how do I fix this problem?

  2. Thanks for this wonderful and self explanatory deployment video, it helped me deploy my first django website after trying to follow several tutorials but with no success.

  3. El video aun esta vigente y sigue funcionando. Sobre todo por las rutas que usaste para tomar el static y media folder ya que así esta depurado cuando apagas el Debug = False. Django es un framework que como ellos mismo dicen te permite crear rápido pero a la hora del deploy to production me quiero pegar un tiro.

  4. How does it work from Windows 10? It says 'source' is not recognized as the name of a cmdlet, function, script file, or operable program.

  5. during the collect static command i am getting error permission denied , what i need to do.how to fix that without root permission

  6. I am have successfully installed and used it for first time, but when i tries to use it for second time it is giving me 503 error. Can anyone help me ?

  7. Good Evening everybody,
    I am getting such msg. Please suggest why I got this error.

    (project:3.7)[[email protected] project]$ ./manage.py collectstatic

    Traceback (most recent call last):

    File "./manage.py", line 21, in <module>

    main()

    File "./manage.py", line 17, in main

    execute_from_command_line(sys.argv)

    File "/home/austere/virtualenv/project/3.7/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line

    utility.execute()

    File "/home/austere/virtualenv/project/3.7/lib/python3.7/site-packages/django/core/management/__init__.py", line 357, in execute

    django.setup()

    File "/home/austere/virtualenv/project/3.7/lib/python3.7/site-packages/django/__init__.py", line 24, in setup

    apps.populate(settings.INSTALLED_APPS)

    File "/home/austere/virtualenv/project/3.7/lib/python3.7/site-packages/django/apps/registry.py", line 114, in populate

    app_config.import_models()

    File "/home/austere/virtualenv/project/3.7/lib/python3.7/site-packages/django/apps/config.py", line 211, in import_models

    self.models_module = import_module(models_module_name)

    File "/home/austere/virtualenv/project/3.7/lib64/python3.7/importlib/__init__.py", line 127, in import_module

    return _bootstrap._gcd_import(name[level:], package, level)

    File "<frozen importlib._bootstrap>", line 1006, in _gcd_import

    File "<frozen importlib._bootstrap>", line 983, in _find_and_load

    File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked

    File "<frozen importlib._bootstrap>", line 677, in _load_unlocked

    File "<frozen importlib._bootstrap_external>", line 728, in exec_module

    File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed

    File "/home/austere/virtualenv/project/3.7/lib/python3.7/site-packages/django/contrib/auth/models.py", line 2, in <module>

    from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager

    File "/home/austere/virtualenv/project/3.7/lib/python3.7/site-packages/django/contrib/auth/base_user.py", line 47, in <module>

    class AbstractBaseUser(models.Model):

    File "/home/austere/virtualenv/project/3.7/lib/python3.7/site-packages/django/db/models/base.py", line 117, in _new_

    new_class.add_to_class('_meta', Options(meta, app_label))

    File "/home/austere/virtualenv/project/3.7/lib/python3.7/site-packages/django/db/models/base.py", line 321, in add_to_class

    value.contribute_to_class(cls, name)

    File "/home/austere/virtualenv/project/3.7/lib/python3.7/site-packages/django/db/models/options.py", line 204, in contribute_to_class

    self.db_table = truncate_name(self.db_table, connection.ops.max_name_length())

    File "/home/austere/virtualenv/project/3.7/lib/python3.7/site-packages/django/db/_init__.py", line 28, in __getattr_

    return getattr(connections[DEFAULT_DB_ALIAS], item)

    File "/home/austere/virtualenv/project/3.7/lib/python3.7/site-packages/django/db/utils.py", line 201, in _getitem_

    backend = load_backend(db['ENGINE'])

    File "/home/austere/virtualenv/project/3.7/lib/python3.7/site-packages/django/db/utils.py", line 110, in load_backend

    return import_module('%s.base' % backend_name)

    File "/home/austere/virtualenv/project/3.7/lib64/python3.7/importlib/__init__.py", line 127, in import_module

    return _bootstrap._gcd_import(name[level:], package, level)

    File "/home/austere/virtualenv/project/3.7/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py", line 66, in <module>

    check_sqlite_version()

    File "/home/austere/virtualenv/project/3.7/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py", line 63, in check_sqlite_version

    raise ImproperlyConfigured('SQLite 3.8.3 or later is required (found %s).' % Database.sqlite_version)

    django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17).

    Thank you

  8. I do that everything same like the video but when run " ./manage.py collectstatic " then showing many error, not understand where is the problem. Need help!
    and present situation : www.mytarzan.com
    Error : https://ibb.co/kDCvy9L

  9. This video is not true i was buy host from this company and I'm do everything like video but is not work … don't buy host from this company if you need host support python and django you need to go to digitalocean this company is sooo good

  10. I tried this but there nothing happing, but I get an error page instead, can someone help I been trying for the whole week?

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

    Web application could not be started by the Phusion Passenger application server.

  12. I don't see Python Setup in my Cpanel. It shows PHP PEAR Packages, Perl Modules, Site Software, Optimize Website, Softaculous Apps Installer and Select PHP Version only in Sofware group of Cpanel. What should I do if I have a make a Python or Node.Js based application for my client who is using this hosting service from Cyber Net? The website hosting is taken from Cyber Net in Pakistan.

  13. how is passengers_wsgi.py automatically created in your django project root folder, it is really strange

  14. Hello, I need some help, when I try to edit the setting.py file from cpanel, I can't access for permissons, how can I fix it? THX DUDE!

  15. how do run python on cpanel again I can't find on the python On my cpanel and when do search I got "No Matches"

  16. Thanks a lot! I struggled for almost a week and finally found the "It worked!" page. Thanks to 'Rahi' who recommended this video.
    * I had to struggle a lot because I was trying to host it on a subdomain. I think that is not possible now. If anyone knows how to configure that please consider to share. (I had to host it on the root) *

  17. It is not an standard in cPanel hostings. You will need a WHM account with root access to install CloudLinux and set it up by yourself or just buy a cPanel hosting with it already included.

    Follow this thread for more information:
    https://forums.cpanel.net/threads/enable-setup-python-app-in-cpanel.618863/

    The "Setup Python App" option is included as part of the Python Selector feature in CloudLinux:
    It's not offered with cPanel & WHM unless CloudLinux is installed.

  18. You are a total LEGEND! I wasted an entire day yesterday trying to get this to work! Thank you so much!

Leave a Reply

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