mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-12-18 06:45:04 +01:00
remove trailing whitespaces
This commit is contained in:
@@ -42,7 +42,7 @@ from recommonmark.transform import AutoStructify
|
||||
|
||||
extensions = [
|
||||
'sphinx_rtd_theme',
|
||||
'sphinx.ext.autodoc',
|
||||
'sphinx.ext.autodoc',
|
||||
'recommonmark',
|
||||
]
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ This works by creating a child logger of the extension logger which propagates a
|
||||
to the parent (extensions) logger.
|
||||
|
||||
## Changing the Logging Level
|
||||
By default, the extension logger's level is set to `DEBUG`.
|
||||
By default, the extension logger's level is set to `DEBUG`.
|
||||
To change this, uncomment (or add) the following line in `local.py`.
|
||||
|
||||
```python
|
||||
|
||||
@@ -12,8 +12,8 @@ To register a UrlHook class you would do the following:
|
||||
@hooks.register('url_hook')
|
||||
def register_urls():
|
||||
return UrlHook(app_name.urls, 'app_name', r^'app_name/')
|
||||
|
||||
|
||||
|
||||
|
||||
The `UrlHook` class specifies some parameters/instance variables required for URL pattern inclusion.
|
||||
|
||||
`UrlHook(urls, app_name, base_url)`
|
||||
@@ -36,7 +36,7 @@ The app's `urls.py` would look like so:
|
||||
|
||||
from django.conf.urls import url
|
||||
import plugin.views
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
url(r^'index$', plugins.views.index, name='index'),
|
||||
]
|
||||
|
||||
@@ -366,7 +366,7 @@ Here is an example debug config for Celery:
|
||||
"module": "celery",
|
||||
"cwd": "${workspaceFolder}/myauth",
|
||||
"console": "integratedTerminal",
|
||||
"args": [
|
||||
"args": [
|
||||
"-A",
|
||||
"myauth",
|
||||
"worker",
|
||||
@@ -391,7 +391,7 @@ Finally it makes sense to have a dedicated debug config for running unit tests.
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/myauth/manage.py",
|
||||
"args": [
|
||||
"test",
|
||||
"test",
|
||||
"--keepdb",
|
||||
"--debug-mode",
|
||||
"--failfast",
|
||||
|
||||
@@ -12,13 +12,13 @@ clients
|
||||
===========
|
||||
|
||||
.. automodule:: esi.clients
|
||||
:members: esi_client_factory
|
||||
:members: esi_client_factory
|
||||
:undoc-members:
|
||||
|
||||
decorators
|
||||
===========
|
||||
|
||||
.. automodule:: esi.decorators
|
||||
.. automodule:: esi.decorators
|
||||
:members:
|
||||
:undoc-members:
|
||||
|
||||
|
||||
@@ -10,5 +10,5 @@ auth_utils
|
||||
===========
|
||||
|
||||
.. automodule:: allianceauth.tests.auth_utils
|
||||
:members:
|
||||
:members:
|
||||
:undoc-members:
|
||||
|
||||
@@ -69,7 +69,7 @@ mv phpBB3 /var/www/forums
|
||||
|
||||
The web server needs read/write permission to this folder
|
||||
|
||||
Apache: `chown -R www-data:www-data /var/www/forums`
|
||||
Apache: `chown -R www-data:www-data /var/www/forums`
|
||||
Nginx: `chown -R nginx:nginx /var/www/forums`
|
||||
|
||||
```eval_rst
|
||||
|
||||
@@ -48,7 +48,7 @@ Now we need to move this to our web directory. Usually `/var/www/forums`.
|
||||
|
||||
The web server needs read/write permission to this folder
|
||||
|
||||
Apache: `chown -R www-data:www-data /var/www/forums`
|
||||
Apache: `chown -R www-data:www-data /var/www/forums`
|
||||
Nginx: `chown -R nginx:nginx /var/www/forums`
|
||||
|
||||
```eval_rst
|
||||
|
||||
@@ -45,7 +45,7 @@ Place your virtual host configuration in the appropriate section within `/etc/ht
|
||||
```
|
||||
<VirtualHost *:80>
|
||||
ServerName auth.example.com
|
||||
|
||||
|
||||
ProxyPassMatch ^/static !
|
||||
ProxyPassMatch ^/robots.txt !
|
||||
|
||||
|
||||
@@ -16,9 +16,9 @@ Nginx is lightweight for a reason. It doesn't try to do everything internally an
|
||||
|
||||
```eval_rst
|
||||
+-----------+----------------------------------------+
|
||||
| Apache | Nginx Replacement |
|
||||
| Apache | Nginx Replacement |
|
||||
+===========+========================================+
|
||||
| mod_php | php5-fpm or php7-fpm (PHP FastCGI) |
|
||||
| mod_php | php5-fpm or php7-fpm (PHP FastCGI) |
|
||||
+-----------+----------------------------------------+
|
||||
| mod_wsgi | Gunicorn or other external WSGI server |
|
||||
+-----------+----------------------------------------+
|
||||
|
||||
@@ -143,7 +143,7 @@ System check identified no issues (0 silenced).
|
||||
|
||||
Make sure you are in your venv!
|
||||
|
||||
First we create a list of all installed packages in your venv. You can use this list later as reference to see what packages should be installed.
|
||||
First we create a list of all installed packages in your venv. You can use this list later as reference to see what packages should be installed.
|
||||
|
||||
```bash
|
||||
pip freeze > requirements.txt
|
||||
@@ -262,7 +262,7 @@ ls /home/allianceserver/venv/auth /home/allianceserver/venv
|
||||
|
||||
If the output shows these two folders you should be safe to proceed:
|
||||
|
||||
- `auth`
|
||||
- `auth`
|
||||
- `auth_old`
|
||||
|
||||
Run these commands to remove your current venv and switch back to the old venv for auth:
|
||||
|
||||
Reference in New Issue
Block a user