Skip to main content

Xost is a small embedded server which simplifies hosting of django applications

Project description

Xost is a small embedded server which simplifies hosting of django applications.

Requirements

twisted

Usage

Installing the application:

pip install xost

add xost to your INSTALLED_APPS:

INSTALLED_APPS = (
    ....,
    ‘xost’
)

Xost is configured via the XOST key in settings.py:

XOST= {
    ‘key’: ‘value’
}

possible configuration keys are listed below (default values are provided after = sign):

address: None - string configuration listen addresses
port = 8080 - a port number on which to listen
min_threads = 5 - minimum number of threads in the pool
max_threads = 20 - maximum number of threads in the pool
root = ‘launch_folder’ - path to working (root) folder
static_root = ‘launch_folder/static/’ - path to static file folder
media_root = ‘launch_folder/media/ - path to media file folder
log_path = ‘launch_folder/log/’ -path to log folder
collect_static = True - do not collect static files to  static root folder before launch
debug = False - if set to true, prints debug information

startup:

python manage.py serve

by default server starts on port 8080

in order to get full list of configuration keys, run

python manage.py serve --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xost-0.0.2.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file xost-0.0.2.tar.gz.

File metadata

  • Download URL: xost-0.0.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xost-0.0.2.tar.gz
Algorithm Hash digest
SHA256 67907a0fac46cdeb6e207128491563c337b2a73135528c6183256e7d5a8414af
MD5 fa5a8ec89f130c70b0c2131d877ac7e3
BLAKE2b-256 bb161ddc0dc0d72b08924014e91f763e27ba01c48c3f3f86fa311ce4fd050f98

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page