Skip to content

Commit ccf0a7c

Browse files
committed
Simplify python3 manage.py to ./manage.py
1 parent cbbbb30 commit ccf0a7c

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

docs/site/installation.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,30 +78,30 @@ VNOJ uses `sass` and `autoprefixer` to generate the site stylesheets. VNOJ comes
7878
Now, collect static files into `STATIC_ROOT` as specified in `dmoj/local_settings.py`.
7979

8080
```shell-session
81-
(vnojsite) $ python3 manage.py collectstatic
81+
(vnojsite) $ ./manage.py collectstatic
8282
```
8383

8484
You will also need to generate internationalization files.
8585

8686
```shell-session
87-
(vnojsite) $ python3 manage.py compilemessages
88-
(vnojsite) $ python3 manage.py compilejsi18n
87+
(vnojsite) $ ./manage.py compilemessages
88+
(vnojsite) $ ./manage.py compilejsi18n
8989
```
9090

9191
## Setting up database tables
9292

9393
We must generate the schema for the database, since it is currently empty.
9494

9595
```shell-session
96-
(vnojsite) $ python3 manage.py migrate
96+
(vnojsite) $ ./manage.py migrate
9797
```
9898

9999
Next, load some initial data so that your install is not entirely blank.
100100

101101
```shell-session
102-
(vnojsite) $ python3 manage.py loaddata navbar
103-
(vnojsite) $ python3 manage.py loaddata language_small
104-
(vnojsite) $ python3 manage.py loaddata demo
102+
(vnojsite) $ ./manage.py loaddata navbar
103+
(vnojsite) $ ./manage.py loaddata language_small
104+
(vnojsite) $ ./manage.py loaddata demo
105105
```
106106

107107
!> Keep in mind that the `demo` fixture creates a superuser account with a username and password of `admin`. If your
@@ -110,7 +110,7 @@ site is exposed to others, you should change the user's password or remove the u
110110
You should create an admin account with which to log in initially.
111111

112112
```shell-session
113-
(vnojsite) $ python3 manage.py createsuperuser
113+
(vnojsite) $ ./manage.py createsuperuser
114114
```
115115

116116
## Setting up Celery
@@ -132,13 +132,13 @@ We will test that Celery works soon.
132132
Now, you should verify that everything is going according to plan.
133133

134134
```shell-session
135-
(vnojsite) $ python3 manage.py check
135+
(vnojsite) $ ./manage.py check
136136
```
137137

138138
At this point, you should attempt to run the server, and see if it all works.
139139

140140
```shell-session
141-
(vnojsite) $ python3 manage.py runserver 0.0.0.0:8000
141+
(vnojsite) $ ./manage.py runserver 0.0.0.0:8000
142142
```
143143

144144
You should Ctrl-C to exit after verifying.
@@ -149,7 +149,7 @@ We will set up a proper webserver using nginx and uWSGI soon.
149149
You should also test to see if `bridged` runs.
150150

151151
```shell-session
152-
(vnojsite) $ python3 manage.py runbridged
152+
(vnojsite) $ ./manage.py runbridged
153153
```
154154

155155
If there are no errors after about 10 seconds, it probably works.

docs/site/updating.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ Dependencies may have changed since the last time you updated, so install any mi
2121
The database schema might also have changed, so update it.
2222

2323
```
24-
(vnojsite) $ python3 manage.py migrate
25-
(vnojsite) $ python3 manage.py check
24+
(vnojsite) $ ./manage.py migrate
25+
(vnojsite) $ ./manage.py check
2626
```
2727

2828
Finally, update any static files that may have changed.
2929

3030
```
3131
(vnojsite) $ ./make_style.sh
32-
(vnojsite) $ python3 manage.py collectstatic
33-
(vnojsite) $ python3 manage.py compilemessages
34-
(vnojsite) $ python3 manage.py compilejsi18n
32+
(vnojsite) $ ./manage.py collectstatic
33+
(vnojsite) $ ./manage.py compilemessages
34+
(vnojsite) $ ./manage.py compilejsi18n
3535
```
3636

3737
That's it! You may wish to condense the above steps into a script you can run at a later time.

0 commit comments

Comments
 (0)