Commits

Osiloke Emoekpere committed 28d186f

init_database for django script

  • Participants
  • Parent commits f86bc02

Comments (0)

Files changed (1)

 		print "Creating django block <%s>" % project_dir
 		self.deploy("startproject", "project", self.block) 
 
+	def init_database(self):
+		cd(self.block)
+		self.python("manage.py", "syncdb", "--noinput", _err=ERROR_FILE)
+		self.python("manage.py", "migrate", "--noinput", _err=ERROR_FILE)
+		self.python("manage.py", "collectstatic", "--noinput", _err=ERROR_FILE) 
+
 	def settings_path(self):
 		return "settings.py"