A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/westerveltco/django-twc-project below:

westerveltco/django-twc-project: A Django template for all web applications at The Westervelt Company

django-twc-project is the project template for all web applications at The Westervelt Company. This template is built on top of the Django web framework and is designed to be a starting point for new web applications. It includes a number of best practices and tools to help you get started quickly.

It is tailored to the needs of The Westervelt Company and is not intended for general use. However, it is open source and available for anyone take inspiration from or use and modify. For the greater good!

This template is built using Copier and includes the following features:

You will need to install the required packages before being able to generate a project using this template. They are automatically included in the development dependencies of the generated project, so this is a one-time by-hand installation.

You can use a tool like pipx or uv tool install for this:

pipx install copier copier-templates-extensions
# or for you bleeding-edge folks
uv tool install copier copier-templates-extensions

To use this template, ensure the required packages are installed then run the following command:

copier copy --trust gh:westerveltco/django-twc-project <destination>

Note

The --trust flag is used to because this template uses copier-template-extensions to simplify some of the Jinja templating. You cannot use this template without trusting it. Please review the files within the extensions directory to see what is being done.

After running the above command, you will be prompted to fill in some information about your package. Once you have filled in the necessary information, Copier will generate the package for you.

Updating an existing package

To use this template to update a package that already uses django-twc-project to the latest version, make sure Copier is installed.

Make sure the package you're updating is set up properly (run just bootstrap or the equivalent setup command).

💬️ For a detailed walkthrough of updating the directory package, see Josh's comment from July 2024. It goes through many of the problems he ran into and how to resolve them.

In a new branch:

  1. Run just copier update-all.

    When update-all is finished running, you may see that pre-commit has linted files.

  2. Handle merge conflicts. This is the part of the process that is most unpredictable, as the kinds of conflicts you will encounter will differ from project to project. Some examples include:

  3. Regenerate your requirements.txt file (usually, this will mean running just py lock)

  4. Confirm your changes work:

  5. Commit your changes and open a pull request.

  6. Merge the pull request once CI passes.

Examples are provided in the examples directory.

As this template is mainly for internal use at The Westervelt Company, we do not generally accept contributions from external sources. However, if you have any suggestions or issues, please feel free to open an issue or pull request.

django-twc-project is licensed under the MIT License. See the LICENSE file for more information.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4