₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,307 members, 8,421,257 topics. Date: Saturday, 06 June 2026 at 06:35 AM

Toggle theme

Mrviktor's Posts

Nairaland ForumMrviktor's ProfileMrviktor's Posts

1 2 3 4 5 6 7 8 ... 96 97 98 99 100 101 102 103 104 (of 247 pages)

ProgrammingRe: Django Development Passion Projects November, December by Mrviktor(op): 3:23pm On Nov 18, 2022
ProgrammingRe: Django Development Passion Projects November, December by Mrviktor(op): 3:22pm On Nov 18, 2022
I ADDED THE ABILTY TO CONTINUE MOVIES FROM WHERE YOU LEFT OFF.
EVEN IF U CLOSE THE BROWSER OR TAB. JUST LIKE HOW VLC DOES IT BUT BETTER. SINCE ITS BROSWER BASED HERE. THE PROGRESS IS ALSO TRANSFERABLE OVER DIFFERENT DEVICES. WHICH IS COOL I GUESS. I ALSO ADDED A SEARCH FUNCTIONALITY

below is a video of the walkthrough



https://www.youtube.com/watch?v=-6EfaKXR-aU

European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 2:46pm On Nov 18, 2022
So no more suiiiiiii cry cry cry

No more viva ronaldo
European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 2:44pm On Nov 18, 2022
[quote author=Ellexy post=118492772]Cristiano Ronaldo will effectively be sacked by #mufc for breach of contract. He is set to lose £16m in wages. United have decided there is no way, and his teammates are said to be ambivalent towards him [@ChrisWheelerDM][/quote
Make dem use that 16 million buy one South American striker this January grin
European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 2:23pm On Nov 18, 2022
ChristoBam:
Mrviktor do you want a video comparison of our style of play to City/Liverpool's? How can you say you watch United or watched Ajax play and then be surprised a Liverpool full back has more crosses than a Ten Hag's full back.

Fact that we went for Malacia says a lot cuz he's never going to be a full back that crosses a lot. That's not the most important thing to Ten Hag.
CROSSES ASIDE. WHAT OF CHANCES CREATED
if u arent crossing and arent creating chances. what is the point of going foward..

shaw creates chances.
shaw crosses. if he didnt cross against chelsea we would have lost that game..

we arent crossing and the chances we have to win games from headers the strikers cant convert (dr marcus rashford especially)

European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 10:43am On Nov 18, 2022
Maybe na bad form cause am sha
European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 10:43am On Nov 18, 2022
If he has no plans for Ronaldo he should have said it since pre season.. Instead of saying he's very important to us
European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 10:42am On Nov 18, 2022
TrebleChamp:
I have seen the full interview and Ronaldo was 10/10 in my opinion, maybe the Ten Hag part was a bit off but that is between both of them...
The quotes made the situation worse in my opinion.

Nd at the end not up to 10% of people watched the whole interview..

Yes he talked about the mancity gam nd saying he didn't bring him on out of respect.
Nd the Tottenham game he wanted to bring him on with only 2 minutes left..
And that he says something in the press but face to face he does something else.
Nd because of that he doesn't respect him. Cuz ten hag doesn't respect him either
European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 10:36am On Nov 18, 2022
akwesenana:
So we should dump him and get who? smiley
I'm not saying we should dump him.
I'm only saying we should sign a replacement not a backup.

We dont want shaw nd telez.
We want shaw nd malacia kind competition.

If u mess up.. U go chop bench for 3 games.
European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 8:28am On Nov 18, 2022
TrebleChamp:
Small goht fans, oya make una use this one hold body smiley...
When has messi talked about Ronaldo shocked

Pier just bait this guy into creating headlines.. Nd d mumu man fell for all d dirty trick questions..

I wonder wetin concern rooney nd the amount of money in ronaldos bank account
European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 8:26am On Nov 18, 2022
ChristoBam:
I don't even know where to start for real. Arnold is probably the worst example to use when talking about the type of right backs you want.

Btwn, everyone of these players you mentioned was continuously developed and backed by a manager. They all didn't start gun blazing especially Arnold and Cancelo. They had to fit into a system and that came with the good performances you see.

We backed Bissaka to be our RB until recently. Dalot has never had all of that luxury until recently. Now that he has it he's performed absolutely well.

You see the way our full backs play and still want to complain about Assists. You see the way he defends, progresses the ball, pick out passes and you complain about Assists smh.


All of these talks and one would think you've got a better RB in mind.

Dalot is one of our top 3 best players in the team right now based on performance. Pick on another player abeg.
Why can't I compare him to arnold.
It's not like dalot is gifted defensively as well.

Is dalot better at defending that Aaron no.
Arnold has created 10 more chances that dalot this season.
Crossed 80 more balls this season.


He's playing good football no doubt...
But is far from world class
European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 1:17am On Nov 18, 2022
Once we play barca.


