diff --git a/.envs/docker/.django b/.envs/docker/.django deleted file mode 100644 index 48fbb2a6f..000000000 --- a/.envs/docker/.django +++ /dev/null @@ -1,23 +0,0 @@ -# General -# ------------------------------------------------------------------------------ -USE_DOCKER=yes -IPYTHONDIR=/app/.ipython - -# Redis -# ------------------------------------------------------------------------------ -REDIS_URL=redis://redis:6379/0 - -# Celery -CELERY_BROKER_URL=amqp://guest:guest@mq:5672/ -CELERY_RESULT_BACKEND=redis://redis:6379/2 -# Flower -CELERY_FLOWER_USER=debug -CELERY_FLOWER_PASSWORD=debug - -# OpenSearch -OPENSEARCH_HOST=opensearch:9200 -OPENSEARCH_INDEX_PREFIX=backoffice-backend-local - -# Airflow -AIRFLOW_BASE_URL=http://localhost:8080 -AIRFLOW_TOKEN=CHANGE_ME diff --git a/.envs/local/.postgres b/.envs/local/.postgres deleted file mode 100644 index 0bdd6eda2..000000000 --- a/.envs/local/.postgres +++ /dev/null @@ -1,7 +0,0 @@ -# PostgreSQL -# ------------------------------------------------------------------------------ -POSTGRES_HOST=postgres -POSTGRES_PORT=5432 -POSTGRES_DB=inspire -POSTGRES_USER=inspire -POSTGRES_PASSWORD=inspire \ No newline at end of file diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/backoffice/integration-tests.yml similarity index 100% rename from .github/workflows/integration-tests.yml rename to .github/workflows/backoffice/integration-tests.yml diff --git a/.github/workflows/test.yml b/.github/workflows/backoffice/test.yml similarity index 88% rename from .github/workflows/test.yml rename to .github/workflows/backoffice/test.yml index 1c08cf416..891b3f4db 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/backoffice/test.yml @@ -18,7 +18,7 @@ jobs: with: ref: ${{ inputs.ref }} image: cern-sis/inspire/backoffice - context: . + context: ./backoffice dockerfile: ./compose/production/django/Dockerfile secrets: inherit @@ -26,7 +26,7 @@ jobs: needs: build strategy: fail-fast: false - uses: ./.github/workflows/integration-tests.yml + uses: ./.github/workflows/backoffice/integration-tests.yml with: ref: ${{ inputs.ref }} image: "registry.cern.ch/cern-sis/inspire/backoffice@${{ needs.build.outputs.image-id }}" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fac8b9b65..895f04396 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,17 +17,5 @@ jobs: with: ref: ${{ inputs.ref }} - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - - name: black - uses: psf/black@stable - with: - options: "--verbose" - - - name: run flake8 - uses: julianwachholz/flake8-action@v2 - with: - checkName: "flake8" + - name: Pre-commit check + uses: pre-commit/action@v3.0.1 diff --git a/.github/workflows/pull-request-main-backoffice.yml b/.github/workflows/pull-request-main-backoffice.yml new file mode 100644 index 000000000..4a4fd8d82 --- /dev/null +++ b/.github/workflows/pull-request-main-backoffice.yml @@ -0,0 +1,18 @@ +name: Pull request main + +on: + pull_request_target: + branches: [main] + paths: + - 'backoffice/**' + +jobs: + lint: + uses: ./.github/workflows/lint.yml + with: + ref: ${{ github.ref }} + test: + uses: ./.github/workflows/backoffice/test.yml + with: + ref: ${{ github.event.pull_request.head.sha }} + secrets: inherit diff --git a/.github/workflows/pull-request-main.yml b/.github/workflows/pull-request-main-workflows.yml similarity index 75% rename from .github/workflows/pull-request-main.yml rename to .github/workflows/pull-request-main-workflows.yml index 8a045c73e..4c31cd1f5 100644 --- a/.github/workflows/pull-request-main.yml +++ b/.github/workflows/pull-request-main-workflows.yml @@ -3,14 +3,15 @@ name: Pull request main on: pull_request_target: branches: [main] - + paths: + - 'workflows/**' jobs: lint: uses: ./.github/workflows/lint.yml with: ref: ${{ github.ref }} test: - uses: ./.github/workflows/test.yml + uses: ./.github/workflows/workflows/test.yml with: ref: ${{ github.event.pull_request.head.sha }} secrets: inherit diff --git a/.github/workflows/push-main-backoffice.yml b/.github/workflows/push-main-backoffice.yml new file mode 100644 index 000000000..6ef067bdb --- /dev/null +++ b/.github/workflows/push-main-backoffice.yml @@ -0,0 +1,34 @@ +name: Push main + +on: + push: + branches: [main] + paths: + - 'backoffice/**' + +defaults: + run: + shell: bash + +jobs: + lint: + uses: ./.github/workflows/lint.yml + with: + ref: ${{ github.ref }} + test: + needs: lint + uses: ./.github/workflows/backoffice/test.yml + with: + ref: ${{ github.ref }} + secrets: inherit + deploy: + needs: test + runs-on: ubuntu-latest + steps: + - name: send event + uses: cern-sis/gh-workflows/.github/actions/kubernetes-project-new-images@v6.2.0 + with: + event-type: update + images: | + cern-sis/inspire/backoffice@${{ needs.test.outputs.image-id }} + token: ${{ secrets.PAT_FIRE_EVENTS_ON_CERN_SIS_KUBERNETES }} diff --git a/.github/workflows/push-main.yml b/.github/workflows/push-main-workflows.yml similarity index 88% rename from .github/workflows/push-main.yml rename to .github/workflows/push-main-workflows.yml index b07de7a73..9f1e7ba8f 100644 --- a/.github/workflows/push-main.yml +++ b/.github/workflows/push-main-workflows.yml @@ -3,6 +3,8 @@ name: Push main on: push: branches: [main] + paths: + - 'workflows/**' defaults: run: @@ -14,7 +16,7 @@ jobs: with: ref: ${{ github.ref }} test: - uses: ./.github/workflows/test.yml + uses: ./.github/workflows/workflows/test.yml with: ref: ${{ github.ref }} secrets: inherit diff --git a/.github/workflows/workflows/test.yml b/.github/workflows/workflows/test.yml new file mode 100644 index 000000000..c1c6bfd83 --- /dev/null +++ b/.github/workflows/workflows/test.yml @@ -0,0 +1,57 @@ +name: Tests + +on: + workflow_call: + inputs: + ref: + description: The reference to build + type: string + required: true + outputs: + image-id: + description: The ID of image that has been built + value: ${{ jobs.build.outputs.image-id }} + +defaults: + run: + shell: bash + +jobs: + build: + uses: ./.github/workflows/build.yml + with: + ref: ${{ inputs.ref }} + image: cern-sis/inspire/workflows + secrets: inherit + test: + needs: build + runs-on: ubuntu-latest + services: + redis: + image: redis + ports: + - 6379:6379 + postgres: + image: postgres:13 + env: + POSTGRES_USER: airflow + POSTGRES_PASSWORD: airflow + POSTGRES_DB: airflow + ports: + - 5432:5432 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ref: ${{ inputs.ref }} + + - name: Test + run: > + docker run + --network=host + -v "$(pwd)"/tests:/opt/airflow/tests + -v "$(pwd)"/airflow.cfg:/opt/airflow/airflow.cfg + -v "$(pwd)"/requirements-test.txt:/opt/airflow/requirements-test.txt + -v "$(pwd)"/data:/opt/airflow/data + registry.cern.ch/cern-sis/inspire/workflows@${{ needs.build.outputs.image-id }} + bash -c "pip install -r requirements-test.txt && airflow db init && pytest /opt/airflow/tests" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 232b90901..2268ebc48 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,18 +1,18 @@ repos: - - repo: https://github.com/psf/black - rev: "22.8.0" + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 hooks: - - id: black - - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v2.7.1" + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + - id: fix-byte-order-marker + - id: mixed-line-ending + - id: name-tests-test + args: [ --pytest-test-first ] + exclude: '^(?!factories/)' + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.5.2 hooks: - - id: prettier - - repo: https://github.com/pycqa/isort - rev: "5.12.0" - hooks: - - id: isort - - repo: https://github.com/pycqa/flake8 - rev: "3.9.2" - hooks: - - id: flake8 - args: ["--config=setup.cfg"] + - id: ruff + args: [ --fix, --unsafe-fixes ] + - id: ruff-format diff --git a/.python-version b/.python-version deleted file mode 100644 index 2419ad5b0..000000000 --- a/.python-version +++ /dev/null @@ -1 +0,0 @@ -3.11.9 diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt deleted file mode 100644 index 8fc9a19cf..000000000 --- a/CONTRIBUTORS.txt +++ /dev/null @@ -1 +0,0 @@ -Daniel Roy Greenfeld diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..8da23a86e --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +# Makefile + +# Set the AIRFLOW_HOME environment variable +export AIRFLOW_HOME=$(shell pwd)/workflows +export AIRFLOW_PROJ_DIR=$(AIRFLOW_HOME) + +# Default target +all: run + +run: + docker-compose up + +clean: + docker-compose down + +init: backoffice-init workflows-init + +backoffice-init: + docker-compose exec backoffice-webserver python manage.py create_groups + docker-compose exec backoffice-webserver python manage.py loaddata backoffice/users/fixtures/users.json + docker-compose exec backoffice-webserver python manage.py loaddata backoffice/users/fixtures/tokens.json + echo "Backoffice initialized" + +workflows-init: + docker-compose exec airflow-webserver /entrypoint airflow connections import ./scripts/connections/connections.json + docker-compose exec airflow-webserver /entrypoint airflow variables import ./scripts/variables/variables.json + echo "\033[31mCHANGE inspire_token in Admin->Variables\033[0m" + echo "Workflows initialized" diff --git a/.envs/local/.django b/backoffice/.envs/local/.django similarity index 81% rename from .envs/local/.django rename to backoffice/.envs/local/.django index 6674841e7..741037f70 100644 --- a/.envs/local/.django +++ b/backoffice/.envs/local/.django @@ -10,6 +10,7 @@ REDIS_URL=redis://redis:6379/0 # Celery CELERY_BROKER_URL=amqp://guest:guest@mq:5672/ CELERY_RESULT_BACKEND=redis://redis:6379/2 +CELERY_TASK_ALWAYS_EAGER=True # Flower CELERY_FLOWER_USER=debug CELERY_FLOWER_PASSWORD=debug @@ -19,5 +20,5 @@ OPENSEARCH_HOST=opensearch:9200 OPENSEARCH_INDEX_PREFIX=backoffice-backend-local # Airflow -AIRFLOW_BASE_URL=http://host.docker.internal:8082 -AIRFLOW_TOKEN=CHANGE_ME +AIRFLOW_BASE_URL=http://host.docker.internal:8080 +AIRFLOW_TOKEN=YWlyZmxvdzphaXJmbG93 diff --git a/.envs/docker/.postgres b/backoffice/.envs/local/.postgres similarity index 72% rename from .envs/docker/.postgres rename to backoffice/.envs/local/.postgres index 0bdd6eda2..330be0b80 100644 --- a/.envs/docker/.postgres +++ b/backoffice/.envs/local/.postgres @@ -1,7 +1,7 @@ # PostgreSQL # ------------------------------------------------------------------------------ -POSTGRES_HOST=postgres +POSTGRES_HOST=postgres-backoffice POSTGRES_PORT=5432 POSTGRES_DB=inspire POSTGRES_USER=inspire -POSTGRES_PASSWORD=inspire \ No newline at end of file +POSTGRES_PASSWORD=inspire diff --git a/compose/production/django/Dockerfile b/backoffice/Dockerfile similarity index 100% rename from compose/production/django/Dockerfile rename to backoffice/Dockerfile diff --git a/backoffice/__init__.py b/backoffice/__init__.py deleted file mode 100644 index 9c9b95346..000000000 --- a/backoffice/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -__version__ = "0.1.0" -__version_info__ = tuple(int(num) if num.isdigit() else num for num in __version__.replace("-", ".", 1).split(".")) diff --git a/backoffice/backoffice/__init__.py b/backoffice/backoffice/__init__.py new file mode 100644 index 000000000..3da9e5ff5 --- /dev/null +++ b/backoffice/backoffice/__init__.py @@ -0,0 +1,5 @@ +__version__ = "0.1.0" +__version_info__ = tuple( + int(num) if num.isdigit() else num + for num in __version__.replace("-", ".", 1).split(".") +) diff --git a/backoffice/conftest.py b/backoffice/backoffice/conftest.py similarity index 80% rename from backoffice/conftest.py rename to backoffice/backoffice/conftest.py index 9a364e392..1eac8e226 100644 --- a/backoffice/conftest.py +++ b/backoffice/backoffice/conftest.py @@ -5,10 +5,10 @@ @pytest.fixture(autouse=True) -def media_storage(settings, tmpdir): +def _media_storage(settings, tmpdir): settings.MEDIA_ROOT = tmpdir.strpath -@pytest.fixture +@pytest.fixture() def user(db) -> User: return UserFactory() diff --git a/backoffice/contrib/__init__.py b/backoffice/backoffice/contrib/__init__.py similarity index 100% rename from backoffice/contrib/__init__.py rename to backoffice/backoffice/contrib/__init__.py diff --git a/backoffice/contrib/sites/__init__.py b/backoffice/backoffice/contrib/sites/__init__.py similarity index 100% rename from backoffice/contrib/sites/__init__.py rename to backoffice/backoffice/contrib/sites/__init__.py diff --git a/backoffice/contrib/sites/migrations/0001_initial.py b/backoffice/backoffice/contrib/sites/migrations/0001_initial.py similarity index 99% rename from backoffice/contrib/sites/migrations/0001_initial.py rename to backoffice/backoffice/contrib/sites/migrations/0001_initial.py index 304cd6d7c..59647c850 100644 --- a/backoffice/contrib/sites/migrations/0001_initial.py +++ b/backoffice/backoffice/contrib/sites/migrations/0001_initial.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [] operations = [ diff --git a/backoffice/contrib/sites/migrations/0002_alter_domain_unique.py b/backoffice/backoffice/contrib/sites/migrations/0002_alter_domain_unique.py similarity index 99% rename from backoffice/contrib/sites/migrations/0002_alter_domain_unique.py rename to backoffice/backoffice/contrib/sites/migrations/0002_alter_domain_unique.py index 2c8d6dac0..4359049f8 100644 --- a/backoffice/contrib/sites/migrations/0002_alter_domain_unique.py +++ b/backoffice/backoffice/contrib/sites/migrations/0002_alter_domain_unique.py @@ -3,7 +3,6 @@ class Migration(migrations.Migration): - dependencies = [("sites", "0001_initial")] operations = [ diff --git a/backoffice/contrib/sites/migrations/0003_set_site_domain_and_name.py b/backoffice/backoffice/contrib/sites/migrations/0003_set_site_domain_and_name.py similarity index 100% rename from backoffice/contrib/sites/migrations/0003_set_site_domain_and_name.py rename to backoffice/backoffice/contrib/sites/migrations/0003_set_site_domain_and_name.py index 8b063f502..c893ca90c 100644 --- a/backoffice/contrib/sites/migrations/0003_set_site_domain_and_name.py +++ b/backoffice/backoffice/contrib/sites/migrations/0003_set_site_domain_and_name.py @@ -3,6 +3,7 @@ http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ + from django.conf import settings from django.db import migrations @@ -57,7 +58,6 @@ def update_site_backward(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [("sites", "0002_alter_domain_unique")] operations = [migrations.RunPython(update_site_forward, update_site_backward)] diff --git a/backoffice/contrib/sites/migrations/0004_alter_options_ordering_domain.py b/backoffice/backoffice/contrib/sites/migrations/0004_alter_options_ordering_domain.py similarity index 99% rename from backoffice/contrib/sites/migrations/0004_alter_options_ordering_domain.py rename to backoffice/backoffice/contrib/sites/migrations/0004_alter_options_ordering_domain.py index f7118ca81..095ca009b 100644 --- a/backoffice/contrib/sites/migrations/0004_alter_options_ordering_domain.py +++ b/backoffice/backoffice/contrib/sites/migrations/0004_alter_options_ordering_domain.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ("sites", "0003_set_site_domain_and_name"), ] diff --git a/backoffice/contrib/sites/migrations/__init__.py b/backoffice/backoffice/contrib/sites/migrations/__init__.py similarity index 100% rename from backoffice/contrib/sites/migrations/__init__.py rename to backoffice/backoffice/contrib/sites/migrations/__init__.py diff --git a/backoffice/fixtures/groups.json b/backoffice/backoffice/fixtures/groups.json similarity index 100% rename from backoffice/fixtures/groups.json rename to backoffice/backoffice/fixtures/groups.json diff --git a/backoffice/management/__init__.py b/backoffice/backoffice/management/__init__.py similarity index 100% rename from backoffice/management/__init__.py rename to backoffice/backoffice/management/__init__.py diff --git a/backoffice/management/apps.py b/backoffice/backoffice/management/apps.py similarity index 100% rename from backoffice/management/apps.py rename to backoffice/backoffice/management/apps.py diff --git a/backoffice/management/groups.py b/backoffice/backoffice/management/groups.py similarity index 100% rename from backoffice/management/groups.py rename to backoffice/backoffice/management/groups.py diff --git a/backoffice/management/management/__init__.py b/backoffice/backoffice/management/management/__init__.py similarity index 100% rename from backoffice/management/management/__init__.py rename to backoffice/backoffice/management/management/__init__.py diff --git a/backoffice/management/management/commands/__init__.py b/backoffice/backoffice/management/management/commands/__init__.py similarity index 100% rename from backoffice/management/management/commands/__init__.py rename to backoffice/backoffice/management/management/commands/__init__.py diff --git a/backoffice/management/management/commands/create_groups.py b/backoffice/backoffice/management/management/commands/create_groups.py similarity index 80% rename from backoffice/management/management/commands/create_groups.py rename to backoffice/backoffice/management/management/commands/create_groups.py index 164f1c803..bb6154c39 100644 --- a/backoffice/management/management/commands/create_groups.py +++ b/backoffice/backoffice/management/management/commands/create_groups.py @@ -7,7 +7,8 @@ class Command(BaseCommand): """ - A management command that creates admin and curator groups and gives them all permissions to Workflow model. + A management command that creates admin and curator groups and gives + them all permissions to Workflow model. To run it, execute the following command: >> python manage.py create_groups """ @@ -22,6 +23,9 @@ def handle(self, *args, **options): curator_group.permissions.add(*permissions) self.stdout.write( self.style.SUCCESS( - "Successfully created admin and curator groups and gave them all permissions to Workflow model." + """ + Successfully created admin and curator groups and + gave them all permissions to Workflow model. + """ ) ) diff --git a/backoffice/management/migrations/__init__.py b/backoffice/backoffice/management/migrations/__init__.py similarity index 100% rename from backoffice/management/migrations/__init__.py rename to backoffice/backoffice/management/migrations/__init__.py diff --git a/backoffice/management/permissions.py b/backoffice/backoffice/management/permissions.py similarity index 100% rename from backoffice/management/permissions.py rename to backoffice/backoffice/management/permissions.py diff --git a/backoffice/management/tests/test_commands.py b/backoffice/backoffice/management/tests/test_commands.py similarity index 100% rename from backoffice/management/tests/test_commands.py rename to backoffice/backoffice/management/tests/test_commands.py diff --git a/backoffice/management/tests/test_permissions.py b/backoffice/backoffice/management/tests/test_permissions.py similarity index 92% rename from backoffice/management/tests/test_permissions.py rename to backoffice/backoffice/management/tests/test_permissions.py index e8ae63ea9..4de6492d1 100644 --- a/backoffice/management/tests/test_permissions.py +++ b/backoffice/backoffice/management/tests/test_permissions.py @@ -22,7 +22,9 @@ class PermissionCheckTests(TransactionTestCase): fixtures = ["backoffice/fixtures/groups.json"] def setUp(self): - self.user = User.objects.create_user(email="testuser@test.com", password="testpassword") + self.user = User.objects.create_user( + email="testuser@test.com", password="testpassword" + ) self.admin_group = Group.objects.get(name="admin") self.curator_group = Group.objects.get(name="curator") diff --git a/backoffice/static/css/project.css b/backoffice/backoffice/static/css/project.css similarity index 100% rename from backoffice/static/css/project.css rename to backoffice/backoffice/static/css/project.css diff --git a/backoffice/static/fonts/.gitkeep b/backoffice/backoffice/static/fonts/.gitkeep similarity index 100% rename from backoffice/static/fonts/.gitkeep rename to backoffice/backoffice/static/fonts/.gitkeep diff --git a/backoffice/static/images/favicons/favicon.ico b/backoffice/backoffice/static/images/favicons/favicon.ico similarity index 100% rename from backoffice/static/images/favicons/favicon.ico rename to backoffice/backoffice/static/images/favicons/favicon.ico diff --git a/backoffice/static/js/project.js b/backoffice/backoffice/static/js/project.js similarity index 100% rename from backoffice/static/js/project.js rename to backoffice/backoffice/static/js/project.js diff --git a/backoffice/templates/403.html b/backoffice/backoffice/templates/403.html similarity index 100% rename from backoffice/templates/403.html rename to backoffice/backoffice/templates/403.html diff --git a/backoffice/templates/403_csrf.html b/backoffice/backoffice/templates/403_csrf.html similarity index 100% rename from backoffice/templates/403_csrf.html rename to backoffice/backoffice/templates/403_csrf.html diff --git a/backoffice/templates/404.html b/backoffice/backoffice/templates/404.html similarity index 100% rename from backoffice/templates/404.html rename to backoffice/backoffice/templates/404.html diff --git a/backoffice/templates/500.html b/backoffice/backoffice/templates/500.html similarity index 100% rename from backoffice/templates/500.html rename to backoffice/backoffice/templates/500.html diff --git a/backoffice/templates/account/account_inactive.html b/backoffice/backoffice/templates/account/account_inactive.html similarity index 100% rename from backoffice/templates/account/account_inactive.html rename to backoffice/backoffice/templates/account/account_inactive.html diff --git a/backoffice/templates/account/base.html b/backoffice/backoffice/templates/account/base.html similarity index 100% rename from backoffice/templates/account/base.html rename to backoffice/backoffice/templates/account/base.html diff --git a/backoffice/templates/account/email.html b/backoffice/backoffice/templates/account/email.html similarity index 100% rename from backoffice/templates/account/email.html rename to backoffice/backoffice/templates/account/email.html diff --git a/backoffice/templates/account/email_confirm.html b/backoffice/backoffice/templates/account/email_confirm.html similarity index 100% rename from backoffice/templates/account/email_confirm.html rename to backoffice/backoffice/templates/account/email_confirm.html diff --git a/backoffice/templates/account/login.html b/backoffice/backoffice/templates/account/login.html similarity index 100% rename from backoffice/templates/account/login.html rename to backoffice/backoffice/templates/account/login.html diff --git a/backoffice/templates/account/logout.html b/backoffice/backoffice/templates/account/logout.html similarity index 100% rename from backoffice/templates/account/logout.html rename to backoffice/backoffice/templates/account/logout.html diff --git a/backoffice/templates/account/password_change.html b/backoffice/backoffice/templates/account/password_change.html similarity index 100% rename from backoffice/templates/account/password_change.html rename to backoffice/backoffice/templates/account/password_change.html diff --git a/backoffice/templates/account/password_reset.html b/backoffice/backoffice/templates/account/password_reset.html similarity index 100% rename from backoffice/templates/account/password_reset.html rename to backoffice/backoffice/templates/account/password_reset.html diff --git a/backoffice/templates/account/password_reset_done.html b/backoffice/backoffice/templates/account/password_reset_done.html similarity index 100% rename from backoffice/templates/account/password_reset_done.html rename to backoffice/backoffice/templates/account/password_reset_done.html diff --git a/backoffice/templates/account/password_reset_from_key.html b/backoffice/backoffice/templates/account/password_reset_from_key.html similarity index 100% rename from backoffice/templates/account/password_reset_from_key.html rename to backoffice/backoffice/templates/account/password_reset_from_key.html diff --git a/backoffice/templates/account/password_reset_from_key_done.html b/backoffice/backoffice/templates/account/password_reset_from_key_done.html similarity index 100% rename from backoffice/templates/account/password_reset_from_key_done.html rename to backoffice/backoffice/templates/account/password_reset_from_key_done.html diff --git a/backoffice/templates/account/password_set.html b/backoffice/backoffice/templates/account/password_set.html similarity index 100% rename from backoffice/templates/account/password_set.html rename to backoffice/backoffice/templates/account/password_set.html diff --git a/backoffice/templates/account/signup.html b/backoffice/backoffice/templates/account/signup.html similarity index 100% rename from backoffice/templates/account/signup.html rename to backoffice/backoffice/templates/account/signup.html diff --git a/backoffice/templates/account/signup_closed.html b/backoffice/backoffice/templates/account/signup_closed.html similarity index 100% rename from backoffice/templates/account/signup_closed.html rename to backoffice/backoffice/templates/account/signup_closed.html diff --git a/backoffice/templates/account/verification_sent.html b/backoffice/backoffice/templates/account/verification_sent.html similarity index 100% rename from backoffice/templates/account/verification_sent.html rename to backoffice/backoffice/templates/account/verification_sent.html diff --git a/backoffice/templates/account/verified_email_required.html b/backoffice/backoffice/templates/account/verified_email_required.html similarity index 100% rename from backoffice/templates/account/verified_email_required.html rename to backoffice/backoffice/templates/account/verified_email_required.html diff --git a/backoffice/templates/base.html b/backoffice/backoffice/templates/base.html similarity index 99% rename from backoffice/templates/base.html rename to backoffice/backoffice/templates/base.html index 6eb77e9a0..5f5072955 100644 --- a/backoffice/templates/base.html +++ b/backoffice/backoffice/templates/base.html @@ -26,7 +26,7 @@ - + @@ -48,7 +48,7 @@ - + diff --git a/backoffice/templates/pages/about.html b/backoffice/backoffice/templates/pages/about.html similarity index 92% rename from backoffice/templates/pages/about.html rename to backoffice/backoffice/templates/pages/about.html index 307034833..94d9808cc 100644 --- a/backoffice/templates/pages/about.html +++ b/backoffice/backoffice/templates/pages/about.html @@ -1,3 +1 @@ {% extends "base.html" %} - - diff --git a/backoffice/templates/pages/home.html b/backoffice/backoffice/templates/pages/home.html similarity index 92% rename from backoffice/templates/pages/home.html rename to backoffice/backoffice/templates/pages/home.html index 307034833..94d9808cc 100644 --- a/backoffice/templates/pages/home.html +++ b/backoffice/backoffice/templates/pages/home.html @@ -1,3 +1 @@ {% extends "base.html" %} - - diff --git a/backoffice/templates/users/user_detail.html b/backoffice/backoffice/templates/users/user_detail.html similarity index 94% rename from backoffice/templates/users/user_detail.html rename to backoffice/backoffice/templates/users/user_detail.html index 3edbaa69b..5dcfe3514 100644 --- a/backoffice/templates/users/user_detail.html +++ b/backoffice/backoffice/templates/users/user_detail.html @@ -3,21 +3,21 @@ {% load static %} {% block title %} - User: - + User: + {{ object.name }} - - + + {% endblock title %} {% block content %}