Unverified Commit 1b8bd42c authored by Julien Palard's avatar Julien Palard
Browse files

Rename references to project.

parent 4e771add
......@@ -6,7 +6,7 @@
You need **docker** and **docker-compose**. You have to create a local settings file:
```bash
$ cat hkis/local_settings.py
$ cat hackinscience_org/local_settings.py
CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
......
......@@ -58,7 +58,7 @@ pip install -r requirements.txt
To also run the moulinette, you'll need to install `firejail` and `redis` then run:
```
celery -A hkis worker
celery -A hackinscience_org worker
```
......
......@@ -9,7 +9,7 @@ services:
celery:
build: .
command: celery -A hkis worker
command: celery -A hackinscience_org worker
volumes:
- .:/code
depends_on:
......
from hkis.celery import app
from hackinscience_org.celery import app
__all__ = ("app",)
......@@ -7,7 +7,7 @@ import os
import django
from channels.routing import get_default_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hkis.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hackinscience_org.settings")
django.setup()
......
......@@ -2,8 +2,8 @@ import os
from celery import Celery
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hkis.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hackinscience_org.settings")
app = Celery("hkis")
app = Celery("hackinscience_org")
app.config_from_object("django.conf:settings", namespace="CELERY")
app.autodiscover_tasks()
"""
Django settings for hkis project.
Django settings for hackinscience_org project.
Generated by 'django-admin startproject' using Django 2.0.1.
......@@ -106,7 +106,7 @@ LOGGING = {
},
}
ROOT_URLCONF = "hkis.urls"
ROOT_URLCONF = "hackinscience_org.urls"
TEMPLATES = [
{
......@@ -128,7 +128,7 @@ TEMPLATES = [
CRISPY_TEMPLATE_PACK = "bootstrap4"
WSGI_APPLICATION = "hkis.wsgi.application"
WSGI_APPLICATION = "hackinscience_org.wsgi.application"
# Database
......@@ -191,7 +191,7 @@ REST_FRAMEWORK = {
"PAGE_SIZE": 100,
}
ASGI_APPLICATION = "hkis.routing.application"
ASGI_APPLICATION = "hackinscience_org.routing.application"
CHANNEL_LAYERS = {
"default": {
......
......@@ -11,6 +11,6 @@ import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hkis.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hackinscience_org.settings")
application = get_wsgi_application()
......@@ -3,7 +3,7 @@ import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hkis.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hackinscience_org.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
......
"""Run using:
celery -A hkis worker
celery -A hackinscience_org worker
"""
import asyncio
......
[flake8]
max-line-length = 88
max-complexity = 10
exclude = website/migrations/,hkis/settings.py
exclude = website/migrations/,hackinscience_org/settings.py
;W503 for black (operators and newlines)
ignore = W503
......@@ -44,13 +44,13 @@ commands =
coverage report --fail-under 70
[testenv:flake8]
commands = flake8 hkis/ website/ scripts/
commands = flake8 hackinscience_org/ website/ scripts/
[testenv:black]
commands = black --check --diff --exclude migrations/ hkis/ website/ scripts/
commands = black --check --diff --exclude migrations/ hackinscience_org/ website/ scripts/
[testenv:mypy]
commands = mypy --ignore-missing hkis/ website/ scripts/
commands = mypy --ignore-missing hackinscience_org/ website/ scripts/
[testenv:pylint]
commands = pylint --ignore settings.py,tests.py --disable=too-many-ancestors --load-plugins pylint_django --django-settings-module=hkis.settings hkis website scripts/fetch.py scripts/push.py
commands = pylint --ignore settings.py,tests.py --disable=too-many-ancestors --load-plugins pylint_django --django-settings-module=hackinscience_org.settings hkis website scripts/fetch.py scripts/push.py
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment