mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
* See PyProjectSynchronizer for entry point * DownloadAction refactored to extract download * VagrantSupportImpl refactored to fetch mapped folders
12 lines
314 B
Python
12 lines
314 B
Python
"""
|
|
Accepts 2 args: project name and dir where one should be created
|
|
"""
|
|
import sys, os
|
|
from django.core import management
|
|
|
|
project_name = sys.argv[1]
|
|
path = sys.argv[2]
|
|
if not os.path.exists(path):
|
|
os.mkdir(path)
|
|
|
|
management.execute_from_command_line(argv=["django-admin", "startproject", project_name, path]) |