Skip to content

AccentDesign/cms-admin

Repository files navigation

CMS Admin

Simple django admin site for the cms golang project.

Before you start

Make sure you point it to a prepopulated db and that the db has a schema called admin.

Running

Using docker compose:

docker compose up --watch

Inspecting models

./run.sh uv run manage.py inspectdb --database=cms > cms/models_new.py

Copy the new stuff into cms/models.py and update the admin.py file. Be sure to check the new models for any errors.

Python packages

See the docs for more information.

install:

./run.sh uv add <package==1.0.0>

remove:

./run.sh uv remove <package>

Auto code linting

./run.sh uv run ruff format .
./run.sh uv run ruff check --fix .

Django commands

migrate:

./run.sh uv run manage.py migrate

Create yourself a superuser:

./run.sh uv run manage.py createsuperuser --username=admin@example.com --email=admin@example.com

About

A django admin site to edit the cms pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published