Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Use django to build an online server

Project description

#ServerCraft

Feng Zhang (jumphone@163.com)

python2.7 and django1.8.7

Github: https://github.com/jumphone/servercraft

###Preparations:

pip install servercraft

###Step1: Write a python file: demo.py.

from servercraft import *

server_dir = “./”

server_name = “server_center”

app_name = ‘app1’

build_server(server_dir, server_name)

add_app(server_dir ,app_name, server_name)

###Step2: Type commands.

python demo.py

cd ./server_center

sh run_server.sh

###Step3: Check it!

http://127.0.0.1:8000/app1/

Project details


Download files

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

Files for servercraft, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size servercraft-0.0.2.tar.gz (6.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page