Management commands
Django FTP server add some commands to manage.py commands.
ftpserver
Start FTP server.
Usage:
$ python manage.py ftpserver [options] [host:port]
[host:port] is bind address for FTP server.
For example, it binds to address of 10.0.0.1:21:
$ python manage.py ftpserver 10.0.0.1:21
Keep in mind that you need root permissions if you use well known ports (0 - 1023) for ftpserver.
Option |
Description |
|---|---|
|
become background service. |
|
filename to write process id (PID). |
|
timeout for remote client. |
|
Passive ports. eg. 12345,30000-50000 |
|
masquerade address. |
|
user for access to file. |
|
TLS certificate file. |
|
TLS private key file. |
|
Use sendfile. |
createftpuseraccount
Create a FTP user account (FTPUserAccount record).
Usage:
$ python manage.py createftpuseraccount [options] <username> <group> [home_dir]
createftpusergroup
Create a FTP user group (FTPUserGroup record).
Usage:
$ python manage.py createftpusergroup [options] <name> [home_dir]