File tree Expand file tree Collapse file tree 8 files changed +18
-6
lines changed Expand file tree Collapse file tree 8 files changed +18
-6
lines changed Original file line number Diff line number Diff line change
1
+ from django .contrib import admin
2
+
3
+ # Register your models here.
Original file line number Diff line number Diff line change
1
+ from django .apps import AppConfig
2
+
3
+
4
+ class BlogConfig (AppConfig ):
5
+ name = 'blog'
Original file line number Diff line number Diff line change
1
+ from django .db import models
2
+
3
+ # Create your models here.
Original file line number Diff line number Diff line change
1
+ from django .test import TestCase
2
+
3
+ # Create your tests here.
Original file line number Diff line number Diff line change
1
+ from django .shortcuts import render
2
+
3
+ # Create your views here.
Original file line number Diff line number Diff line change 15
15
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
16
16
BASE_DIR = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
17
17
18
-
19
18
# Quick-start development settings - unsuitable for production
20
19
# See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/
21
20
27
26
28
27
ALLOWED_HOSTS = []
29
28
30
-
31
29
# Application definition
32
30
33
31
INSTALLED_APPS = [
37
35
'django.contrib.sessions' ,
38
36
'django.contrib.messages' ,
39
37
'django.contrib.staticfiles' ,
38
+ 'blog' ,
40
39
]
41
40
42
41
MIDDLEWARE = [
69
68
70
69
WSGI_APPLICATION = 'blogproject.wsgi.application'
71
70
72
-
73
71
# Database
74
72
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
75
73
80
78
}
81
79
}
82
80
83
-
84
81
# Password validation
85
82
# https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators
86
83
99
96
},
100
97
]
101
98
102
-
103
99
# Internationalization
104
100
# https://docs.djangoproject.com/en/1.10/topics/i18n/
105
101
113
109
114
110
USE_TZ = True
115
111
116
-
117
112
# Static files (CSS, JavaScript, Images)
118
113
# https://docs.djangoproject.com/en/1.10/howto/static-files/
119
114
You can’t perform that action at this time.
0 commit comments