File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
share/management/commands Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 22import os
33import sys
44
5- import django
6-
75if os .environ .get ('GEVENT' ) == '1' :
86 from gevent import monkey
97 monkey .patch_all ()
1412if __name__ == "__main__" :
1513 os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "project.settings" )
1614
17- # Override default port for `runserver` command
18- django .setup ()
19- from django .core .management .commands .runserver import Command as runserver
20- runserver .default_port = "38000"
21-
2215 from django .core .management import execute_from_command_line
2316
2417 execute_from_command_line (sys .argv )
Original file line number Diff line number Diff line change 1+ from django .contrib .staticfiles .management .commands .runserver import Command as RunserverCommand
2+
3+
4+ class Command (RunserverCommand ):
5+ # Override default port for `runserver` command
6+ default_port = "38000"
You can’t perform that action at this time.
0 commit comments