Skip to content

Commit

Permalink
Use admin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pederhan committed Aug 2, 2024
1 parent fc2541a commit 0aee6b4
Show file tree
Hide file tree
Showing 4 changed files with 10,188 additions and 10,181 deletions.
11 changes: 11 additions & 0 deletions ci/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import random
from django.apps import AppConfig


class MregAppConfig(AppConfig):
name = "mreg"

def ready(self):
import mreg.signals # noqa

random.seed(42)
4 changes: 2 additions & 2 deletions ci/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ services:
interval: 5s
timeout: 5s
retries: 10
start_period: 5s
start_period: 5s
volumes:
- ${PWD}/local_settings.py:/app/mregsite/local_settings.py
- ${PWD}/admin.py:/app/mreg/admin.py

# The purpose of the dummy container is to depend on the mreg container,
# so the "docker compose" command won't return until mreg is up and running.
Expand Down
4 changes: 0 additions & 4 deletions ci/local_settings copy.py

This file was deleted.

Loading

0 comments on commit 0aee6b4

Please sign in to comment.