You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You will now need to configure `dmoj/local_settings.py`. You should make a copy of [this sample settings file](https://github.com/DMOJ/docs/blob/master/sample_files/local_settings.py) and read through it, making changes as necessary. Most importantly, you will want to update MariaDB credentials.
64
+
You will now need to configure `dmoj/local_settings.py`. You should make a copy of [this sample settings file](https://github.com/VNOI-Admin/vnoj-docs/blob/master/sample_files/local_settings.py) and read through it, making changes as necessary. Most importantly, you will want to update MariaDB credentials.
65
65
66
66
?> Leave debug mode on for now; we'll disable it later after we've verified that the site works. <br> <br>
67
67
Generally, it's recommended that you add your settings in `dmoj/local_settings.py` rather than modifying `dmoj/settings.py` directly. `settings.py` will automatically read `local_settings.py` and load it, so write your configuration there.
@@ -87,6 +87,20 @@ You will also need to generate internationalization files.
87
87
(vnojsite) $ ./manage.py compilejsi18n
88
88
```
89
89
90
+
## Setting up Celery
91
+
92
+
The VNOJ uses Celery workers to perform most of its heavy lifting, such as batch rescoring submissions. We will use Redis as its broker, though note that other brokers that Celery supports will work as well.
93
+
94
+
Start up the Redis server, which is needed by the Celery workers.
95
+
96
+
```shell-session
97
+
$ service redis-server start
98
+
```
99
+
100
+
Configure `local_settings.py` by uncommenting `CELERY_BROKER_URL` and `CELERY_RESULT_BACKEND`. By default, Redis listens on localhost port 6379, which is reflected in `local_settings.py`. You will need to update the addresses if you changed Redis's settings.
101
+
102
+
We will test that Celery works soon.
103
+
90
104
## Setting up database tables
91
105
92
106
We must generate the schema for the database, since it is currently empty.
@@ -112,20 +126,6 @@ You should create an admin account with which to log in initially.
112
126
(vnojsite) $ ./manage.py createsuperuser
113
127
```
114
128
115
-
## Setting up Celery
116
-
117
-
The VNOJ uses Celery workers to perform most of its heavy lifting, such as batch rescoring submissions. We will use Redis as its broker, though note that other brokers that Celery supports will work as well.
118
-
119
-
Start up the Redis server, which is needed by the Celery workers.
120
-
121
-
```shell-session
122
-
$ service redis-server start
123
-
```
124
-
125
-
Configure `local_settings.py` by uncommenting `CELERY_BROKER_URL` and `CELERY_RESULT_BACKEND`. By default, Redis listens on localhost port 6379, which is reflected in `local_settings.py`. You will need to update the addresses if you changed Redis's settings.
126
-
127
-
We will test that Celery works soon.
128
-
129
129
## Running the server
130
130
131
131
Now, you should verify that everything is going according to plan.
0 commit comments