Skip to content

Commit ad472c8

Browse files
committed
新建项目
1 parent b905e5b commit ad472c8

36 files changed

+12
-170
lines changed

.idea/.gitignore

-8
This file was deleted.

.idea/dataSources.xml

-12
This file was deleted.

.idea/django_learning.iml

+5-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

book/__init__.py

Whitespace-only changes.

book/admin.py

-6
This file was deleted.

book/apps.py

-7
This file was deleted.

book/migrations/0001_initial.py

-31
This file was deleted.

book/migrations/0002_rename_书名_book_name_rename_关联的书目_person_book_and_more.py

-33
This file was deleted.

book/migrations/__init__.py

Whitespace-only changes.

book/models.py

-19
This file was deleted.

book/tests.py

-3
This file was deleted.

book/urls.py

-6
This file was deleted.

book/views.py

-13
This file was deleted.

db.sqlite3

-144 KB
Binary file not shown.

django_learning/settings.py

+6-11
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
For the full list of settings and their values, see
1010
https://docs.djangoproject.com/en/4.0/ref/settings/
1111
"""
12-
import os
12+
1313
from pathlib import Path
1414

1515
# Build paths inside the project like this: BASE_DIR / 'subdir'.
@@ -20,12 +20,12 @@
2020
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
2121

2222
# SECURITY WARNING: keep the secret key used in production secret!
23-
SECRET_KEY = 'django-insecure-s77rho_$dxxmgq=kvnt8n&_$!2!$2(uj%g=q&$m@ac!-3g%0@2'
23+
SECRET_KEY = 'django-insecure-qm02av0#7b(r)!3mkhha!=k)2vh5#yqoj)_gr@*wle%+jjv&ac'
2424

2525
# SECURITY WARNING: don't run with debug turned on in production!
2626
DEBUG = True
2727

28-
ALLOWED_HOSTS = ['127.0.0.1', '192.168.31.86']
28+
ALLOWED_HOSTS = []
2929

3030

3131
# Application definition
@@ -37,7 +37,6 @@
3737
'django.contrib.sessions',
3838
'django.contrib.messages',
3939
'django.contrib.staticfiles',
40-
'book.apps.BookConfig',
4140
]
4241

4342
MIDDLEWARE = [
@@ -55,8 +54,7 @@
5554
TEMPLATES = [
5655
{
5756
'BACKEND': 'django.template.backends.django.DjangoTemplates',
58-
'DIRS': [BASE_DIR / 'templates']
59-
,
57+
'DIRS': [],
6058
'APP_DIRS': True,
6159
'OPTIONS': {
6260
'context_processors': [
@@ -105,9 +103,9 @@
105103
# Internationalization
106104
# https://docs.djangoproject.com/en/4.0/topics/i18n/
107105

108-
LANGUAGE_CODE = 'zh-hans'
106+
LANGUAGE_CODE = 'en-us'
109107

110-
TIME_ZONE = 'Asia/Shanghai'
108+
TIME_ZONE = 'UTC'
111109

112110
USE_I18N = True
113111

@@ -118,9 +116,6 @@
118116
# https://docs.djangoproject.com/en/4.0/howto/static-files/
119117

120118
STATIC_URL = 'static/'
121-
STATICFILES_DIRS = [
122-
os.path.join(BASE_DIR, 'static')
123-
]
124119

125120
# Default primary key field type
126121
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field

django_learning/urls.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1515
"""
1616
from django.contrib import admin
17-
from django.urls import path, include
17+
from django.urls import path
1818

1919
urlpatterns = [
2020
path('admin/', admin.site.urls),
21-
path('book/', include('book.urls')),
2221
]

static/Down Home BBQ.png

-15.8 MB
Binary file not shown.

static/ev0001.png

-1.19 MB
Binary file not shown.

static/ev0006.png

-1.19 MB
Binary file not shown.

static/ev0011.png

-1.19 MB
Binary file not shown.

static/ev01.bmp

-38.5 MB
Binary file not shown.

static/ev02.bmp

-41.9 MB
Binary file not shown.

static/ev03.bmp

-7.47 MB
Binary file not shown.

static/ev04a.bmp

-17 MB
Binary file not shown.

static/ev04b.bmp

-17 MB
Binary file not shown.

static/ev05a.bmp

-5.93 MB
Binary file not shown.

static/ev05b.bmp

-5.93 MB
Binary file not shown.

static/ev06.bmp

-5.93 MB
Binary file not shown.

static/ev07.bmp

-5.93 MB
Binary file not shown.

static/ev08.bmp

-10.5 MB
Binary file not shown.

static/ev09.bmp

-5.93 MB
Binary file not shown.

static/ev10.bmp

-10.5 MB
Binary file not shown.

static/ev11a.bmp

-5.93 MB
Binary file not shown.

static/ev11b.bmp

-5.93 MB
Binary file not shown.

templates/book/__init__.py

Whitespace-only changes.

templates/book/index.html

-13
This file was deleted.

0 commit comments

Comments
 (0)