Mrviktor's Posts
Nairaland Forum › Mrviktor's Profile › Mrviktor's Posts
1 2 3 4 5 6 7 8 ... 96 97 98 99 100 101 102 103 104 (of 247 pages)
part one of the video https://www.youtube.com/watch?v=zNcngIwp4m8&list=TLPQMTgxMTIwMjIieHm8EQt0zg&index=1 |
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
|
So no more suiiiiiii No more viva ronaldo |
[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 ![]() |
ChristoBam: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)
|
Maybe na bad form cause am sha |
If he has no plans for Ronaldo he should have said it since pre season.. Instead of saying he's very important to us |
TrebleChamp: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 |
akwesenana: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. |
TrebleChamp:When has messi talked about Ronaldo 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 |
ChristoBam: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 |
Once we play barca. We go see dalot vs dembele nd Raphinia |
Santos07:They should scout... They better not try signing that frinpong. He's shit |
Kvngfrosh:Thanks |
Look at chances created |
Hm
|
Look at crosses |
ChristoBam: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. |
Alejandro Garnacho is a candidate to replace Joaquin Correa in Argentina's World Cup squad [@gastonedul]
|
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 |
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. |
So he's mad because we were benching him. That's d whold point of this interview nd scandal. Nawah |
Sleekcode: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.. |
Lana1:Rashford no sabi head ball. A player that has played with ronaldo.. Rooney. Ibra.. Felani.. Maguire.. Cavani. |
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..
|
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
|
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 |
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 |
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.
|
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)

