May-04-2021, 03:51 PM
Hello fellow pythoners!
I am completely new to Python, I have done a lot of research beforehand as I use to be more focused around the development of applications using Laravel.
I am eager to get started and I have ran in to a small issue (I am hoping it's a small issue at least!) with regards to the setup of the Django web application framework.
I have successfully installed Python and the required dependencies through installing an OS called CloudLinux on to my VPS server which is a cPanel based VPS.
I do try to hold back from reaching out in forums as I prefer to dive in and attempt to resolve challenges myself - but I'm at the point where I could do with a little assistance or guidance!
I have referenced the following guide with installing Django on to my VPS - https://www.a2hosting.co.uk/kb/developer...ed-hosting
I have completed all the steps including the installation, migration and super user initialisation.
After the installation completed, I accessed the domain of my where my application has been configured through Python (on cPanel) and the "Index Of" page is displaying rather than the actual application itself.
I have reattempted the installation a few times over, but I am getting the same result each and every time.
Here is a rundown of my current folder structure:
├── db.sqlite3
├── manage.py
├── myapp
│ ├── __init__.py
│ ├── __pycache__
│ │ ├── __init__.cpython-37.pyc
│ │ ├── settings.cpython-37.pyc
│ │ └── urls.cpython-37.pyc
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── passenger_wsgi.py
├── public
├── static_files
│ └── admin
│ ├── css
│ │ ├── autocomplete.css
│ │ ├── base.css
│ │ ├── changelists.css
│ │ ├── dashboard.css
│ │ ├── fonts.css
│ │ ├── forms.css
│ │ ├── login.css
│ │ ├── responsive.css
│ │ ├── responsive_rtl.css
│ │ ├── rtl.css
│ │ ├── vendor
│ │ │ └── select2
│ │ │ ├── LICENSE-SELECT2.md
│ │ │ ├── select2.css
│ │ │ └── select2.min.css
│ │ └── widgets.css
│ ├── fonts
│ │ ├── LICENSE.txt
│ │ ├── README.txt
│ │ ├── Roboto-Bold-webfont.woff
│ │ ├── Roboto-Light-webfont.woff
│ │ └── Roboto-Regular-webfont.woff
│ ├── img
│ │ ├── calendar-icons.svg
│ │ ├── gis
│ │ │ ├── move_vertex_off.svg
│ │ │ └── move_vertex_on.svg
│ │ ├── icon-addlink.svg
│ │ ├── icon-alert.svg
│ │ ├── icon-calendar.svg
│ │ ├── icon-changelink.svg
│ │ ├── icon-clock.svg
│ │ ├── icon-deletelink.svg
│ │ ├── icon-no.svg
│ │ ├── icon-unknown-alt.svg
│ │ ├── icon-unknown.svg
│ │ ├── icon-viewlink.svg
│ │ ├── icon-yes.svg
│ │ ├── inline-delete.svg
│ │ ├── LICENSE
│ │ ├── README.txt
│ │ ├── search.svg
│ │ ├── selector-icons.svg
│ │ ├── sorting-icons.svg
│ │ ├── tooltag-add.svg
│ │ └── tooltag-arrowright.svg
│ └── js
│ ├── actions.js
│ ├── actions.min.js
│ ├── admin
│ │ ├── DateTimeShortcuts.js
│ │ └── RelatedObjectLookups.js
│ ├── autocomplete.js
│ ├── calendar.js
│ ├── cancel.js
│ ├── change_form.js
│ ├── collapse.js
│ ├── collapse.min.js
│ ├── core.js
│ ├── inlines.js
│ ├── inlines.min.js
│ ├── jquery.init.js
│ ├── popup_response.js
│ ├── prepopulate_init.js
│ ├── prepopulate.js
│ ├── prepopulate.min.js
│ ├── SelectBox.js
│ ├── SelectFilter2.js
│ ├── timeparse.js
│ ├── urlify.js
│ └── vendor
│ ├── jquery
│ │ ├── jquery.js
│ │ ├── jquery.min.js
│ │ └── LICENSE.txt
│ ├── select2
│ │ ├── i18n
│ │ │ ├── ar.js
│ │ │ ├── az.js
│ │ │ ├── bg.js
│ │ │ ├── ca.js
│ │ │ ├── cs.js
│ │ │ ├── da.js
│ │ │ ├── de.js
│ │ │ ├── el.js
│ │ │ ├── en.js
│ │ │ ├── es.js
│ │ │ ├── et.js
│ │ │ ├── eu.js
│ │ │ ├── fa.js
│ │ │ ├── fi.js
│ │ │ ├── fr.js
│ │ │ ├── gl.js
│ │ │ ├── he.js
│ │ │ ├── hi.js
│ │ │ ├── hr.js
│ │ │ ├── hu.js
│ │ │ ├── id.js
│ │ │ ├── is.js
│ │ │ ├── it.js
│ │ │ ├── ja.js
│ │ │ ├── km.js
│ │ │ ├── ko.js
│ │ │ ├── lt.js
│ │ │ ├── lv.js
│ │ │ ├── mk.js
│ │ │ ├── ms.js
│ │ │ ├── nb.js
│ │ │ ├── nl.js
│ │ │ ├── pl.js
│ │ │ ├── pt-BR.js
│ │ │ ├── pt.js
│ │ │ ├── ro.js
│ │ │ ├── ru.js
│ │ │ ├── sk.js
│ │ │ ├── sr-Cyrl.js
│ │ │ ├── sr.js
│ │ │ ├── sv.js
│ │ │ ├── th.js
│ │ │ ├── tr.js
│ │ │ ├── uk.js
│ │ │ ├── vi.js
│ │ │ ├── zh-CN.js
│ │ │ └── zh-TW.js
│ │ ├── LICENSE.md
│ │ ├── select2.full.js
│ │ └── select2.full.min.js
│ └── xregexp
│ ├── LICENSE.txt
│ ├── xregexp.js
│ └── xregexp.min.js
├── static_media
├── templates
│ └── static_pages
│ └── index.html
└── tmp
└── restart.txt
--
I was wondering if a Symbolic Link might be required in order to push web traffic through to a symlink public_html directory or whether I'm just missing a simple configuration somewhere to get my application working.
EDIT: My Django application is based outside of my public_html folder. Within my Python manager app on cPanel, I have configured the Python application to serve all traffic requests through to my primary domain from the "myapp" folder located outside of the public webspace environment.
Thanks everyone,
Jay.
I am completely new to Python, I have done a lot of research beforehand as I use to be more focused around the development of applications using Laravel.
I am eager to get started and I have ran in to a small issue (I am hoping it's a small issue at least!) with regards to the setup of the Django web application framework.
I have successfully installed Python and the required dependencies through installing an OS called CloudLinux on to my VPS server which is a cPanel based VPS.
I do try to hold back from reaching out in forums as I prefer to dive in and attempt to resolve challenges myself - but I'm at the point where I could do with a little assistance or guidance!
I have referenced the following guide with installing Django on to my VPS - https://www.a2hosting.co.uk/kb/developer...ed-hosting
I have completed all the steps including the installation, migration and super user initialisation.
After the installation completed, I accessed the domain of my where my application has been configured through Python (on cPanel) and the "Index Of" page is displaying rather than the actual application itself.
I have reattempted the installation a few times over, but I am getting the same result each and every time.
Here is a rundown of my current folder structure:
├── db.sqlite3
├── manage.py
├── myapp
│ ├── __init__.py
│ ├── __pycache__
│ │ ├── __init__.cpython-37.pyc
│ │ ├── settings.cpython-37.pyc
│ │ └── urls.cpython-37.pyc
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── passenger_wsgi.py
├── public
├── static_files
│ └── admin
│ ├── css
│ │ ├── autocomplete.css
│ │ ├── base.css
│ │ ├── changelists.css
│ │ ├── dashboard.css
│ │ ├── fonts.css
│ │ ├── forms.css
│ │ ├── login.css
│ │ ├── responsive.css
│ │ ├── responsive_rtl.css
│ │ ├── rtl.css
│ │ ├── vendor
│ │ │ └── select2
│ │ │ ├── LICENSE-SELECT2.md
│ │ │ ├── select2.css
│ │ │ └── select2.min.css
│ │ └── widgets.css
│ ├── fonts
│ │ ├── LICENSE.txt
│ │ ├── README.txt
│ │ ├── Roboto-Bold-webfont.woff
│ │ ├── Roboto-Light-webfont.woff
│ │ └── Roboto-Regular-webfont.woff
│ ├── img
│ │ ├── calendar-icons.svg
│ │ ├── gis
│ │ │ ├── move_vertex_off.svg
│ │ │ └── move_vertex_on.svg
│ │ ├── icon-addlink.svg
│ │ ├── icon-alert.svg
│ │ ├── icon-calendar.svg
│ │ ├── icon-changelink.svg
│ │ ├── icon-clock.svg
│ │ ├── icon-deletelink.svg
│ │ ├── icon-no.svg
│ │ ├── icon-unknown-alt.svg
│ │ ├── icon-unknown.svg
│ │ ├── icon-viewlink.svg
│ │ ├── icon-yes.svg
│ │ ├── inline-delete.svg
│ │ ├── LICENSE
│ │ ├── README.txt
│ │ ├── search.svg
│ │ ├── selector-icons.svg
│ │ ├── sorting-icons.svg
│ │ ├── tooltag-add.svg
│ │ └── tooltag-arrowright.svg
│ └── js
│ ├── actions.js
│ ├── actions.min.js
│ ├── admin
│ │ ├── DateTimeShortcuts.js
│ │ └── RelatedObjectLookups.js
│ ├── autocomplete.js
│ ├── calendar.js
│ ├── cancel.js
│ ├── change_form.js
│ ├── collapse.js
│ ├── collapse.min.js
│ ├── core.js
│ ├── inlines.js
│ ├── inlines.min.js
│ ├── jquery.init.js
│ ├── popup_response.js
│ ├── prepopulate_init.js
│ ├── prepopulate.js
│ ├── prepopulate.min.js
│ ├── SelectBox.js
│ ├── SelectFilter2.js
│ ├── timeparse.js
│ ├── urlify.js
│ └── vendor
│ ├── jquery
│ │ ├── jquery.js
│ │ ├── jquery.min.js
│ │ └── LICENSE.txt
│ ├── select2
│ │ ├── i18n
│ │ │ ├── ar.js
│ │ │ ├── az.js
│ │ │ ├── bg.js
│ │ │ ├── ca.js
│ │ │ ├── cs.js
│ │ │ ├── da.js
│ │ │ ├── de.js
│ │ │ ├── el.js
│ │ │ ├── en.js
│ │ │ ├── es.js
│ │ │ ├── et.js
│ │ │ ├── eu.js
│ │ │ ├── fa.js
│ │ │ ├── fi.js
│ │ │ ├── fr.js
│ │ │ ├── gl.js
│ │ │ ├── he.js
│ │ │ ├── hi.js
│ │ │ ├── hr.js
│ │ │ ├── hu.js
│ │ │ ├── id.js
│ │ │ ├── is.js
│ │ │ ├── it.js
│ │ │ ├── ja.js
│ │ │ ├── km.js
│ │ │ ├── ko.js
│ │ │ ├── lt.js
│ │ │ ├── lv.js
│ │ │ ├── mk.js
│ │ │ ├── ms.js
│ │ │ ├── nb.js
│ │ │ ├── nl.js
│ │ │ ├── pl.js
│ │ │ ├── pt-BR.js
│ │ │ ├── pt.js
│ │ │ ├── ro.js
│ │ │ ├── ru.js
│ │ │ ├── sk.js
│ │ │ ├── sr-Cyrl.js
│ │ │ ├── sr.js
│ │ │ ├── sv.js
│ │ │ ├── th.js
│ │ │ ├── tr.js
│ │ │ ├── uk.js
│ │ │ ├── vi.js
│ │ │ ├── zh-CN.js
│ │ │ └── zh-TW.js
│ │ ├── LICENSE.md
│ │ ├── select2.full.js
│ │ └── select2.full.min.js
│ └── xregexp
│ ├── LICENSE.txt
│ ├── xregexp.js
│ └── xregexp.min.js
├── static_media
├── templates
│ └── static_pages
│ └── index.html
└── tmp
└── restart.txt
--
I was wondering if a Symbolic Link might be required in order to push web traffic through to a symlink public_html directory or whether I'm just missing a simple configuration somewhere to get my application working.
EDIT: My Django application is based outside of my public_html folder. Within my Python manager app on cPanel, I have configured the Python application to serve all traffic requests through to my primary domain from the "myapp" folder located outside of the public webspace environment.
Thanks everyone,
Jay.