List of everything I need to run my application on a web server

What I want to know is actually 2 things.

Part 1:
I have developed source code for an application in python that uses a Django framework. I want to be able to run the code on the developer's machine and see the result. What do I need for this? (my guess): Python development environment (Eclipse / PyDev / Aptana Studio 3 seems to be better for windows, but not sure about Linux)
I also have an already configured postgre database (I know there is a file where I have to specify connection information)
- is something installed from django or will it be already included in the code that I have?

Part II:
I also want to make the dev server accessible over the Internet. - This is the main part of the question and the most important. How to publish the application?
β€œI have a Linux machine in which I would do this, but I’m not sure what I need.” Apache server?

+4
source share
2 answers

To answer your questions:

  • What do you need . A list of requirements and instructions for getting started with Django is available here: http://djangobook.com/en/2.0/chapter02/ .

  • Database : This chapter also includes the section on setting up access to your database , with a specific section on postgreSQL .

  • Server Dev . To start the core development server, see.

  • Deploy django (production) . For instructions on deploying Django for production, see the chapter Deploying Django .

  • Publishing on the Internet . To make your development server accessible over the Internet, ask https://serverfault.com/ . Make sure that you provide more information about setting up the network, that you tried, that it doesn’t work, etc. (In short, you need to make sure that the host your server is running on is on a public IP address or has port 80 sent to it from that host. If in doubt, contact your network / network administrator if you have one Or use a django hosting service such as those listed at http://djangohosting.com )

  • IDE As for the IDE, it depends on personal preference. What you mentioned is beautiful and can work on Linux as well.

As a first step, I suggest you follow a tutorial that will help you begin the process of developing a development server and developing a basic application,

Even if your goal is to deploy an existing application, the tutorial will give you an idea of ​​how different components work together (applications, models, URLs, templates, etc.), which will help with debugging when something goes wrong so with your deployment.

Good luck.

+5
source

You need Python, Django, a WSGI container (e.g. mod_wsgi, uWSGI, Paste Deploy) and a database server. You make the Django project available as a WSGI application bound to the appropriate interface on the machine.

+1
source

Source: https://habr.com/ru/post/1343184/


All Articles