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
@@ -135,25 +135,25 @@ If you get an error like this:
135
135
createdb: database creation failed: ERROR: new collation (en_US.UTF-8) is incompatible with the collation of the template database (en_GB.UTF-8)
136
136
```
137
137
138
-
Then you will have to change the value of the`-l`option to what your database was set up with initially.
138
+
Then you will have to change the value of the`-l`option to what your database was set up with initially.
139
139
````
140
140
141
-
To change database configuration, you can add the following setting to`pydotorg/settings/local.py`(or you can use the`DATABASE_URL`environment variable):
141
+
To change database configuration, you can add the following setting to`pydotorg/settings/local.py`(or you can use the`DATABASE_URL`environment variable):
If you prefer to use a simpler setup for your database you can use SQLite. Set the`DATABASE_URL`environment variable for the current terminal session:
149
+
If you prefer to use a simpler setup for your database you can use SQLite. Set the`DATABASE_URL`environment variable for the current terminal session:
150
150
151
151
```
152
152
$ export DATABASE_URL="sqlite:///pythondotorg.db"
153
153
```
154
154
155
155
```{note}
156
-
If you prefer to set this variable in a more permanent way add the above line in your`.bashrc`file. Then it will be set for all terminal sessions in your system.
156
+
If you prefer to set this variable in a more permanent way add the above line in your`.bashrc`file. Then it will be set for all terminal sessions in your system.
157
157
```
158
158
159
159
Whichever database type you chose, now it's time to run migrations:
@@ -162,15 +162,15 @@ Whichever database type you chose, now it's time to run migrations:
162
162
$ ./manage.py migrate
163
163
```
164
164
165
-
To compile and compress static media, you will need*compass*and*yui-compressor*:
165
+
To compile and compress static media, you will need*compass*and*yui-compressor*:
166
166
167
167
```
168
168
$ gem install bundler
169
169
$ bundle install
170
170
```
171
171
172
172
```{note}
173
-
To install*yui-compressor*, use your OS's package manager or download it directly then add the executable to your`PATH`.
173
+
To install*yui-compressor*, use your OS's package manager or download it directly then add the executable to your`PATH`.
174
174
```
175
175
176
176
To create initial data for the most used applications, run:
@@ -179,7 +179,7 @@ To create initial data for the most used applications, run:
179
179
$ ./manage.py create_initial_data
180
180
```
181
181
182
-
See[create_initial_data](https://pythondotorg.readthedocs.io/commands.html#command-create-initial-data)for the command options to specify while creating initial data.
182
+
See`pythondotorg`[create_initial_data](https://pythondotorg.readthedocs.io/commands.html#command-create-initial-data)for the command options to specify while creating initial data.
183
183
184
184
Finally, start the development server:
185
185
@@ -190,19 +190,24 @@ $ ./manage.py runserver
190
190
Optional: Install Elasticsearch
191
191
-------------------------------
192
192
193
-
The search feature in Python.org uses Elasticsearch engine. If you want to test out this feature, you will need to install[Elasticsearch](https://www.elastic.co/downloads/elasticsearch).
193
+
The search feature in Python.org uses Elasticsearch engine. If you want to test out this feature, you will need to install[Elasticsearch](https://www.elastic.co/downloads/elasticsearch).
194
194
195
-
Once you have it installed, update the URL value of`HAYSTACK_CONNECTIONS`settings in`pydotorg/settings/local.py`to your local ElasticSearch server.
195
+
Once you have it installed, update the URL value of`HAYSTACK_CONNECTIONS`settings in`pydotorg/settings/local.py`to your local ElasticSearch server.
196
196
197
197
Generating CSS files automatically
198
198
----------------------------------
199
199
200
-
Due to performance issues of [django-pipeline](https://github.com/jazzband/django-pipeline/issues/313), we are using a dummy compiler `pydotorg.compilers.DummySASSCompiler` in development mode. To generate CSS files, use `sass` itself in a separate terminal window:
200
+
```{warning}
201
+
When editing frontend styles, ensure you ONLY edit the `.scss` files.
201
202
203
+
These will then be compiled into `.css` files automatically.
0 commit comments