Project

General

Profile

Django project management commands » History » Version 2

Alex V Koval, 02/24/2014 05:24 PM

1 1 Alex V Koval
h1. Django project management commands
2
3
4
 # Get the code.
5
6
  <pre>hg clone ssh://repos-location to-dir</pre>
7 2 Alex V Koval
  
8
  Copy and edit settings from example-settings.py in your project on this step.
9 1 Alex V Koval
 # Install environment
10
  <pre>fab env_install</pre>
11
 # Install dependencies
12
  <pre>fab depup</pre>
13
 # Get database
14
   <pre>fab get_db</pre>
15
 # Upload database
16
   <pre>fab reinst_db</pre>
17
18
h2. Optional steps
19
20
 # Some projects may require downloading project data:
21
 <pre>fab rsync_data</pre>
22
 # Sometimes some additional modules needs to be installed. This is usually done via fab, please refer to appropriate command there. For example if you get error like "Error: No module named haystack" and there are fab procedure: "fab install_haystack" so you should run it.