Skip to content
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

Sample App Enhancements #912

Merged
merged 23 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6f1496f
django-taggit-911 Enhance the Sample App
Trafire Jul 28, 2024
311f9f4
django-taggit-911 Enhance the Sample App remove django extenstions de…
Trafire Jul 28, 2024
5423fd1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 28, 2024
a1600c3
django-taggit-911 - Update button positions and remove unused delete …
Trafire Jul 28, 2024
a8bd958
Merge remote-tracking branch 'origin/django-taggit-911' into django-t…
Trafire Jul 28, 2024
6d62e80
django-taggit-911 - linting
Trafire Jul 28, 2024
f2dcecf
django-taggit-911 - linting
Trafire Jul 28, 2024
3c8ca91
django-taggit-911 - delinting
Trafire Jul 28, 2024
5ec2151
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 28, 2024
38758ac
django-taggit-911 - order tags
Trafire Jul 28, 2024
97a76bf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 28, 2024
c874f36
django-taggit-911 - order tags
Trafire Jul 28, 2024
77af843
Merge remote-tracking branch 'origin/django-taggit-911' into django-t…
Trafire Jul 28, 2024
24f6d6a
django-taggit-911 - remove make files
Trafire Jul 28, 2024
b06b3a3
django-taggit-911 - remove unused function
Trafire Jul 28, 2024
5c2ccf1
django-taggit-911 - Update Docs, add db automation scripts.
Trafire Jul 28, 2024
a17cbca
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 28, 2024
d1903be
django-taggit-911 - remove duplicate description
Trafire Jul 28, 2024
71f1cd3
django-taggit-911 - comment cleanup
Trafire Jul 28, 2024
163a6d9
django-taggit-911 - comment cleanup
Trafire Jul 28, 2024
2b43c90
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 28, 2024
6616fb3
django-taggit-911 - comment cleanup
Trafire Jul 28, 2024
4256ce3
Merge remote-tracking branch 'origin/django-taggit-911' into django-t…
Trafire Jul 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Loading