Jump to content

Where do I put my Django Files?


jstacy

Recommended Posts

I've been running on Docker and all my files just go in /code

 

Where do I put my files on this server?  www?  cgi-bin?  How do I navigate to a Django site which is theoretically running on Ricky to test it once I've dropped my files in place?  This is all extremely difficult with no access to command line interface.  It's all too gui-clicky-clicky for someone who operates on the command line primarily.

 

I've tried dropping the folder which houses all my code into various folders in my /home directory, but it always errors out.  Once I actually manage to get all my files in there, how do I actually start the django application with no access to the command line?  Does it just automatically detect that I have Django code in there and run?  What port does it serve on?  What IP address?  How do I see whether or not the application is actually running?

Link to comment
Share on other sites

We don't offer shell (command line) access to our users. Many Django tutorials and installation instructions assume that users have command line access, which may make working with Python & Django more difficult. Most people tend to develop on their home computer and then upload to their web server, which almost negates the need for this feature.

 

This means the command line available on your computer. Not on the Cpanel interface.

Link to comment
Share on other sites

Django is fully functional without the command line. The wiki article he linked doesn't require any shell access on the server. You basically just copy/paste the code in and it will work. Django on our servers run through wsgi which means you don't need to worry about ports or starting and stopping processes. It starts the process automatically when someone requests the page. Also keep in mind that since you picked Ricky Django runs on python 2.7. If you'd rather use Django on python 3.7 you need to pick Johnny or Tommy.

 

Honestly though, I think you would be better off with a VPS https://www.heliohost.org/vps/ since you're already comfortable with the command line.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...