mirror of
https://github.com/django/daphne.git
synced 2024-11-25 01:03:45 +03:00
Add --nostatic and --insecure args to runserver command
This commit is contained in:
parent
afd0d51b83
commit
94515a0cad
|
@ -73,6 +73,18 @@ class Command(RunserverCommand):
|
||||||
"seconds (default: 5)"
|
"seconds (default: 5)"
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--nostatic",
|
||||||
|
action="store_false",
|
||||||
|
dest="use_static_handler",
|
||||||
|
help="Tells Django to NOT automatically serve static files at STATIC_URL.",
|
||||||
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--insecure",
|
||||||
|
action="store_true",
|
||||||
|
dest="insecure_serving",
|
||||||
|
help="Allows serving static files even if DEBUG is False.",
|
||||||
|
)
|
||||||
|
|
||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
self.http_timeout = options.get("http_timeout", None)
|
self.http_timeout = options.get("http_timeout", None)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user