Merge pull request #158 from ONLYOFFICE/hellonadya-patch-1-1

Update README.md
This commit is contained in:
Sergey Linnik
2021-06-21 11:25:13 +03:00
committed by GitHub
7 changed files with 141 additions and 154 deletions

View File

@ -1,24 +1,20 @@
# How to integrate online editors into your own web site on Python
## Overview
## Introduction
This example will help you integrate ONLYOFFICE Docs into your web application written in Python.
To integrate **ONLYOFFICE online editors** into your own web site on **Python** you need to download and install ONLYOFFICE editors on your local server and use the [Python Example](https://api.onlyoffice.com/editors/demopreview) for their integration. We will show how to run the Python example on Linux OS.
It is aimed at testing the editors. Please, do not use it for production without proper modifications.
Please note that the integration examples are used to demonstrate document editors functions and the ways to connect **Document Server** to your own application. **DO NOT USE** these examples on your own server without **PROPER CODE MODIFICATIONS**!
## Step 1. Install ONLYOFFICE Docs
This guide will show you the sequence of actions to integrate the editors successfully.
## Step 1. Download and Install Document Server
First, download [**ONLYOFFICE Editors**](https://api.onlyoffice.com/editors/demopreview) (the ONLYOFFICE Document Server).
Download and install ONLYOFFICE Docs (packaged as Document Server).
See the detailed guide to learn how to install Document Server [for Windows](https://helpcenter.onlyoffice.com/installation/docs-developer-install-windows.aspx?from=api_python_example), [for Linux](https://helpcenter.onlyoffice.com/installation/docs-developer-install-ubuntu.aspx?from=api_python_example), or [for Docker](https://helpcenter.onlyoffice.com/server/developer-edition/docker/docker-installation.aspx?from=api_python_example).
## Step 2. Install the prerequisites and run the web site with the editors
## Step 2. Install the prerequisites and run the website with the editors
1. Python comes preinstalled on most Linux distributions, and is available as a package on all others. Python 3.9 is required. Please proceed to [official documentation](https://docs.python.org/3/using/unix.html) if you have any troubles.
2. Download the archive with the Python example and unpack the archive:
2. Download the archive with the Python example and unpack it:
```
wget "https://api.onlyoffice.com/app_data/editor/Python%20Example.zip"
@ -71,8 +67,8 @@ See the detailed guide to learn how to install Document Server [for Windows](htt
http://localhost
```
## Step 3. Checking accessibility
## Step 3. Check accessibility
In case the example and Document Server are installed on different computers, make sure that your server with the example installed has access to the Document Server with the address which you specify instead of **documentserver** in the configuration files. And you must also make sure that the Document Server in its turn has access to the server with the example installed with the address which you specify instead of **exampleserver** in the configuration files.
In case the example and Document Server are installed on different computers, make sure that your server with the example installed has access to the Document Server with the address which you specify instead of **documentserver** in the configuration files.
If you integrated the editors successfully the result should look like the [demo preview](https://api.onlyoffice.com/editors/demopreview#DemoPreview) on our site.
Make sure that the Document Server has access to the server with the example installed with the address which you specify instead of **example.com** in the configuration files.