-
-
Notifications
You must be signed in to change notification settings - Fork 672
Readme updates #2900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Readme updates #2900
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,33 +1,93 @@ | ||
| Welcome to Python.org Website's documentation! | ||
| ============================================== | ||
| python.org | ||
| ========== | ||
|
|
||
| Documentation for the code behind python.org_. | ||
| .. image:: https://github.com/python/pythondotorg/actions/workflows/ci.yml/badge.svg | ||
| :target: https://github.com/python/pythondotorg/actions/workflows/ci.yml | ||
|
|
||
| General information | ||
| ------------------- | ||
| The codebase behind `python.org <https://www.python.org>`_. It's a Django 5.2 | ||
| application backed by PostgreSQL, Redis, and Celery, with Elasticsearch | ||
| powering site search via Haystack. | ||
|
JacobCoffee marked this conversation as resolved.
|
||
|
|
||
| :Source code: https://github.com/python/pythondotorg | ||
| :Issue tracker: https://github.com/python/pythondotorg/issues | ||
| :Production configuration: https://github.com/python/psf-salt | ||
| :GitHub Actions: | ||
| .. image:: https://github.com/python/pythondotorg/actions/workflows/ci.yml/badge.svg | ||
| :target: https://github.com/python/pythondotorg/actions/workflows/ci.yml | ||
| :License: Apache License | ||
| Quick start | ||
| ----------- | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| make serve | ||
|
|
||
| Then visit http://localhost:8000. See :doc:`install` for prerequisites and | ||
| full setup instructions. | ||
|
|
||
| Make targets | ||
| ------------ | ||
|
|
||
| :``serve``: Start the full stack (Postgres, Redis, web, worker, static). | ||
| :``test``: Run the test suite. | ||
| :``migrations``: Generate migrations from model changes. | ||
| :``migrate``: Apply pending migrations. | ||
| :``manage <cmd>``: Run any Django management command. | ||
| :``shell``: Open the Django interactive shell. | ||
| :``docker_shell``: Open a bash session inside the web container. | ||
| :``clean``: Tear down containers and reset state. | ||
| :``lint``: Run the ruff linter with ``--fix``. | ||
| :``fmt``: Run the ruff formatter. | ||
| :``ci``: Run lint, fmt, then tests in sequence. | ||
|
|
||
|
JacobCoffee marked this conversation as resolved.
|
||
| Apps at a glance | ||
| ---------------- | ||
|
|
||
| **Content & CMS** | ||
| ``pages``, ``blogs``, ``boxes``, ``codesamples``, ``successstories``, | ||
| ``minutes``, ``banners`` | ||
|
|
||
| **Community** | ||
| ``events``, ``jobs``, ``community``, ``companies``, ``work_groups`` | ||
|
|
||
| **Core** | ||
| ``downloads``, ``sponsors``, ``nominations``, ``users``, ``mailing`` | ||
|
|
||
| **Base** | ||
| ``cms`` — shared model mixins (``ContentManageable``, ``NameSlugModel``, | ||
| etc.) used across most apps. | ||
|
|
||
| Docker services | ||
| --------------- | ||
|
|
||
| Contents: | ||
| The ``docker-compose.yml`` defines five services: | ||
|
|
||
| - **postgres** — PostgreSQL 15.3 database. | ||
| - **redis** — Redis 7 for caching and Celery broker. | ||
| - **web** — Django dev server on port 8000. | ||
| - **worker** — Celery worker with beat scheduler (``django-celery-beat``). | ||
| - **static** — SCSS compilation and static asset pipeline. | ||
|
|
||
| Testing & CI | ||
| ------------ | ||
|
|
||
| Run the full suite: | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| make test | ||
|
|
||
| Run tests for a single app: | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| make manage test events | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The new example Useful? React with 👍 / 👎. |
||
|
|
||
| CI (GitHub Actions) enforces a 75% coverage minimum and checks for missing | ||
| migrations. See :doc:`contributing` for PR expectations. | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 2 | ||
| :glob: | ||
| :hidden: | ||
|
|
||
| install.md | ||
| contributing | ||
| administration | ||
| commands | ||
|
|
||
| Indices and tables | ||
| ================== | ||
|
|
||
| * :ref:`genindex` | ||
|
|
||
| .. _python.org: https://www.python.org | ||
| :Source code: https://github.com/python/pythondotorg | ||
| :Issue tracker: https://github.com/python/pythondotorg/issues | ||
| :License: Apache License | ||
Uh oh!
There was an error while loading. Please reload this page.