falco-cli 0.26.2__tar.gz → 0.26.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {falco_cli-0.26.2 → falco_cli-0.26.5}/PKG-INFO +1 -1
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/guides/deployment.rst +1 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/the_cli/index.rst +1 -9
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/the_cli/start_project/index.rst +1 -1
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/the_cli/start_project/packages.rst +32 -6
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/the_cli/usage.rst +6 -12
- {falco_cli-0.26.2 → falco_cli-0.26.5}/justfile +11 -14
- {falco_cli-0.26.2 → falco_cli-0.26.5}/pyproject.toml +2 -1
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/__about__.py +1 -1
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/__main__.py +2 -2
- {falco_cli-0.26.2 → falco_cli-0.26.5}/tests/conftest.py +2 -2
- {falco_cli-0.26.2 → falco_cli-0.26.5}/.all-contributorsrc +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/.editorconfig +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/.github/workflows/ci.yml +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/.github/workflows/pre-commit-auto-update.yml +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/.github/workflows/publish.yml +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/.gitignore +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/.gitmodules +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/.pre-commit-config.yaml +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/.readthedocs.yaml +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/.vscode/settings.json +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/CODE_OF_CONDUCT.md +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/LICENSE +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/README.md +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/all-contributorsrc +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/.rich-codex.yml +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/Makefile +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/_static/add-og-title-to-home.js +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/_static/custom.css +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/_static/deployment.png +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/_static/falco-logo.png +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/_static/falco-logo.svg +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/_static/logo_with_text.svg +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/_static/og-image.jpg +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/_static/snippets/entry_model.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/_static/snippets/tree-1.txt +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/_static/snippets/tree-2.txt +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/_static/snippets/tree-3.txt +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/_static/snippets/types.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/_static/snippets/urls.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/_static/snippets/utils.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/_static/task_queue.png +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/_templates/components/nav-versions.html +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/_templates/sidebars/buy-me-a-coffee.html +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/_templates/sidebars/consulting.html +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/changelog.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/codeofconduct.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/conf.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/contributing.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/guides/avoiding_god_models.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/guides/database_tips.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/guides/dynamic_model_schema.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/guides/index.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/guides/interactive_user_interfaces.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/guides/logging_and_monitoring.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/guides/multitenancy.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/guides/optimizing_database_access.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/guides/permissions_and_authorization.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/guides/realtime.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/guides/running_project_in_a_container.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/guides/task_queues_and_schedulers.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/guides/tips_and_extra.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/guides/use_sqlite_in_production.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/guides/writing_async_code.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/guides/writing_documentation.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/guides/writing_tests.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/index.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/install.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/license.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/make.bat +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/requirements.txt +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/the_cli/crud.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/the_cli/htmx.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/the_cli/migrations.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/the_cli/start_app.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/the_cli/start_project/dependency.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/the_cli/start_project/deploy.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/the_cli/start_project/issues.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/the_cli/start_project/structure.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/the_cli/sync_dotenv.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/docs/the_cli/work.rst +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/requirements.txt +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/scripts/update_readme_guides.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/__init__.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/checks.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/commands/__init__.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/commands/crud/__init__.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/commands/crud/model_crud.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/commands/crud/utils.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/commands/htmx.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/commands/htmx_extension.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/commands/reset_migrations.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/commands/rm_migrations.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/commands/start_app.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/commands/start_project.py +1 -1
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/commands/sync_dotenv.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/commands/update_project.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/commands/work.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/config.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/crud/html/create.html.jinja +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/crud/html/detail.html.jinja +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/crud/html/list.html.jinja +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/crud/html/update.html.jinja +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/crud/python/forms.py.jinja +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/crud/python/views.py.jinja +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/src/falco_cli/utils.py +1 -1
- {falco_cli-0.26.2 → falco_cli-0.26.5}/tests/__init__.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/tests/commands/test_crud.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/tests/commands/test_htmx.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/tests/commands/test_htmx_extension.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/tests/commands/test_reset_migrations.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/tests/commands/test_rm_migrations.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/tests/commands/test_start_app.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/tests/commands/test_start_project.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/tests/commands/test_sync_dotenv.py +0 -0
- {falco_cli-0.26.2 → falco_cli-0.26.5}/tests/commands/test_work.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: falco-cli
|
|
3
|
-
Version: 0.26.
|
|
3
|
+
Version: 0.26.5
|
|
4
4
|
Summary: Enhance your Django developer experience: CLI and Guides for the Modern Developer.
|
|
5
5
|
Project-URL: Documentation, https://falco.oluwatobi.dev/
|
|
6
6
|
Project-URL: Homepage, https://falco.oluwatobi.dev/
|
|
@@ -16,15 +16,7 @@ The entrypoint for the CLI is the ``falco`` command. It is used to execute all o
|
|
|
16
16
|
Most of these commands rely on the presence of the ``manage.py`` file, so ensure that you run them from the root directory of your Django project.
|
|
17
17
|
Additionally, these commands require acces to your virtual environment, so make sure to activate it before executing any command.
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
.. important::
|
|
21
|
-
|
|
22
|
-
There is a known issue where certain commands, which depend on your Django project environment to work, such as the ``work`` or the
|
|
23
|
-
``crud`` commands, might occasionally fail to run. The exact cause of this issue is not entirely clear at the moment, and I've
|
|
24
|
-
experienced it a few times myself. The simplest solution for now is to install the ``falco-cli`` in the same virtual environment as your project.
|
|
25
|
-
This should resolve the issue.
|
|
26
|
-
|
|
27
|
-
.. cappa:: falco_cli.__main__.FalcoCLI
|
|
19
|
+
.. cappa:: falco_cli.__main__.Falco
|
|
28
20
|
|
|
29
21
|
.. toctree::
|
|
30
22
|
:hidden:
|
|
@@ -6,25 +6,51 @@ Packages and Tools
|
|
|
6
6
|
This section provides an overview of the primary packages and tools, along with some of the design choices incorporated
|
|
7
7
|
into a project generated with **Falco**.
|
|
8
8
|
|
|
9
|
+
Overview
|
|
10
|
+
--------
|
|
11
|
+
|
|
12
|
+
System Requirements
|
|
9
13
|
|
|
10
14
|
- `hatch <https://hatch.pypa.io/latest/>`_: Used for managing the project's virtual environment and dependencies, more details can be found in the `dependency management guide </guides/dependency_management.html>`_.
|
|
11
15
|
- `just <https://just.system>`_: A script runner that simplifies the execution of common tasks, such as setting up the project, running the server, and running tests, run ``just`` to see all available commands.
|
|
16
|
+
|
|
17
|
+
Base Dependencies
|
|
18
|
+
|
|
12
19
|
- `environs <https://github.com/sloria/environs>`_: Used for configuring settings via environment variables.
|
|
13
20
|
- `django-allauth <https://github.com/pennersr/django-allauth>`_: Handles login and signup processes.
|
|
14
|
-
- `django-
|
|
21
|
+
- `django-template-partials <https://github.com/carltongibson/django-template-partials>`_: Used for defining reusable fragments of HTML.
|
|
22
|
+
- `django-htmx <https://github.com/adamchainz/django-htmx>`_: Used for making AJAX requests and updating the DOM.
|
|
23
|
+
- `django-lifecycle <https://github.com/rsinger86/django-lifecycle>`_: Provides an alternative to signals for hooking into your model's lifecycle.
|
|
15
24
|
- `django-heath-check <https://github.com/revsys/django-health-check>`_: Provides a ``/health`` endpoint for application, database, storage, and other health checks.
|
|
16
|
-
- `django-browser-reload <https://github.com/adamchainz/django-browser-reload>`_: Automatically reloads your browser on code changes in development.
|
|
17
|
-
- `django-model-utils <https://django-model-utils.readthedocs.io/en/latest/>`_: Provides useful mixins for Django models, my favorite being the ``TimeStampedModel``.
|
|
18
25
|
- `django-extensions <https://django-extensions.readthedocs.io/en/latest/>`_: Adds some useful management commands to Django, such as ``shell_plus`` and ``show_urls``.
|
|
19
26
|
- `django-anymail <https://github.com/anymail/django-anymail>`_: `Amazon SES <https://aws.amazon.com/ses/?nc1=h_ls>`_ is used for production email, facilitated by Anymail.
|
|
27
|
+
- `django-unique-user-email <https://github.com/carltongibson/django-unique-user-email>`_: Adds a unique constraint to the email field of the Django ``User`` model.
|
|
28
|
+
- `django-q2 <https://github.com/django-q2/django-q2>`_: Used for background task queue processing and scheduling.
|
|
29
|
+
- `django-q-registry <https://github.com/westerveltco/django-q-registry>`_: Used for easily registering scheduled jobs.
|
|
20
30
|
- `django-storages <https://django-storages.readthedocs.io/en/latest/>`_: Used for storing media files on AWS S3.
|
|
21
|
-
- `django-compressor <https://django-compressor
|
|
31
|
+
- `django-compressor <https://github.com/django-compressor/django-compressor>`_: Compresses CSS and JavaScript files.
|
|
22
32
|
- `refreshcss <https://github.com/adamghill/refreshcss>`_: Removes unused classes, ids, and element selectors from CSS, configured as a ``django-compressor`` filter.
|
|
23
33
|
- `diskcache <https://github.com/grantjenks/python-diskcache>`_: A simple and fast cache solution based on ``sqlite3``, just add a ``LOCATION`` environnment folder for the cache location and you are good to go.
|
|
24
34
|
- `Docker <https://www.docker.com/>`_ and `s6-overlay <https://github.com/just-containers/s6-overlay>`_: Docker is configured for production, with s6-overlay enabling running both the web server process (via ``gunicorn``) and the background worker process (via ``django-q2``) within a single container.
|
|
25
35
|
- `Sentry <https://sentry.io/welcome/>`_: Utilized for performance and error monitoring.
|
|
26
36
|
- `Whitenoise <https://whitenoise.evans.io/en/latest/>`_: Used to serve static files.
|
|
27
37
|
- `heroicons <https://heroicons.com/>`_: Easy access to `heroicons <https://heroicons.com/>`_ in your Django templates.
|
|
38
|
+
|
|
39
|
+
Development-Only packages
|
|
40
|
+
|
|
41
|
+
- `django-debug-toolbar <https://django-debug-toolbar.readthedocs.io/en/latest/>`_: Of course, a must.
|
|
42
|
+
- `django-browser-reload <https://github.com/adamchainz/django-browser-reload>`_: Automatically reloads your browser on code changes in development.
|
|
43
|
+
- `django-watchfiles <https://github.com/adamchainz/django-watchfiles>`_: Faster and more efficient development server reloading.
|
|
44
|
+
- `django-fastdev <https://github.com/boxed/django-fastdev>`_: Helps catch small mistakes early in your project.
|
|
45
|
+
- `dj-notebook <https://github.com/pydanny/dj-notebook>`_: Allows you to use your shell_plus in a Jupyter notebook.
|
|
46
|
+
- `hatch-pip-compile <https://github.com/juftin/hatch-pip-compile>`_: ``hatch`` plugin to compile requirements files.
|
|
47
|
+
- `git-cliff <https://git-cliff.org/>`_: Generates a changelog based on your commit messages.
|
|
48
|
+
- `bump-my-version <https://github.com/callowayproject/bump-my-version>`_: Bumps the version of your project following the `semver <https://semver.org/>`_ format.
|
|
49
|
+
- `pytest <https://docs.pytest.org/en/7.0.x/>`_: Used for running tests
|
|
50
|
+
- `pytest-django <https://pytest-django.readthedocs.io/en/latest/>`_: Pytest plugin for Django.
|
|
51
|
+
- `pytest-sugar <https://github.com/Teemu/pytest-sugar>`_: Better looking pytest output.
|
|
52
|
+
- `pytest-xdist <https://github.com/pytest-dev/pytest-xdist>`_: Run tests in parallel.
|
|
53
|
+
- `Werkzeug <https://werkzeug.palletsprojects.com/en/2.1.x/>`_: Enable the Werkzeug debugger when running `manage.py runserver_plus`.
|
|
28
54
|
- `pre-commit <https://github.com/pre-commit/pre-commit>`_: Integrated by default to identify simple issues before pushing code to remote.
|
|
29
55
|
|
|
30
56
|
If you are using the default template, the following additional packages are included:
|
|
@@ -41,7 +67,7 @@ If you are using the Bootstrap template, the following additional packages are i
|
|
|
41
67
|
Settings
|
|
42
68
|
--------
|
|
43
69
|
|
|
44
|
-
There is a single ``settings.py`` file located in your project
|
|
70
|
+
There is a single ``settings.py`` file located in your project directory.
|
|
45
71
|
|
|
46
72
|
.. code-block:: text
|
|
47
73
|
|
|
@@ -63,7 +89,7 @@ You won't even be able to set ``DEBUG=True`` in production since the development
|
|
|
63
89
|
|
|
64
90
|
|
|
65
91
|
Login via email instead of username
|
|
66
|
-
|
|
92
|
+
-----------------------------------
|
|
67
93
|
|
|
68
94
|
The ``email`` field is configured as the login field using `django-allauth <https://github.com/pennersr/django-allauth>`_. The ``username`` field is still present
|
|
69
95
|
but is not required for login. Allauth automatically fills it with the part of the email before the ``@`` symbol.
|
|
@@ -23,13 +23,7 @@ Each **entry** represents a journal entry within the **myjourney** app.
|
|
|
23
23
|
|
|
24
24
|
falco start-project myjourney && cd myjourney
|
|
25
25
|
|
|
26
|
-
**2.
|
|
27
|
-
|
|
28
|
-
.. code-block:: bash
|
|
29
|
-
|
|
30
|
-
git init && git add -A
|
|
31
|
-
|
|
32
|
-
**3. Project setup**
|
|
26
|
+
**2. Project setup**
|
|
33
27
|
|
|
34
28
|
Refer to the ``justfile`` in the root of the project to understand the available commands. The command below sets up your
|
|
35
29
|
virtual environment using ``hatch`` (default, dev, and docs), runs the project migrations, creates a superuser
|
|
@@ -42,17 +36,17 @@ with ``admin@localhost`` as the email and ``admin`` as the password, and runs pr
|
|
|
42
36
|
At this point, you can run ``just server`` to start the project. While the UI may be basic (which I hope to improve in the future),
|
|
43
37
|
you have a fully functional ready to deploy django project. If you update the content of the home page, your browser will automatically reload.
|
|
44
38
|
|
|
45
|
-
**
|
|
39
|
+
**3. Create the new app, entries**
|
|
46
40
|
|
|
47
41
|
.. code-block:: bash
|
|
48
42
|
|
|
49
43
|
just falco start-app entries
|
|
50
44
|
|
|
51
|
-
**
|
|
45
|
+
**4. Add some fields to your Entry model**
|
|
52
46
|
|
|
53
47
|
.. literalinclude:: /_static/snippets/entry_model.py
|
|
54
48
|
|
|
55
|
-
**
|
|
49
|
+
**5. Make migrations for the new model and run them**
|
|
56
50
|
|
|
57
51
|
.. code-block:: bash
|
|
58
52
|
|
|
@@ -72,7 +66,7 @@ you have a fully functional ready to deploy django project. If you update the co
|
|
|
72
66
|
[tool.falco.crud]
|
|
73
67
|
always-migrate = true
|
|
74
68
|
|
|
75
|
-
**
|
|
69
|
+
**6. Generate CRUD views for the Entry model**
|
|
76
70
|
|
|
77
71
|
.. code-block:: bash
|
|
78
72
|
|
|
@@ -80,7 +74,7 @@ you have a fully functional ready to deploy django project. If you update the co
|
|
|
80
74
|
|
|
81
75
|
Without the ``--skip-git-check`` option, the command will fail since we currently have some uncommitted changes in our repository.
|
|
82
76
|
|
|
83
|
-
**
|
|
77
|
+
**7. Run the project**
|
|
84
78
|
|
|
85
79
|
.. code-block:: bash
|
|
86
80
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
default := "blueprints/falco_tailwind"
|
|
2
|
-
|
|
3
1
|
# List all available commands
|
|
4
2
|
_default:
|
|
5
3
|
@just --list
|
|
@@ -83,7 +81,7 @@ submodule-init:
|
|
|
83
81
|
# Checkout all submodules on main
|
|
84
82
|
checkout:
|
|
85
83
|
#!/usr/bin/env sh
|
|
86
|
-
for parent_dir in blueprints
|
|
84
|
+
for parent_dir in blueprints; do
|
|
87
85
|
for dir in $parent_dir/*; do
|
|
88
86
|
if [ -d "$dir" ]; then
|
|
89
87
|
echo "$(basename $dir)"
|
|
@@ -98,7 +96,7 @@ checkout:
|
|
|
98
96
|
pull:
|
|
99
97
|
#!/usr/bin/env sh
|
|
100
98
|
git pull
|
|
101
|
-
for parent_dir in blueprints
|
|
99
|
+
for parent_dir in blueprints; do
|
|
102
100
|
for dir in $parent_dir/*; do
|
|
103
101
|
if [ -d "$dir" ]; then
|
|
104
102
|
echo "$(basename $dir)"
|
|
@@ -113,7 +111,7 @@ pull:
|
|
|
113
111
|
fetch:
|
|
114
112
|
#!/usr/bin/env sh
|
|
115
113
|
git fetch --all
|
|
116
|
-
for parent_dir in blueprints
|
|
114
|
+
for parent_dir in blueprints; do
|
|
117
115
|
for dir in $parent_dir/*; do
|
|
118
116
|
if [ -d "$dir" ]; then
|
|
119
117
|
echo "$(basename $dir)"
|
|
@@ -138,13 +136,12 @@ merge:
|
|
|
138
136
|
# Push all changes in all submodules
|
|
139
137
|
push:
|
|
140
138
|
#!/usr/bin/env sh
|
|
141
|
-
for
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
fi
|
|
139
|
+
for dir in blueprints/*; do
|
|
140
|
+
if [ -d "$dir" ]; then
|
|
141
|
+
echo "$(basename $dir)"
|
|
142
|
+
cd "$dir"
|
|
143
|
+
git pull
|
|
144
|
+
git push
|
|
145
|
+
cd -
|
|
146
|
+
fi
|
|
150
147
|
done
|
|
@@ -52,6 +52,7 @@ dependencies = [
|
|
|
52
52
|
"parso",
|
|
53
53
|
"rich",
|
|
54
54
|
"tomlkit",
|
|
55
|
+
"djlint",
|
|
55
56
|
]
|
|
56
57
|
optional-dependencies = { just = [ "just-bin" ], hatch = [ "hatch" ] }
|
|
57
58
|
|
|
@@ -209,7 +210,7 @@ source_pkgs = [
|
|
|
209
210
|
allow_dirty = false
|
|
210
211
|
commit = true
|
|
211
212
|
commit_args = "--no-verify"
|
|
212
|
-
current_version = "0.26.
|
|
213
|
+
current_version = "0.26.5"
|
|
213
214
|
ignore_missing_files = false
|
|
214
215
|
ignore_missing_version = false
|
|
215
216
|
message = "Bump version: {current_version} → {new_version}"
|
|
@@ -14,7 +14,7 @@ from falco_cli.commands import Work
|
|
|
14
14
|
@cappa.command(
|
|
15
15
|
help="Enhance your Django developer experience: CLI and Guides for the Modern Django Developer.",
|
|
16
16
|
)
|
|
17
|
-
class
|
|
17
|
+
class Falco:
|
|
18
18
|
subcommand: cappa.Subcommands[
|
|
19
19
|
StartProject
|
|
20
20
|
| UpdateProject
|
|
@@ -30,7 +30,7 @@ class FalcoCLI:
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def main():
|
|
33
|
-
cappa.invoke(
|
|
33
|
+
cappa.invoke(Falco)
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
if __name__ == "__main__":
|
|
@@ -7,7 +7,7 @@ from unittest.mock import patch
|
|
|
7
7
|
|
|
8
8
|
import pytest
|
|
9
9
|
from cappa.testing import CommandRunner
|
|
10
|
-
from falco_cli.__main__ import
|
|
10
|
+
from falco_cli.__main__ import Falco
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
@pytest.fixture(autouse=True)
|
|
@@ -17,7 +17,7 @@ def change_test_dir(monkeypatch, tmp_path):
|
|
|
17
17
|
|
|
18
18
|
@pytest.fixture
|
|
19
19
|
def runner():
|
|
20
|
-
return CommandRunner(
|
|
20
|
+
return CommandRunner(Falco)
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
toolbox = Path(__file__).parent.parent / "packages" / "toolbox/src/falco_toolbox"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -15,11 +15,11 @@ from cookiecutter.main import cookiecutter
|
|
|
15
15
|
from falco_cli.commands.crud.utils import run_html_formatters
|
|
16
16
|
from falco_cli.config import write_falco_config
|
|
17
17
|
from falco_cli.utils import clean_project_name
|
|
18
|
+
from falco_cli.utils import get_username
|
|
18
19
|
from falco_cli.utils import is_new_falco_cli_available
|
|
19
20
|
from falco_cli.utils import RICH_INFO_MARKER
|
|
20
21
|
from falco_cli.utils import RICH_SUCCESS_MARKER
|
|
21
22
|
from falco_cli.utils import simple_progress
|
|
22
|
-
from falco_cli.utils import get_username
|
|
23
23
|
from rich import print as rich_print
|
|
24
24
|
from rich.prompt import Prompt
|
|
25
25
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|