Skip to content

Commit

Permalink
Suppression du paramètre Django SITE_ID
Browse files Browse the repository at this point in the history
Ce paramètre est requis lorsqu'on utilise le module
django.contrib.sites. Mais on n'utilise plus ce module depuis 2015
(supprimé avec le commit c732cc4).

Il est donc aussi possible de supprimer la table django_site de la base
de données.
  • Loading branch information
philippemilink authored and Situphen committed Mar 20, 2023
1 parent 40f5701 commit 9df6b80
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions zds/settings/abstract_base/django.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,6 @@
# 'django.contrib.admindocs',
)

SITE_ID = 1

REST_FRAMEWORK = {
"DEFAULT_PAGINATION_CLASS": "zds.api.pagination.DefaultPagination",
"DEFAULT_SCHEMA_CLASS": "rest_framework.schemas.coreapi.AutoSchema",
Expand Down

0 comments on commit 9df6b80

Please sign in to comment.