75
75
- Run the tests::
76
76
77
77
cd Open-Knesset
78
- ./ manage.py test
78
+ python manage.py test
79
79
80
80
81
81
MS Windows
@@ -125,14 +125,14 @@ MS Windows
125
125
After basic installation: Tests and initial db
126
126
=================================================
127
127
128
- .. note :: MS Windows users: repleace ``./ manage.py`` with ``python manage.py``.
128
+ .. note :: Linux users: you replace ``python manage.py`` with ``./ manage.py``.
129
129
130
- - Run the tests: ``./ manage.py test ``
130
+ - Run the tests: ``python manage.py test ``
131
131
- Download and extract dev.db.zip _ or dev.db.bz2 _ (bz2 is smaller), place dev.db
132
132
into the ``Open-Knesset `` directory
133
- - Make sure db schema is upated: ``./ manage.py migrate ``
134
- - Create a superuser if needed: ``./ manage.py createsuperuser ``
135
- - To run the development server: ``./ manage.py runserver ``. Once done, you can
133
+ - Make sure db schema is upated: ``python manage.py migrate ``
134
+ - Create a superuser if needed: ``python manage.py createsuperuser ``
135
+ - To run the development server: ``python manage.py runserver ``. Once done, you can
136
136
access it via http://localhost:8000
137
137
138
138
.. _dev.db.zip : http://oknesset-devdb.s3.amazonaws.com/dev.db.zip
@@ -149,7 +149,7 @@ Before you code
149
149
150
150
.. important ::
151
151
152
- - MS Windows users: replace ``./ manage.py `` with ``python manage.py ``
152
+ - MS Windows users: replace ``python manage.py `` with ``python manage.py ``
153
153
- Run the manage.py commands from the `Open-Knesset ` directory, with the
154
154
**virtualenv activated **.
155
155
@@ -159,9 +159,9 @@ Please do this every time before you start developing.
159
159
- ``cd Open-Knesset ``
160
160
- ``
git pull [email protected] :hasadna/Open-Knesset.git master ``
161
161
- ``pip install -r requirements.txt `` # only needed if the file requirements.txt was changed; but can't hurt you if you run it every time.
162
- - ``./ manage.py migrate `` # do not create a superuser account
163
- - ``./ manage.py test `` # if there are any failures, contact the other developers to see if that's something you should worry about.
164
- - ``./ manage.py runserver `` # now you can play with the site using your browser
162
+ - ``python manage.py migrate `` # do not create a superuser account
163
+ - ``python manage.py test `` # if there are any failures, contact the other developers to see if that's something you should worry about.
164
+ - ``python manage.py runserver `` # now you can play with the site using your browser
165
165
166
166
When you code
167
167
---------------
@@ -171,7 +171,7 @@ General
171
171
172
172
- Write tests for everything that you write.
173
173
- Keep performance in mind - test the number of db queries your code performs
174
- using ``./ manage.py runserver `` and access a page that runs the code you
174
+ using ``python manage.py runserver `` and access a page that runs the code you
175
175
changed. See the output of the dev-server before and after your change.
176
176
177
177
Adding a field to existing model
@@ -195,7 +195,7 @@ the code.
195
195
After you code
196
196
~~~~~~~~~~~~~~~~
197
197
198
- - ``./ manage.py test `` # make sure you didn't break anything
198
+ - ``python manage.py test `` # make sure you didn't break anything
199
199
- ``git status `` # to see what changes you made
200
200
- ``git diff filename `` # to see what changed in a specific file
201
201
- ``git add filename `` # for each file you changed/added.
0 commit comments