Skip to content

Commit

Permalink
add django-extras, upgrade django to 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
astynax committed Jun 4, 2021
1 parent a247ff6 commit 0b0312a
Show file tree
Hide file tree
Showing 5 changed files with 224 additions and 209 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ MANAGE := poetry run python manage.py

run:
$(MANAGE) runserver

repl:
$(MANAGE) shell_plus
2 changes: 1 addition & 1 deletion djaif/book/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


class BookConfig(AppConfig):
name = 'book'
name = 'djaif.book'
5 changes: 5 additions & 0 deletions djaif/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_extensions',
'djaif.book',
]

Expand Down Expand Up @@ -129,3 +130,7 @@

MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')

DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'

SHELL_PLUS_PRINT_SQL = True
Loading

0 comments on commit 0b0312a

Please sign in to comment.