We go see dalot vs dembele nd Raphinia
European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 1:16am On Nov 18, 2022
Santos07:
who should we then get as right back?
They should scout...


They better not try signing that frinpong.
He's shit
ProgrammingRe: Wow Djngo Passion Projct by Mrviktor(m): 12:14am On Nov 18, 2022
Kvngfrosh:
It looks nice…
Thanks
European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 12:12am On Nov 18, 2022
Look at chances created
European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 12:12am On Nov 18, 2022
Hm

European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 12:11am On Nov 18, 2022
Look at crosses
European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 12:07am On Nov 18, 2022
ChristoBam:
Everything's not competition. He's solid for the team. And it's actually looking like we can't do better at the moment. Let's have it like that in other positions and we'll do great things.
Are u saying..
Manchester United.
The most successful club in English football.

Dalot is the best we can do.

Seeing what trent is doing.
Banging free kicks left nd right.
Creating chance after chance.
Running up nd down the wings.
Same as reece James

I'm not convinced about dalot one bit..

It's not as if we got him cheap either.. It was big money..

He should be doing more in my opinion.

Not sure he has up to 3 assists for us this year.
European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 9:41pm On Nov 17, 2022
Alejandro Garnacho is a candidate to replace Joaquin Correa in Argentina's World Cup squad [@gastonedul]

European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 9:40pm On Nov 17, 2022
Good or bad.
We have nothing to rate dalot with


But if we compare him to top 4 right backs..
I think he's only better than Tottenham's fullbacks.

Is he better than cancelo..
Is he better than James of Chelsea..
Is he better than trent.

Na d bench mark be that
European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 9:38pm On Nov 17, 2022
Make dem no rush give dalot any contract oh.

I'm not totally convinced about that boy yet fr fr.

Priority should be a new right back.

Den dey can give him the one year extension.
European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 9:37pm On Nov 17, 2022
So he's mad because we were benching him.

That's d whold point of this interview nd scandal.

Nawah
ProgrammingRe: Wow Djngo Passion Projct by Mrviktor(m): 8:15pm On Nov 17, 2022
Sleekcode:
Nice... but seems easy to create with an Api
I took this as a challenge and pushed it even more..

So I integrated

Resume playback to the videos..

A feature from Netflix.

I'm doing it in two ways

One.
If a user logs in and decides to watch maybe
Blackadam.

The user streams up to 20 minutes of the movie on the website. If the user closes the tab.. And goes to bed maybe.
And them decided to come back on the website the next day or the next 10 days..

On the home screen for one.
The user on the home screen is going to see the last movie he was watching and has the option to play the movie straight off the landing page without going to search for it..

Under the profile too..
There would be a list of previously watched movies as well..

Not just that.

When a user navigates to a previously watched movie or series.. That he is yet to complete..

Once he/she hits play there is going to be an option to resume from where he left off.
The exact second.. Or minute in which the user left off.....


Also added a watch list section..

And a favorite section..


I'll drop screenshots later..
European Football (EPL, UEFA, La Liga)Re: Official Manchester United Fan Thread:''20 Times EPL Champion by Mrviktor(m): 7:59pm On Nov 17, 2022
Lana1:
Only God knows why Rashford will choose to shoot this with his weaker foot instead of attempt a header. This is why we are on 0 GD. Na foolish strikers full the team

https://images2.imgbox.com/c5/80/tcRzlkFA_o.gif

https://images2.imgbox.com/8f/eb/3V1ei22A_o.jpg
Rashford no sabi head ball.

A player that has played with ronaldo.. Rooney. Ibra.. Felani.. Maguire.. Cavani.
ProgrammingRe: Django Development Passion Projects November, December by Mrviktor(op): 5:29pm On Nov 15, 2022
we move over to the urls.py of the main project
and import include

include means we are joining something to something

what are we joining,
well we are joining the sub apps url routes to the main apps url routes

we would also set the me
i also set the static and media url path.. i did that in my settings.py

i just shows the application where my static and media folder is..

ProgrammingRe: Django Development Passion Projects November, December by Mrviktor(op): 5:25pm On Nov 15, 2022
now head over o your settings and add something there.
remember we installed django-cleanup sometime ago
and remeber wwe created 2 sub apps

well our main application doesnt know that yet. well it knows but it doesnt care about them yet.
because we havent introduced them yet...

which is what we are going to do now.
head over to your settings.py file

and scroll down to installed apps

when u get there u need to add what we just created there

i am only adding movies and apps for now and not django-cleanup because i dont need django clean up just yet.. maybe later in the project i would add it. i just dont want t do too much so soon...

add user and movies to installed apps

'users',
'movies'

screenshot below

after that is done

ProgrammingRe: Django Development Passion Projects November, December by Mrviktor(op): 5:19pm On Nov 15, 2022
to run your django server u would need to run the command
python manage.py runserver

after creating a database object to commit that table to the database u run the command
python manage.py makemigrations
python manage.py migrate

