Add command to run the development server

This commit is contained in:
Oliver Walters 2020-08-21 21:49:03 +10:00
parent ef1e598341
commit d8f9f95cb4

View File

@ -242,3 +242,13 @@ def backup(c):
manage(c, 'dbbackup')
manage(c, 'mediabackup')
@task(help={'address': 'Server address:port'})
def server(c, address="127.0.0.1:8000"):
"""
Launch a (deveopment) server using Django's in-built webserver.
Note: This is *not* sufficient for a production installation.
"""
manage(c, "runserver {address}".format(address=address))