forked from devsonket/devsonket.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdjango.json
More file actions
94 lines (94 loc) · 3.14 KB
/
Copy pathdjango.json
File metadata and controls
94 lines (94 loc) · 3.14 KB
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
{
"id": "django",
"title": "জ্যাঙ্গো",
"slug": "django",
"description": "জ্যাঙ্গো এর চিটশিট",
"colorPref": "#6cc24a",
"contents": [
{
"title": "pipenv ইনিশিয়ালাইজেশন",
"items": [
{
"definition": "প্রোজেক্ট ডিরেক্টরী তৈরী করা",
"code": "mkdir <directory_name>"
},
{
"definition": "প্রোজেক্ট ডিরেক্টরীতে নেভিগেইট করা",
"code": "cd <directory_name>"
},
{
"definition": "pipenv ইনিশিয়ালাইজ করা",
"code": "pipenv install"
},
{
"definition": "pipenv শেল চালু করা",
"code": "pipenv shell"
},
{
"definition": "django ইন্সটল করা",
"code": "pipenv install django"
},
{
"definition": "django ভার্সন দেখা",
"code": "python -m django --version"
},
{
"definition": "যেকোনো প্যাকেজ ডিপেন্ডেন্সী ইন্সটল করা",
"code": "pipenv install <package_name>"
}
]
},
{
"title": "প্রোজেক্ট",
"items": [
{
"definition": "প্রোজেক্ট তৈরী করা",
"code": "django-admin startproject <project_name>"
},
{
"definition": "ডেভলপমেন্ট সার্ভার চালু করা",
"code": "python manage.py runserver"
}
]
},
{
"title": "অ্যাপ",
"items": [
{
"definition": "অ্যাপ তৈরী করা",
"code": "python manage.py startapp <app_name>"
},
{
"definition": "মাইগ্রেশনের জন্য",
"code": "python manage.py migrate"
}
]
},
{
"title": "এডমিন",
"items": [
{
"definition": "সুপার ইউজার তৈরী করা",
"code": "python manage.py createsuperuser"
}
]
},
{
"title": "স্ট্যাটিক ফাইল",
"items": [
{
"definition": "'স্ট্যাটিক রুট' ফোল্ডারে সকল স্ট্যাটিক ফাইল সংগ্রহ করা",
"code": "python manage.py collectstatic"
},
{
"definition": "ইউজার ইনপুট ছাড়াই 'স্ট্যাটিক রুট' ফোল্ডারে সকল স্ট্যাটিক ফাইল সংগ্রহ করা",
"code": "python manage.py collectstatic --no-input"
},
{
"definition": "স্ট্যাটিক ফাইল খুঁজে বের করা",
"code": "python manage.py findstatic staticfile [staticfile ...]"
}
]
}
]
}