Setting up Python Apps (Django specifically to a cPanel)

How to manage the application

  1. Open your cPanel
  2. search for “set up python app” and click on it
  3. click on create application

select the python version

application root —- enter the folder you wish the application to run on i.e ‘djangoapp’

select applicant url and click on it.

4. after the application has been created, upload your application to the folder specified before “Django app”

N.B—-> Don’t delete any folder or file you find pre-created in the folder which you specified as the application root.

N.B—-> When uploading your files and folders remember to upload the files and folder exactly as they appear in your django app. don’t upload the appliation as a single folder. it should be something like

  • myapp
  • other app
  • static
  • templates
  • db.sqlites
  • manage.py
  • pip file
  • requirements.txt
  • procfile

upload the file above into ‘django app’

5. open the ‘ passengar.wsgi.py’ file and import your application there i.e

-from myapp.wsgi import application

N.B delete the default function that renders

It works

python -[version]

6 add your static files to the public – html i.e static /js and static /css

7. you are set

SHARE THIS POST

Comment (1)

  1. white hat seo

    Says May 19, 2021 at 4:50 pm

    It’s remarkable in support of me to have a website,
    which is helpful designed for my knowledge.

    thanks admin

    Also visit my website – white hat seo

Leave your comment

Open chat