| core | ||
| docker | ||
| pxp | ||
| static | ||
| static_src/css | ||
| .env.example | ||
| .gitignore | ||
| manage.py | ||
| package-lock.json | ||
| package.json | ||
| Procfile | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
Project Execution Portal
Installation
- Install uv.
git clone <path-to-git-repo>cd <path-to-git-repo>uv venvsource .venv/bin/activateuv syncuv run pre-commit installcp .env.example .envexport DJANGO_SETTINGS_MODULE=core.settings.localuv run manage.py makemigrationsuv run manage.py migrateuv run manage.py createsuperuseruv run manage.py collectstaticnpm installuv run manage.py dev
Unit Tests
Running uv run pytest will run all of the tests in your Django app named
test.py, tests.py, test**.py, and tests**.py (see pyproject.toml for details).
To Use PostgreSQL
- Install Docker.
- Edit .env and uncomment the database configuration lines as documented in the file.
uv run manage.py start_db
To stop the database server run uv run manage.py stop_db. You can specify the
local port the contaner is listening on by using the "--port" option, for
example uv run manage.py start_db --port 9876 (make sure to update you .env
file with the new port number). This can be helpful if you're working on
multiple projects, each with their own PostgreSQL server.
To Use Redis
- Install Docker.
- Edit .env and uncomment the database configuration lines as documented in the file.
uv run manage.py start_redis
To stop the Redis server run uv run manage.py stop_redis. You can specify the
local port the contaner is listening on by using the "--port" option, for
example uv run manage.py start_redis --port 9876 (make sure to update you .env
file with the new port number). This can be helpful if you're working on
multiple projects, each with their own Redis server.