Browse Source

Docs: Document how to create migrations

# Last 5 commit messages
# ----------------------
# 30eead5 Remove custom user app from sandbox [Maik Hoepfel]
# ee3ee02 Drop create_migration.py helper [Maik Hoepfel]
# a77e78c Don't show country field if only one is available [David Winterbottom]
# b5790aa Handle products without a category in GA subission [David Winterbottom]
# 39e0932 Merge pull request #782 from tangentlabs/feature/add_eway_extension_to_docs [David Winterbottom]
master
Maik Hoepfel 12 years ago
parent
commit
a52aaecd9e
1 changed files with 13 additions and 4 deletions
  1. 13
    4
      docs/source/internals/contributing/development-environment.rst

+ 13
- 4
docs/source/internals/contributing/development-environment.rst View File

4
 
4
 
5
 Fork the repo and run::
5
 Fork the repo and run::
6
 
6
 
7
-    git clone git@github.com:<username>/django-oscar.git
8
-    cd django-oscar
9
-    mkvirtualenv oscar  # using virtualenvwrapper
10
-    make install
7
+    $ git clone git@github.com:<username>/django-oscar.git
8
+    $ cd django-oscar
9
+    $ mkvirtualenv oscar  # using virtualenvwrapper
10
+    $ make install
11
 
11
 
12
 The :doc:`sandbox </internals/sandbox>` site can be used to test our changes in
12
 The :doc:`sandbox </internals/sandbox>` site can be used to test our changes in
13
 a browser. It is easily created with ``make sandbox``.
13
 a browser. It is easily created with ``make sandbox``.
14
+
15
+Creating migrations
16
+===================
17
+
18
+As the sandbox is a vanilla Oscar site, it is what we use to build migrations
19
+against::
20
+
21
+    $ make sandbox
22
+    $ sites/sandbox/manage.py schemamigration $YOURAPP --auto
14
     
23
     
15
 Writing LESS/CSS
24
 Writing LESS/CSS
16
 ================
25
 ================

Loading…
Cancel
Save