All language subtitles for 007 Migrations & Admin Login_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian Download
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:02,210 --> 00:00:04,890 So let's now make and run the migrations. 2 00:00:04,890 --> 00:00:09,483 So I'll reach out to manage.py and call make migrations. 3 00:00:10,410 --> 00:00:12,423 And it crashes. 4 00:00:13,650 --> 00:00:16,940 Probably because I have a typo, yeah. 5 00:00:16,940 --> 00:00:21,170 Post that should be models.model, not models. 6 00:00:21,170 --> 00:00:23,010 And that's what this error is telling me 7 00:00:23,010 --> 00:00:26,020 that there is no models class I can use. 8 00:00:26,020 --> 00:00:28,500 So a simple typo in the models.py file, 9 00:00:28,500 --> 00:00:33,500 which I fixed now, and then I can repeat make migrations 10 00:00:34,091 --> 00:00:36,850 and I get another error. 11 00:00:36,850 --> 00:00:39,740 On_delete=SET_NULL, but cannot be null. 12 00:00:39,740 --> 00:00:41,910 And that makes a lot of sense. 13 00:00:41,910 --> 00:00:46,000 I want to set this author field to null 14 00:00:46,000 --> 00:00:48,720 if a related author is deleted 15 00:00:48,720 --> 00:00:52,040 but I haven't added null equals true here, 16 00:00:52,040 --> 00:00:53,120 which I need to do though 17 00:00:53,120 --> 00:00:58,120 to allow Django and SQL to write null values to that field. 18 00:00:59,420 --> 00:01:03,740 So now I add null equals true here and now with that 19 00:01:03,740 --> 00:01:07,803 we can again try making those migrations. 20 00:01:09,200 --> 00:01:10,423 And now this worked. 21 00:01:11,550 --> 00:01:13,960 Now, I also want to run the migrations 22 00:01:13,960 --> 00:01:17,073 and they are for all now call migrate. 23 00:01:17,950 --> 00:01:21,990 By the way if you didn't have a DBE SQLite free file yet, 24 00:01:21,990 --> 00:01:24,240 it should have created one automatically. 25 00:01:24,240 --> 00:01:26,070 If you're facing any problems there, 26 00:01:26,070 --> 00:01:27,520 just create one manually 27 00:01:27,520 --> 00:01:29,660 as shown to you earlier in the course, 28 00:01:29,660 --> 00:01:31,563 and try migrating thereafter. 29 00:01:32,730 --> 00:01:35,800 With that here, it ran all these default migrations 30 00:01:35,800 --> 00:01:37,686 for the admin area for example, 31 00:01:37,686 --> 00:01:42,000 and then also my custom blog migrations here. 32 00:01:42,000 --> 00:01:43,260 And that means that now 33 00:01:43,260 --> 00:01:45,730 we got that initial database structure 34 00:01:45,730 --> 00:01:48,210 and these core tables set up. 35 00:01:48,210 --> 00:01:50,950 Therefore, now let's create a super user 36 00:01:50,950 --> 00:01:53,760 so that we can log into that admin area. 37 00:01:53,760 --> 00:01:58,230 And we do this with Python3 in my case, manage.py, 38 00:01:58,230 --> 00:02:03,230 and then create super user, hit enter and pick a username 39 00:02:05,640 --> 00:02:08,053 followed by some email address, 40 00:02:09,570 --> 00:02:11,650 and then a password. 41 00:02:11,650 --> 00:02:14,660 And I'm again, using a rather insecure one 42 00:02:14,660 --> 00:02:16,300 which is why I'm getting this warning. 43 00:02:16,300 --> 00:02:18,262 Of course, you can pick a more secure one 44 00:02:18,262 --> 00:02:21,393 but I'll confirm my insecure one here. 45 00:02:22,530 --> 00:02:25,050 Now this super user is created 46 00:02:25,050 --> 00:02:28,660 and now we can try logging into admin. 47 00:02:28,660 --> 00:02:30,110 It should work 48 00:02:30,110 --> 00:02:35,110 because if we have a look at our main project wide URLs, 49 00:02:35,370 --> 00:02:38,840 we have this admin URL here as well. 50 00:02:38,840 --> 00:02:43,480 So if we now start our development server again 51 00:02:43,480 --> 00:02:45,873 with manage.py run server. 52 00:02:46,770 --> 00:02:51,260 I should be able to visit local host 8,000 slash admin. 53 00:02:51,260 --> 00:02:53,730 And I am able to do that. 54 00:02:53,730 --> 00:02:55,990 Now, if I enter max 55 00:02:55,990 --> 00:02:59,885 and my super insecure password, I can log in. 56 00:02:59,885 --> 00:03:04,730 And I also see all my data here already, my models, 57 00:03:04,730 --> 00:03:07,633 because I did register them for administration. 58 00:03:08,540 --> 00:03:11,313 Now let's get started working with that. 4467

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.