to sync your dp
python manage.py syncdb

to run you django sever on a localnetwork
python manage.py runserver 0.0.0.0:8000

note the port can be any port, since port 8000 is popular . u can use port 9000 or 8011 or 8181
note u have to allow that port from your windows security settings.. i wont go into that for now. but just read up on how to add port rule in windows


these are the main commands u would be working with.. pretty basic stuff
ProgrammingRe: Django Development Passion Projects November, December by Mrviktor(op): 5:13pm On Nov 15, 2022
from the screenshot above u can see the created subapps and the main apps.
the sub app being movies and users.
the main being the movieapp.

thats my way of explaining it.
the difference btw the sub and the main is that if u notice
the main has
an
__init__.py
asgi.py
settings.py
urls.py
wsgi.py

so the just describe what they do briefly
The __init__ method is used to initialize a class.
ASGI.py (Asynchronous Server Gateway Interface) is a spiritual successor to WSGI, intended to provide a standard interface between async-capable Python webapps
Settings.py self explanatory
urls.py handles routing to different pages
wsgi Web Server Gateway Interface when u want to deploy on heroku or cpanel or railway or digitalocean or amazon that is when u really need to touch one or two here

while for the subapps u have
views.py
models.py
admin.py
forms.py


for views.py which is where uw rite most of your logic
views.py A view function, or view for short, is a Python function that takes a web request and returns a web response.
models.py is where u write your database logics
admin.py The admin.py file is used to display your models in the Django admin panel.
django comes with an admin panel same like wordpress but not as advanced looking.
forms.py.yeah d name says it all


now we have all that defined..


straight to it
ProgrammingRe: Django Development Passion Projects November, December by Mrviktor(op): 4:56pm On Nov 15, 2022
so really we need two subprojects to just clean up and make everywhere loook neat.
its like have a house.
a married man with no kids has no need for a 3 bedroom apartment

but a man with 7 kids and 3 grand parents. even 12 rooms isnt enough.

but in this case for now we only have 2 children

CHILD 1 is going to be named USERS. other people call it accounts but i prefer users
CHILD 2 is going to be called MOVIES. which is where i would put all my movie logic

just like children u can name your subapp anything u wish.

to create a subproject we use the command
python manage.py startapp USERS [/b]for the users subapp
[b]python manage.py startapp MOVIES
for the movies subapp

then if u wish to use vs code from your cmd terminal u can just type code .
it should start up visual studio for you and u should see your project structure which we would get into in a bit..


when u create a project the first thing u do so u dont forget is to create a url.py file inside the subapp directory...
which i have just done..screenshot attached. u can leave it blank but always remember to create it before anything.

ProgrammingRe: Django Development Passion Projects November, December by Mrviktor(op): 4:43pm On Nov 15, 2022
at this point venv has been activated. its always best to install all your python packages ( dependency ) i cant spell dependencies so we call den python packages..
so what do we need at this point

we need just three things for now.

to install django ( WHICH IS THE BABA AGBALAGBA) The reason for this thread
the we install requests abi na request anyone sha. cuz we going to be using API'S god forbid say i create all the movies and their details one by one ahhhhh.. hand go just break from copy an paste
and then django clean up... (which is very important because in production we create alot of dummy data that we actually dont need in production. especially images. django clean up makes it that once u delete a profile picture or document or image or whatsoever that saves as a file on your media directory it deletes it off totally,, if u use FLASK framework this does it automatically , but django doesnt)

so u install with pip. pip means preferred installer program.
so we pip install django first.
from your command prompt and make sure u see that (venv) sign., that is very important
what that is done u pip install django-cleanup and pip install requests.

u can chain all your pip installs together but just do it one by one. we arent from russia



next we create a django project
to do this we use the command
django-admin startproject movieapp
django-admin is Django's command-line utility for administrative tasks.

but in simple terms django admin creates a project structure for u.......... its equivalent to npx create-react-app my-app in REACTJS
but it happens faster PUN INTENDED. react can take an hour to create on a potatoe system.. nawah anyways
back to it.
that should take like 2 minutes or less to create.
next u change directory to the movieapp folder created by u or me or us
please not the name of he folder is going to be movieapp because i named it movie app
look at the command django-admin startproject movieapp u can see i named it movieapp, if u following me in doing the project u can name it anything u want..

again from your command prompt u can type CD AND TAB
Change directory to the movie app folder u should see another folder named movie app... also a manage.py (python file)

manage.py is very important and dont ever delete or open it unless of course u know what u doing
Manage.py in Django is a command-line utility that works similar to the django-admin command. The difference is that it points towards the project's settings.py file. This manage.py utility provides various commands that you must have while working with Django

at this point u have made progress

in creating a project..

next we create two subprojects...
and i would explain why

1 2 3 4 5 6 7 8 ... 96 97 98 99 100 101 102 103 104 (of 247 pages)