-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTODO
176 lines (89 loc) · 3.8 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
HOMEWORK
tax yozish kerak
git readmi qilish
PDF file qilish kerak generate qilish kerak
admin
model fields
class model meta
#HOMEWORK
https://bootdey.com/snippets/view/Shop-page
1. category boyicha productlarni chiqarish
2. pagination ishlidigan qilish
3. price(low, high), newest boyicha order qilish
4. product title va description boyicha search qilish
5. product ni CRUD
6. mptt ishlatgan holda, category ni ichma-ich qilish
7. adminkada product qoshishda categoryni (bollari bolmagan category) ni tanlashi kk
8. adminkada category qoshishda parent category ga producti bolmaganlar categoryni tanlash mn
https://ccbv.co.uk/
class based view
CRUD
mptt, ckeditor, import-export, jazzmin
class based view
https://books.agiliq.com/projects/django-admin-cookbook/en/latest/
model field types
model field options
class model meta options
#HOMEWORK
1. mptt(category), ckeditor(product description), import-export(product, category)
2. product list page dagi (Showing 1-24 of 205 Products) shuni togri chiqadigan qilish kerak
3. New nomli badge ni togri ishlidigan qilish
4. product list page dagi productni categorysini bosgandan category ga tegishli productlarni chiqarish kk
5. chap menyuda (cateogry lar listini chiqarishda), 2ta etapli qilish
6. product detailda barcha narsalarni chiqarish kk
login,register,celery,email,updateview,createview, loginview, logoutview
#HOMEWORK
1. user login qilmagan bolsa default image korsatish
2.
10.10.2.174
TODO
1. product-detail category boyicha otish -> Ketdi
2. registerda loginrequired -> ketdi
3. product-detail da discount ni -> ketdi
4. product summasini uzs otkazish va summani 3 talik ajratish -> endi
n + 1
UUID
TODO
"debug_toolbar",
'apps.apps.AppsConfig',
yangi kutubxonalar
TODO
cache boladgan narsalardi saqlab olish kk
magazinga qilinadgan planlarda shuni xam olib qoyish kerak
TODO
mptt category qilish kerak togirlab
TODO
CUSTOMER da super user yokida ishchi uchun korinishi kerak faqat
ctrl shift 6 bn qilinsa
TODO
get database dan bittasini olib beradi va kop malumot bolsa eror chiqazadi
filter esa xammasini olib keb beradi
TODO
DOCKER, DOCKER-COMPOSE va SERVERLAR BN ISHLASH SHULAR ORQALI
docker run -e POSTGRES_PASSWORD=1 -v new_pg_data:/var/lib/postgresql/data -p 5439:5432
docker compose up --build -> yangi kutubxonalardi yuklab olish uchun kerak boladi
docker compose up -d
docker compose exec -itu postgres postgres_serrvice psql -c "create database ..."
docker exec -itu postgres container_name/container_id psql
docker cp bn copy qilib olsak boladi
loglarini korib qaysi biri yaxshi yomon yokida ishlamayotganini korib olsak boladi
wal degan narsa bor va uni qilib beradigan ishi real vaqtda 5 ta database bir biri bn malumot almashidami shuni korib
chiqish. Shulardi xammasini REPLICATION deyiladi, bir serverdan 2 chi serverga otqizish REPLICATION xam deyiladi
gcc, c++, c+, c -> bular devops uchun kerak boladi xar doim
3 serverga qoyish 3 hil usulda
1 simple (servislar yozib nginx ga oxshab)
2 docker compose (docker bn run qilish)
3 k8s (bitta server da ishlamidi 2 ta 3 ta serverda ishlidi va bitta komputer
oniga boshqa kompyuterlar qoshiladi kotara olishi uchun server qotmasligi uchun)
docker start b832ff49aabf
docker start d957ca58d02c
docker start 36d8da92ad55
image di oldin udalit qilib kein boshqatan qilish kerak ekan
docker images -> delete image kn
undan kein esa built boshqatan
waplayzer -> qilib beradgan ishi nima -> qaysi saytda qanday texnologiya ishlatilgan shulardi korib beradi va yordam
beradi
crm -> vazifasi bu kelayotgan mijozlardi hammasini mujozga aylantirish hisoblanadi
amo crm -> korib chiqish kerak boladi buni xam
docker compose down -> container di toxtatib un ochirib tashlash uchun qilinadi
photo secret channel in telegram forward to my channel or archive