Skip to content

Commit a5ee355

Browse files
committed
./manage.py to python manage.py (windows). Add unpacking
1 parent 9db7481 commit a5ee355

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

README.rst

+12-12
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Linux
7575
- Run the tests::
7676

7777
cd Open-Knesset
78-
./manage.py test
78+
python manage.py test
7979
8080

8181
MS Windows
@@ -125,14 +125,14 @@ MS Windows
125125
After basic installation: Tests and initial db
126126
=================================================
127127

128-
.. note:: MS Windows users: repleace ``./manage.py`` with ``python manage.py``.
128+
.. note:: Linux users: you replace ``python manage.py`` with ``./manage.py``.
129129

130-
- Run the tests: ``./manage.py test``
130+
- Run the tests: ``python manage.py test``
131131
- Download and extract dev.db.zip_ or dev.db.bz2_ (bz2 is smaller), place dev.db
132132
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
136136
access it via http://localhost:8000
137137

138138
.. _dev.db.zip: http://oknesset-devdb.s3.amazonaws.com/dev.db.zip
@@ -149,7 +149,7 @@ Before you code
149149

150150
.. important::
151151

152-
- MS Windows users: replace ``./manage.py`` with ``python manage.py``
152+
- MS Windows users: replace ``python manage.py`` with ``python manage.py``
153153
- Run the manage.py commands from the `Open-Knesset` directory, with the
154154
**virtualenv activated**.
155155

@@ -159,9 +159,9 @@ Please do this every time before you start developing.
159159
- ``cd Open-Knesset``
160160
- ``git pull [email protected]:hasadna/Open-Knesset.git master``
161161
- ``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
165165

166166
When you code
167167
---------------
@@ -171,7 +171,7 @@ General
171171

172172
- Write tests for everything that you write.
173173
- 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
175175
changed. See the output of the dev-server before and after your change.
176176

177177
Adding a field to existing model
@@ -195,7 +195,7 @@ the code.
195195
After you code
196196
~~~~~~~~~~~~~~~~
197197

198-
- ``./manage.py test`` # make sure you didn't break anything
198+
- ``python manage.py test`` # make sure you didn't break anything
199199
- ``git status`` # to see what changes you made
200200
- ``git diff filename`` # to see what changed in a specific file
201201
- ``git add filename`` # for each file you changed/added.

docs/devel/source/environment/tests_db.rst

+8-7
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ an initial development db.
99

1010
.. important::
1111

12-
- MS Windows users: replace ``./manage.py`` with ``python manage.py``
12+
- Linux users: you can replace ``python manage.py`` with ``./manage.py`` for
13+
less typing
1314
- Run the manage.py commands from the `Open-Knesset` directory, with the
1415
virtualenv activated.
1516

@@ -20,13 +21,13 @@ Running Tests
2021
.. code-block:: sh
2122
2223
cd Open-Knesset
23-
./manage.py test
24+
python manage.py test
2425
2526
Download the Development DB
2627
===============================
2728

28-
Download and extract dev.db.zip_ or dev.db.bz2_ (bz2 is smaller). **Place dev.db in
29-
the `Open-Knesset` directory**.
29+
Download and extract dev.db.zip_ or dev.db.bz2_ (bz2 is smaller). After
30+
unpacking, **place dev.db in the `Open-Knesset` directory**.
3031

3132
.. _dev.db.zip: http://oknesset-devdb.s3.amazonaws.com/dev.db.zip
3233
.. _dev.db.bz2: http://oknesset-devdb.s3.amazonaws.com/dev.db.bz2
@@ -35,15 +36,15 @@ To make sure everything is up to date, run the database schema migrations:
3536

3637
.. code-block:: sh
3738
38-
./manage.py migrate
39+
python manage.py migrate
3940
4041
4142
You might want to create your own superuser:
4243

4344

4445
.. code-block:: sh
4546
46-
./manage.py createsuperuser
47+
python manage.py createsuperuser
4748
4849
4950
Running the Development server
@@ -53,7 +54,7 @@ To run the development server:
5354

5455
.. code-block:: sh
5556
56-
./manage.py runserver
57+
python manage.py runserver
5758
5859
Once done, you can access it via http://localhost:8000 .
5960

0 commit comments

Comments
 (0)