Skip to content

Commit fb7c08b

Browse files
committed
Create a new sample
Create the folder SAMPLE. The "+sys.path.append('../') # Just to make the GIT source more cleaner without creating a module. In YOUR project you DON'T have to do that" Is just here to make everything working right out of the box when you clone the project. In the realife you don't have to do that.
1 parent d9c1826 commit fb7c08b

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

SAMPLE/nabz.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import sys
2+
sys.path.append('../') # Just to make the GIT source more cleaner without creating a module. In YOUR project you DON'T have to do that
3+
from extended_BaseHTTPServer import serve,route
4+
5+
@route("/",["GET"])
6+
def main(**kwargs):
7+
return "TODO"
8+
9+
10+
if __name__ == '__main__':
11+
serve(ip="0.0.0.0", port=5000)

sample_test.py renamed to SAMPLE/sample_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import sys
2+
sys.path.append('../') # Just to make the GIT source more cleaner without creating a module. In YOUR project you DON'T have to do that
13
from extended_BaseHTTPServer import serve,route,redirect, override
24

35
@route("/",["GET"])

0 commit comments

Comments
 (0)