Skip to content

Commit

Permalink
Rebrand to KMI.CMS
Browse files Browse the repository at this point in the history
  • Loading branch information
trickeydan committed Dec 1, 2023
1 parent d6de1aa commit 50e82f6
Show file tree
Hide file tree
Showing 116 changed files with 23 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt -r requirements-dev.txt
- name: Use the dev configuration
run: cp sowncms/sowncms/configuration.dev.py sowncms/sowncms/configuration.py
run: cp kmicms/kmicms/configuration.dev.py kmicms/kmicms/configuration.py
- name: Lint
run: make lint
- name: Django Static Checks
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sowncms/sowncms/configuration.py
sowncms/db.sqlite
kmicms/kmicms/configuration.py
kmicms/db.sqlite
static/CACHE/

### Django ###
Expand Down
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "sowncms/static/css/bootstrap"]
path = sowncms/static/css/bootstrap
[submodule "kmicms/static/css/bootstrap"]
path = kmicms/static/css/bootstrap
url = https://github.com/twbs/bootstrap.git
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.PHONY: all clean lint

CMD:=
PYMODULE:=sowncms
PYMODULE:=kmicms
MANAGEPY:=$(CMD) ./$(PYMODULE)/manage.py
APPS:=sowncms core pages
APPS:=kmicms core pages

all: lint check

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SUWS Wagtail CMS
# SUWS / SOWN Wagtail CMS

## Development

Expand All @@ -8,9 +8,9 @@ The website is currently intended to be developed outside of docker, using a SQL
python3 -m venv venv
source venv/bin/activate
pip install -r requirements-dev.txt
cp sowncms/sowncms/configuration.dev.py sowncms/sowncms/configuration.py
cp kmicms/kmicms/configuration.dev.py kmicms/kmicms/configuration.py

cd sowncms
cd kmicms
./manage.py migrate
./manage.py runserver
```
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
build:
context: .
dockerfile: ./etc/docker/web/Dockerfile
image: sowncms_web
image: kmicms_web
command: /start
volumes:
- staticfiles:/app/static
Expand Down
2 changes: 1 addition & 1 deletion etc/docker/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RUN mkdir /app/static
RUN mkdir /app/media

COPY . .
COPY ./sowncms/sowncms/configuration.prod.py /app/sowncms/sowncms/configuration.py
COPY ./kmicms/kmicms/configuration.prod.py /app/kmicms/kmicms/configuration.py

RUN chown -R wagtail:wagtail /app

Expand Down
6 changes: 3 additions & 3 deletions etc/docker/web/start
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -o errexit
set -o pipefail
set -o nounset

python /app/sowncms/manage.py collectstatic --noinput
python /app/sowncms/manage.py migrate
python /app/kmicms/manage.py collectstatic --noinput
python /app/kmicms/manage.py migrate

/usr/local/bin/gunicorn sowncms.wsgi:application --bind 0.0.0.0:8000 --chdir=/app/sowncms
/usr/local/bin/gunicorn kmicms.wsgi:application --bind 0.0.0.0:8000 --chdir=/app/kmicms
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 5 additions & 6 deletions sowncms/sowncms/settings.py → kmicms/kmicms/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@

# Import configuration parameters
try:
from sowncms import configuration
from kmicms import configuration
except ImportError as e: # pragma: nocover
if getattr(e, "name") == "configuration":
raise ImproperlyConfigured(
"Configuration file is not present. Please define sowncms/sowncms/configuration.py per the documentation.", # noqa: E501
"Configuration file is not present. Please define kmicms/kmicms/configuration.py per the documentation.", # noqa: E501
) from None
raise

Expand Down Expand Up @@ -59,7 +59,7 @@
EMAIL = getattr(configuration, "EMAIL", {})
LANGUAGE_CODE = getattr(configuration, "LANGUAGE_CODE", "en-us")
TIME_ZONE = getattr(configuration, "TIME_ZONE", "UTC")
WAGTAIL_SITE_NAME = getattr(configuration, "WAGTAIL_SITE_NAME", "SUWS / SOWN")
WAGTAIL_SITE_NAME = getattr(configuration, "WAGTAIL_SITE_NAME", "KMI.CMS")


if hasattr(configuration, "CACHES"):
Expand Down Expand Up @@ -95,7 +95,6 @@
"pages.contact",
"pages.home",
"pages.standard_page",
"people",

# 3rd party
"compressor",
Expand Down Expand Up @@ -147,7 +146,7 @@

INTERNAL_IPS = ["127.0.0.1"]

ROOT_URLCONF = "sowncms.urls"
ROOT_URLCONF = "kmicms.urls"

TEMPLATES = [
{
Expand All @@ -168,7 +167,7 @@
},
]

WSGI_APPLICATION = "sowncms.wsgi.application"
WSGI_APPLICATION = "kmicms.wsgi.application"

AUTH_USER_MODEL = 'accounts.User'
WAGTAILIMAGES_IMAGE_MODEL = 'core.CustomImage'
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions sowncms/sowncms/wsgi.py → kmicms/kmicms/wsgi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
WSGI config for sowncms project.
WSGI config for kmicms project.
It exposes the WSGI callable as a module-level variable named ``application``.
Expand All @@ -11,6 +11,6 @@

from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sowncms.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "kmicms.settings")

application = get_wsgi_application()
2 changes: 1 addition & 1 deletion sowncms/manage.py → kmicms/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "sowncms.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "kmicms.settings")

from django.core.management import execute_from_command_line

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 50e82f6

Please sign in to comment.