1
1
"""
2
- Django settings for mysite_3 project.
2
+ Django settings for codemy_myclub_1 project.
3
3
4
- Generated by 'django-admin startproject' using Django 3.1 .5.
4
+ Generated by 'django-admin startproject' using Django 3.2 .5.
5
5
6
6
For more information on this file, see
7
- https://docs.djangoproject.com/en/3.1 /topics/settings/
7
+ https://docs.djangoproject.com/en/3.2 /topics/settings/
8
8
9
9
For the full list of settings and their values, see
10
- https://docs.djangoproject.com/en/3.1 /ref/settings/
10
+ https://docs.djangoproject.com/en/3.2 /ref/settings/
11
11
"""
12
12
13
13
from pathlib import Path
17
17
18
18
19
19
# Quick-start development settings - unsuitable for production
20
- # See https://docs.djangoproject.com/en/3.1 /howto/deployment/checklist/
20
+ # See https://docs.djangoproject.com/en/3.2 /howto/deployment/checklist/
21
21
22
22
# SECURITY WARNING: keep the secret key used in production secret!
23
- SECRET_KEY = 'i=qxvd1z6@*iwqcu*rto1b#$*8yo4bf&s(n&k6)o(xm3_ng=^) '
23
+ SECRET_KEY = 'django-insecure-lq!rnr$6*%%$32uh%u5b^ox44z)i+7rdv(7vihysy0%7mlnzco '
24
24
25
25
# SECURITY WARNING: don't run with debug turned on in production!
26
26
DEBUG = True
37
37
'django.contrib.sessions' ,
38
38
'django.contrib.messages' ,
39
39
'django.contrib.staticfiles' ,
40
- 'main.apps.MainConfig' ,
41
- 'tinymce' ,
40
+ 'event.apps.EventConfig' ,
42
41
]
43
42
44
43
MIDDLEWARE = [
51
50
'django.middleware.clickjacking.XFrameOptionsMiddleware' ,
52
51
]
53
52
54
- ROOT_URLCONF = 'mysite_3 .urls'
53
+ ROOT_URLCONF = 'codemy_myclub_1 .urls'
55
54
56
55
TEMPLATES = [
57
56
{
58
- 'BACKEND' : 'django.templates .backends.django.DjangoTemplates' ,
57
+ 'BACKEND' : 'django.template .backends.django.DjangoTemplates' ,
59
58
'DIRS' : [],
60
59
'APP_DIRS' : True ,
61
60
'OPTIONS' : {
62
61
'context_processors' : [
63
- 'django.templates .context_processors.debug' ,
64
- 'django.templates .context_processors.request' ,
62
+ 'django.template .context_processors.debug' ,
63
+ 'django.template .context_processors.request' ,
65
64
'django.contrib.auth.context_processors.auth' ,
66
65
'django.contrib.messages.context_processors.messages' ,
67
66
],
68
67
},
69
68
},
70
69
]
71
70
72
- WSGI_APPLICATION = 'mysite_3 .wsgi.application'
71
+ WSGI_APPLICATION = 'codemy_myclub_1 .wsgi.application'
73
72
74
73
75
74
# Database
76
- # https://docs.djangoproject.com/en/3.1 /ref/settings/#databases
75
+ # https://docs.djangoproject.com/en/3.2 /ref/settings/#databases
77
76
78
77
DATABASES = {
79
78
'default' : {
84
83
85
84
86
85
# Password validation
87
- # https://docs.djangoproject.com/en/3.1 /ref/settings/#auth-password-validators
86
+ # https://docs.djangoproject.com/en/3.2 /ref/settings/#auth-password-validators
88
87
89
88
AUTH_PASSWORD_VALIDATORS = [
90
89
{
103
102
104
103
105
104
# Internationalization
106
- # https://docs.djangoproject.com/en/3.1 /topics/i18n/
105
+ # https://docs.djangoproject.com/en/3.2 /topics/i18n/
107
106
108
107
LANGUAGE_CODE = 'en-us'
109
108
116
115
USE_TZ = True
117
116
118
117
119
- # Static files (css , JavaScript, images )
120
- # https://docs.djangoproject.com/en/3.1 /howto/static-files/
118
+ # Static files (CSS , JavaScript, Images )
119
+ # https://docs.djangoproject.com/en/3.2 /howto/static-files/
121
120
122
121
STATIC_URL = '/static/'
123
122
124
- TINYMCE_DEFAULT_CONFIG = {
125
- 'height' : 360 ,
126
- 'width' : 1120 ,
127
- 'cleanup_on_startup' : True ,
128
- 'custom_undo_redo_levels' : 20 ,
129
- 'selector' : 'textarea' ,
130
- 'theme' : 'modern' ,
131
- 'plugins' : '''
132
- textcolor save link image media preview codesample contextmenu
133
- table code lists fullscreen insertdatetime nonbreaking
134
- contextmenu directionality searchreplace wordcount visualblocks
135
- visualchars code fullscreen autolink lists charmap print hr
136
- anchor pagebreak
137
- ''' ,
138
- 'toolbar1' : '''
139
- fullscreen preview bold italic underline | fontselect,
140
- fontsizeselect | forecolor backcolor | alignleft alignright |
141
- aligncenter alignjustify | indent outdent | bullist numlist table |
142
- | link image media | codesample |
143
- ''' ,
144
- 'toolbar2' : '''
145
- visualblocks visualchars |
146
- charmap hr pagebreak nonbreaking anchor | code |
147
- ''' ,
148
- 'contextmenu' : 'formats | link image' ,
149
- 'menubar' : True ,
150
- 'statusbar' : True ,
151
- }
123
+ # Default primary key field type
124
+ # https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
152
125
153
- # LOGIN_REDIRECT_URL='main:homepage '
126
+ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField '
0 commit comments