Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into feat/resolve-duplic…
Browse files Browse the repository at this point in the history
…ate-tags
  • Loading branch information
rtpg committed Sep 28, 2024
2 parents f4effb2 + 3d42581 commit 9c1538b
Show file tree
Hide file tree
Showing 41 changed files with 21,751 additions and 101 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ Changelog
* Add a management command (``remove_orphaned_tags``) to remove orphaned tags
* Add a fallback for when multiple tags are found in case-insensitivity mode (the earliest by PK is returned)
* Add a ``deduplicate_tags`` management command to remove duplicate tags based on case insensitivity. This feature is enabled when ``TAGGIT_CASE_INSENSITIVE`` is set to ``True`` in the settings.
* We no longer package tests, docs, or the sample taggit app into the distributed wheels. While we believe this shouldn't affect anything for users of the library, please tell us if you find yourself hitting issues (like around import errors)

>>>>>>> origin/master

6.0.0 (2024-07-27)
~~~~~~~~~~~~~~~~~~
Expand Down
36 changes: 33 additions & 3 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,40 @@ Running the sample application

There is a sample application in ``sample_taggit``. You can run it by doing the following:

- Run migrations with ``sample_taggit/manage.py migrate``
- Make yourself a superuser with ``sample_taggit/manage.py createsuperuser`` (this should let you use the admin with ease)
- Launch the sample project itself with ``sample_taggit/manage.py runserver``

**Prepare the Database**
~~~~~~~~~~~~~~~~~~~~~~~~

Use the `reset-db` command to prepare your database. This will remove any existing data, run migrations, and load fixtures, including creating a default admin user.

**On Windows:**

.. code-block:: console
cd sample_taggit
call make.bat reset-db
**On Mac/Linux:**

.. code-block:: console
cd sample_taggit
make reset-db
**Launch the Sample Project**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Launch the sample project itself with:

.. code-block:: console
sample_taggit/manage.py runserver
**Default Admin User Login:**

Username: taggit

Password: admin

Follow style conventions (black, flake8, isort)
-----------------------------------------------
Expand Down
9 changes: 6 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ include AUTHORS
include CHANGELOG.rst
include LICENSE
include README.rst
include tox.ini
recursive-include docs *.py *.rst
include setup.cfg
include setup.py
recursive-include taggit *.py
recursive-include taggit/locale *.mo *.po
recursive-include tests *.html *.py
prune tests
prune sample_taggit
prune docs
5 changes: 0 additions & 5 deletions sample_taggit/admin.py

This file was deleted.

20 changes: 20 additions & 0 deletions sample_taggit/fixtures/0001_users.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"model": "auth.user",
"pk": 1,
"fields": {
"password": "pbkdf2_sha256$720000$KnQUl5xpmqQF2aWaANeHIG$kO4C7iRjRpDfUNwWgvXyCtmfoCQqOHUTHCO2IvrH58U=",
"last_login": "2024-07-28T13:26:52.011Z",
"is_superuser": true,
"username": "taggit",
"first_name": "",
"last_name": "",
"email": "",
"is_staff": true,
"is_active": true,
"date_joined": "2024-07-27T17:02:40.676Z",
"groups": [],
"user_permissions": []
}
}
]
Loading

0 comments on commit 9c1538b

Please sign in to comment.