Commit 7beea81e00b756d4302f75c62504f43b10df3d94

Authored by Lucas Kanashiro
1 parent d5d1b9be

Updated fabfile to load data of fixture

In django 1.7
Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
fabfile.py
... ... @@ -123,11 +123,12 @@ def manage(command):
123 123  
124 124  
125 125 def syncdb():
126   - manage('syncdb')
  126 + manage('syncdb --no-initial-data')
127 127  
128 128  
129 129 def migrate():
130 130 manage('migrate')
  131 + manage('loaddata super_archives/fixture/initial_data.json')
131 132  
132 133  
133 134 def collectstatic():
... ... @@ -260,6 +261,8 @@ def deploy(noprovision=False):
260 261 syncdb()
261 262 migrate()
262 263  
  264 + build_schema()
  265 +
263 266 sudo('supervisorctl start all')
264 267  
265 268  
... ...