How do I move Django project from my local machine to Linode Debian server?

Avatar forum:rbpb 1 year, 1 month ago

Hi all,

I'm trying to figure out how to successfully move my Django project from my local machine to Linode.

On my local machine, I enter a virtual environment, run python manage.py runserver, then navigate my browser to localhost:8080 to see my project. It works fine there. What must I do to set this up on my Linode instance so that I can navigate to the Linode address to view it successfully? For example, how do I set things up so I can navigate my browser to http://li1081-100.members.linode.com for example and see my project in all its glory? (That's not my real address).

1 Reply

Linode has a guide for deploying Django on Ubuntu 14.04 here; you can adopt parts of it for other distributions:

https://linode.com/docs/web-servers/ngi … ntu-14-04/">https://linode.com/docs/web-servers/nginx/deploy-django-applications-using-uwsgi-and-nginx-on-ubuntu-14-04/

Django's website also has some good guides for putting your app into production:

https://docs.djangoproject.com/en/2.0/howto/deployment/

Essentially, you're going to have to set up a web server like Apache and Nginx. You'll also set up an application server like uWSGI or Gunicorn to run your Django app. Then, you'll set Apache or Nginx to proxy requests for the app to uWSGI or Gunicorn.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct