def init_site():
site_name = '<STR_LIT>'<EOL>dir_name = sys.argv[<NUM_LIT:1>] if len(sys.argv) > <NUM_LIT:1> else site_name<EOL>settings = site_name + "<STR_LIT>"<EOL>template_filename = resource_filename(bowercache.__name__,<EOL>'<STR_LIT>')<EOL>cwd = os.getcwd()<EOL>full_dir_name = os.path.abspath(os.path.join(cwd, dir_name))<EOL>startproject_args = ['<STR_LIT>', site_name]<EOL>if dir_name != site_name:<EOL><INDENT>startproject_args.append(dir_name)<EOL><DEDENT>management.call_command(*startproject_args, template=template_filename)<EOL>os.environ["<STR_LIT>"] = settings<EOL>sys.path.insert(<NUM_LIT:0>, full_dir_name)<EOL>from django import conf<EOL>reload(conf)<EOL>reload(management)<EOL>management.call_command('<STR_LIT>', interactive=False)<EOL>management.call_command('<STR_LIT>', interactive=False)<EOL>management.call_command('<STR_LIT>', username='<STR_LIT>',<EOL>email='<STR_LIT>', interactive=False)<EOL>os.mkdir(conf.settings.REPO_ROOT)<EOL>
Initialize a Bower Cache site using the template.