Skip to content

Commit e817bb8

Browse files
committed
Update to Django 6
1 parent 0ed3292 commit e817bb8

File tree

8 files changed

+16
-23
lines changed

8 files changed

+16
-23
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "django-setup"
33
version = "0.1.0"
4-
requires-python = ">=3.10"
4+
requires-python = ">=3.12"
55
dependencies = [
6-
"django>=5.2.8",
6+
"django>=6.0",
77
]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
asgiref==3.11.0
2-
django==5.2.8
3-
sqlparse==0.5.3
2+
django==6.0
3+
sqlparse==0.5.4

create-django-project/setup/example/apps.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22

33

44
class ExampleConfig(AppConfig):
5-
default_auto_field = "django.db.models.BigAutoField"
65
name = "example"

create-django-project/setup/manage.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python
22
"""Django's command-line utility for administrative tasks."""
3-
43
import os
54
import sys
65

create-django-project/setup/setup/asgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
It exposes the ASGI callable as a module-level variable named ``application``.
55
66
For more information on this file, see
7-
https://docs.djangoproject.com/en/5.2/howto/deployment/asgi/
7+
https://docs.djangoproject.com/en/6.0/howto/deployment/asgi/
88
"""
99

1010
import os

create-django-project/setup/setup/settings.py

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
"""
22
Django settings for setup project.
33
4-
Generated by 'django-admin startproject' using Django 5.2.8.
4+
Generated by 'django-admin startproject' using Django 6.0.
55
66
For more information on this file, see
7-
https://docs.djangoproject.com/en/5.2/topics/settings/
7+
https://docs.djangoproject.com/en/6.0/topics/settings/
88
99
For the full list of settings and their values, see
10-
https://docs.djangoproject.com/en/5.2/ref/settings/
10+
https://docs.djangoproject.com/en/6.0/ref/settings/
1111
"""
1212

1313
from pathlib import Path
@@ -17,11 +17,11 @@
1717

1818

1919
# Quick-start development settings - unsuitable for production
20-
# See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/
20+
# See https://docs.djangoproject.com/en/6.0/howto/deployment/checklist/
2121

2222
# SECURITY WARNING: keep the secret key used in production secret!
2323
SECRET_KEY = (
24-
"django-insecure-*!3%6wxj1sa-i6g&&f+!w_jp^@fcuj=t^9wlg*%p=4b_r%f0q6"
24+
"django-insecure-avx+s!jrtg_6%qri+07#1dsa+mxtmk2kdf1cl_mofz*461mkq2"
2525
)
2626

2727
# SECURITY WARNING: don't run with debug turned on in production!
@@ -72,7 +72,7 @@
7272

7373

7474
# Database
75-
# https://docs.djangoproject.com/en/5.2/ref/settings/#databases
75+
# https://docs.djangoproject.com/en/6.0/ref/settings/#databases
7676

7777
DATABASES = {
7878
"default": {
@@ -83,7 +83,7 @@
8383

8484

8585
# Password validation
86-
# https://docs.djangoproject.com/en/5.2/ref/settings/#auth-password-validators
86+
# https://docs.djangoproject.com/en/6.0/ref/settings/#auth-password-validators
8787

8888
AUTH_PASSWORD_VALIDATORS = [
8989
{
@@ -102,7 +102,7 @@
102102

103103

104104
# Internationalization
105-
# https://docs.djangoproject.com/en/5.2/topics/i18n/
105+
# https://docs.djangoproject.com/en/6.0/topics/i18n/
106106

107107
LANGUAGE_CODE = "en-us"
108108

@@ -114,11 +114,6 @@
114114

115115

116116
# Static files (CSS, JavaScript, Images)
117-
# https://docs.djangoproject.com/en/5.2/howto/static-files/
117+
# https://docs.djangoproject.com/en/6.0/howto/static-files/
118118

119119
STATIC_URL = "static/"
120-
121-
# Default primary key field type
122-
# https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field
123-
124-
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"

create-django-project/setup/setup/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
URL configuration for setup project.
33
44
The `urlpatterns` list routes URLs to views. For more information please see:
5-
https://docs.djangoproject.com/en/5.2/topics/http/urls/
5+
https://docs.djangoproject.com/en/6.0/topics/http/urls/
66
Examples:
77
Function views
88
1. Add an import: from my_app import views

create-django-project/setup/setup/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
It exposes the WSGI callable as a module-level variable named ``application``.
55
66
For more information on this file, see
7-
https://docs.djangoproject.com/en/5.2/howto/deployment/wsgi/
7+
https://docs.djangoproject.com/en/6.0/howto/deployment/wsgi/
88
"""
99

1010
import os

0 commit comments

Comments
 (0)