Python Forum
Newbie to Python (Attempting to install DJango on a VPS)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newbie to Python (Attempting to install DJango on a VPS)
#1
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Attempting to read keyboard outside of console Jimmy998 5 1,343 Nov-25-2022, 08:17 PM
Last Post: Larz60+
  Python newbie laleebee 2 1,316 May-24-2022, 01:39 PM
Last Post: laleebee
Bug beginner attempting to make chatbot MonikaDreemur 1 1,104 Feb-02-2022, 10:24 PM
Last Post: BashBedlam
  List index out of range error when attempting to make a basic shift code djwilson0495 4 2,981 Aug-16-2020, 08:56 PM
Last Post: deanhystad
  Newbie on Python syntax rud0lp20 6 2,926 Apr-21-2020, 04:26 PM
Last Post: jefsummers
  python newbie marcush929 2 2,590 Jan-01-2020, 08:06 AM
Last Post: marcush929
Smile Help needed. Python Newbie!, it will be fun. knightdea 3 2,611 Oct-13-2019, 08:50 AM
Last Post: perfringo
  Invalid archive error when attempting to install dash bootstrap components meaydemi 0 4,763 Jul-11-2019, 05:49 PM
Last Post: meaydemi
  Python Linting (newbie) LieveHeer 2 2,613 Jan-24-2019, 05:36 PM
Last Post: LieveHeer
  attempting to run gimp-console from python in windows 10 matteusbeus 3 2,886 Oct-09-2018, 07:05 AM
Last Post: matteusbeus

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020