-
Notifications
You must be signed in to change notification settings - Fork 944
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add migration * Update Python to 5.0.2 * Add generated template info across * Ran format on settings.py * Fix up logout form * Fix typo in create Bookinstance * Fix up name of bookinstances to copies * Improve layout of layout form * move import libraries to right place * Update bootstrap used * Add unique constraints * Genre function ordering to match text * Improve the All Bookinstances rendering - not in doc so can do * Update requirements to latest * Update urls.py - fix up 4.2 URL to 5.0 --------- Co-authored-by: Brian Thomas Smith <brian@smith.berlin>
- Loading branch information
1 parent
b7fa69b
commit 45df021
Showing
10 changed files
with
116 additions
and
40 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
catalog/migrations/0026_alter_book_author_alter_genre_name_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 5.0.2 on 2024-02-23 01:19 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('catalog', '0025_auto_20220222_0623'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='book', | ||
name='author', | ||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.RESTRICT, to='catalog.author'), | ||
), | ||
migrations.AlterField( | ||
model_name='genre', | ||
name='name', | ||
field=models.CharField(help_text='Enter a book genre (e.g. Science Fiction, French Poetry etc.)', max_length=200, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='language', | ||
name='name', | ||
field=models.CharField(help_text="Enter the book's natural language (e.g. English, French, Japanese etc.)", max_length=200, unique=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,11 @@ | |
list-style: none; | ||
} | ||
|
||
#logout-form { | ||
display: inline; | ||
} | ||
#logout-form button { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
""" | ||
ASGI config for locallibrary project. | ||
It exposes the ASGI callable as a module-level variable named ``application``. | ||
For more information on this file, see | ||
https://docs.djangoproject.com/en/5.0/howto/deployment/asgi/ | ||
""" | ||
|
||
import os | ||
|
||
from django.core.asgi import get_asgi_application | ||
|
||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'locallibrary.settings') | ||
|
||
application = get_asgi_application() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Django==4.2.11 | ||
dj-database-url==2.0.0 | ||
Django==5.0.2 | ||
dj-database-url==2.1.0 | ||
gunicorn==21.2.0 | ||
psycopg2-binary==2.9.6 | ||
psycopg2-binary==2.9.9 | ||
wheel==0.38.1 | ||
whitenoise==6.5.0 | ||
whitenoise==6.6.0 | ||
python-dotenv==1.0.1 |