Skip to content

Commit f620ba5

Browse files
add docs for django startup
1 parent f1fe1c0 commit f620ba5

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ Start running framework
104104
```
105105
python -m microframeworks.[framework name].app
106106
```
107+
108+
For Django
109+
```
110+
cd fullframeworks/django_test
111+
python manage.prunserver 0.0.0.0:8000 --noreload
112+
```
113+
107114
Change the framework name to any of the available package under microframeworks : bottle, flask, japronto, pyramid, sanic, tornado
108115

109116
### Locust Setup

benchmark/text_locust.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from locust import HttpLocust, TaskSet, task
22
import resource
3-
resource.setrlimit(resource.RLIMIT_NOFILE, (999999, 999999))
3+
# resource.setrlimit(resource.RLIMIT_NOFILE, (999999, 999999))
44

55
HOST = '0.0.0.0'
66
PORT = 8000

fullframeworks/django_test/django_test/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
"""
1212
from datetime import datetime
1313
import os
14+
import resource
15+
resource.setrlimit(resource.RLIMIT_NOFILE, (999, 999))
1416

1517
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
1618
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

0 commit comments

Comments
 (0)