Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,154,204 members, 7,822,058 topics. Date: Thursday, 09 May 2024 at 04:57 AM

Castrosteve's Posts

Nairaland Forum / Castrosteve's Profile / Castrosteve's Posts

(1) (2) (of 2 pages)

Health / Re: Have Just Been Diagnosed With Herpes by castrosteve: 4:19pm On Jun 20, 2023
Pls herpes zoster is different from herpes simplex... the former causes chicken pox and the latter is an STD
Health / Re: Have Just Been Diagnosed With Herpes by castrosteve: 4:07pm On Jun 20, 2023
Once upon a time typhoid and malaria had no cure , they were killer diseases.... very soon viral diseases will be conquered
Jobs/Vacancies / Re: Npower: Deployment Have Started, Please Check Your NASIMS Portal by castrosteve: 3:24pm On Aug 31, 2021
ezenwaez:
Where is that guy that was abusing that there is no Physical Verification
He has gone for physical verification

1 Like

Technology Market / Re: All Offerup, Letgo, Craigslist, 5miles, Ebay, Amazon Deals.*READ FIRST PAGE* by castrosteve: 1:21pm On Mar 18, 2021
[quote author=Keeyzoh post=98203682][/quote]
Sorry to derail
But I got a Samsung note 4 for sale everything but the back camera is working good.
Call me on 08140661223
Phones / Re: My Experience Using The Umidigi A7 Pro by castrosteve: 1:14pm On Mar 18, 2021
Richnero:
Do you still need the screen?

Yes I need the screen
Phones / Re: My Experience Using The Umidigi A7 Pro by castrosteve: 1:11pm On Mar 18, 2021
Is the phone screen still available?
I'm looking to get umidigi A7 screen mine is not blank but its not touching something like the calibration and the engineer said the screen is bad.
Contact me on 08140661223 if you have useful information or has screen for sale.
Thanks
Phones / Re: The Official Samsung Galaxy A70 Thread by castrosteve: 11:59am On Jul 10, 2020
Pls I want to buy Samsung c9 pro wth 6gig ram 4000mah.Although d andriod version s 7.1..just think this spec suit my budget....any advice
Phones / Re: UMIDIGI DISCUSSION THREAD by castrosteve: 9:25pm On Jun 29, 2020
Hello guys...more reviews needed for A7 pro...how's the phone so far..for those that have gotten it
Programming / Re: A Thread For Tutorial On Python Programming by castrosteve: 6:52pm On Apr 14, 2020
Paapii3d:
1. Basics and Introduction to CSS


https://www.youtube.com/watch?v=U7Iik_QVlMQ

mr Caleb aka paapi i hail your great work and effort in making the programming language u teach easy to understand.. pls i would like u to continue uploading youtube videos on css and python.. thanks alot bro
Programming / Re: Learn How To Create Websites With Python(Django Web Framework) by castrosteve: 1:34pm On Apr 06, 2020
ColeDrain:


Okay the problem is from your mysite/urls.py file.

Change this line:
path('', include('polls.urls')),
to
path('polls/', include('polls.urls')),

And try again from ur browser.

phew... am all good thankss...

1 Like

Programming / Re: Learn How To Create Websites With Python(Django Web Framework) by castrosteve: 10:04am On Apr 06, 2020
mysite/url.py

Programming / Re: Learn How To Create Websites With Python(Django Web Framework) by castrosteve: 9:58am On Apr 06, 2020
ColeDrain:


Okay screenshot your polls/urls.py file and mysite/urls.py file.

ok

Programming / Re: Learn How To Create Websites With Python(Django Web Framework) by castrosteve: 11:51pm On Apr 05, 2020
ColeDrain:


It should be this instead:
def detail(request, question_id):
return HttpResponse("You're looking at question %s." % question_id)

ok it works but am getting 404 error but the url works with /admin

Programming / Re: Learn How To Create Websites With Python(Django Web Framework) by castrosteve: 9:20am On Apr 05, 2020
ColeDrain:


Check line 8 of your polls/views.py. Hope it's like this:
def detail(request, question_id):

If it is like that, then screenshot your views.py file.

its def function
pass detail

Programming / Re: Learn How To Create Websites With Python(Django Web Framework) by castrosteve: 6:42pm On Apr 04, 2020
ColeDrain:


Help us to help you. Post screenshots of the error.

ok

Programming / Re: Learn How To Create Websites With Python(Django Web Framework) by castrosteve: 11:08am On Apr 04, 2020
ColeDrain:
POST 13

Things we've learned so far: views, urlpatterns, models, how the web works, admin site

Moving back to the views
We said views are functions that take request from the user(browser) and then generates a response
which is sent to the user's browser. For now this is how our views.py looks like except you added any view to it for practice:

from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.

def index(request):
return HttpResponse("Hello World. You are doing well"wink


Our polls website will have the following views:
index view - displays latest questions to users
detail view - displays details about a specific question
results view - displays results for a particular question
vote view - enable user to vote for a specific choice

So basically, once a user comes to our website's home page, he sees latest questions, he can click on a specific
question and vote for a choice and also see the total results.
Update[b] polls/views.py[/b] as follows:

from django.http import HttpResponse

def index(request):
return HttpResponse("Hello, world. You're at the polls index."wink

def detail(request, question_id):
return HttpResponse("You're looking at question %s." % question_id)

def results(request, question_id):
response = "You're looking at the results of question %s."
return HttpResponse(response % question_id)

def vote(request, question_id):
return HttpResponse("You're voting on question %s." % question_id)


please convert the emoji to )

Let me explain some things
So we said views are functions that take request from browser.
but some of the views above take another argument question_id
Okay, let's say the user sends a request to django that he wants question 2, how does django
know the question the user wants to view??
Answer- through question_id(so that's why we have question_id)

So user comes to our homepage sees 4 questions, he clicks on number 2, (request, 2) is sent to
django, to help django know the user wants question 2 and then the detail view returns a response
You're looking at question 2.


Like we normally do, after creating our views we create urlpatterns, so go to polls/urls.py and update as such:
(remove the once you created before, if you did)

from django.urls import path

from . import views

urlpatterns = [
path('', views.index, name='index'),
path('<int:question_id>/', views.detail, name='detail'),
path('<int:question_id>/results/', views.results, name='results'),
path('<int:question_id>/vote/', views.vote, name='vote'),
]


Don't get worried, I will explain. So when a user makes a request he is basically sending a url to django.
You type in nairaland.com/login, you are requesting for nairaland's login page.

So in our polls website, once the user comes to our homepage 127.0.0.1:8000/polls
django will check the mysite/url.py first and if you check your mysite.url/py which is this:

from django.contrib import admin
from django.urls import path, include

urlpatterns = [
path('admin/', admin.site.urls),
path('polls/', include('polls.urls')),
]


Django is looking for a urlpattern that matches 127.0.0.1:8000/polls/
once django sees that line[b] path('polls/', include('polls.urls'))[/b] it sees a match then
it goes to the polls/urls.py and then matches path('', views.index, name='index'). You get??

Okay another example to clear things up. A user wants to see question 4, so he clicks it,
this sends 127.0.0.1:8000/polls/4/ to Django, Django starts looking for a match.
It first goes to mysite/urls.py and matches polls and then goes to polls/urls.py and
matches path('<int:question_id>/', views.detail, name='detail')
the <int:question_id>/ matches 4, then Django sends it to the view which then gives a response.

Save the files, then run the server(py manage.py runsever)
Go to your browser and try the following urls:
127.0.0.1:8000.polls/
127.0.0.1:8000.polls/5/
127.0.0.1:8000.polls/5/results/
127.0.0.1:8000.polls/vote/


Always remember user sends a request, a url is sent to the Django, the url contains info
about what the user wants, Django tries to find a match with the urlpatterns it already has,
once a match is found the request is sent to the appropriate view(function) which returns a response to the user.

Something is not right,,,I keep getting syntax error...I copied and pasteed the codes in views.py and url.py..,I also changed the emoji to close bracket..j still don't y am seeing syntax error
Programming / Re: Learn How To Create Websites With Python(Django Web Framework) by castrosteve: 10:06pm On Apr 01, 2020
pheww finally am doing well... boss Coledrain fire on.... you are doing well sir

1 Like

Programming / Re: Learn How To Create Websites With Python(Django Web Framework) by castrosteve: 1:05pm On Apr 01, 2020
Good job bro .. I don't really know why am stilstill having error in creating app..and it seems easy Ooo that's y it's annoying ... It's telling me "include "is not defined in polls or so
Programming / Re: Learn How To Create Websites With Python(Django Web Framework) by castrosteve: 8:37pm On Mar 30, 2020
Nice one .... Fire on bro

1 Like

Jobs/Vacancies / Re: Kaduna State Government 2019 Recruitment Into Public Service. How To Apply by castrosteve: 5:17pm On Mar 11, 2020
jeffsticky:
Those living within Kd already have information about this recruitment delay. They only chose not to share because of fear of criticism.

Lolz.. This is the best place for legit information ...if you follow those kd residents info you might end up not applying for any kdsg job cos majority of them hate el rufai and don't believe any good thing can come from him base on the rubbish going on with the security of life in the state ..
Jobs/Vacancies / Re: Kaduna State Government 2019 Recruitment Into Public Service. How To Apply by castrosteve: 9:52am On Mar 07, 2020
zeenaman:

We are not family members, and you are this serious about my comment? I don't know how to be rude to people. But please, you can ignore my comment

Lolzzz....this zeenaman sef..
Jobs/Vacancies / Re: Kaduna State Government 2019 Recruitment Into Public Service. How To Apply by castrosteve: 4:28pm On Mar 05, 2020
Uspic:
Lol. Wat part scares you the most? That's it thw job is not guaranteed because you're called for interview or that the process can take as long as NNPC? Take hear bro Moses grin

Lolz ..it's not even that sef
... It's just that some people have so much negativity in their blood that they can even be immune to the HIV virus....pls oo unless otherwise stated by kdsg, lets just be patient aaaah...

2 Likes

Jobs/Vacancies / Re: Kaduna State Government 2019 Recruitment Into Public Service. How To Apply by castrosteve: 3:46pm On Mar 05, 2020
I just dey Kuku observe as some of ona sabi spread fear ....continue spreading the fear..after interview they will spread it...after sppointment letter sef. ..even if salary delay small sef...awon spread fear geng ...now I can imagine what Moses went through with the Israelites ...
Jobs/Vacancies / Re: Kaduna State Government 2019 Recruitment Into Public Service. How To Apply by castrosteve: 6:12am On Feb 29, 2020
The mail said the time and date will be also sent in due time..... quite the assumptions oo... oh people of Little faith
Jobs/Vacancies / Re: Kaduna State Government 2019 Recruitment Into Public Service. How To Apply by castrosteve: 10:31am On Feb 27, 2020
jeffsticky:
There is a rumor ongoing eventhough I personally don't believe it.
I was told the reason why we are yet to be invited for interview is because there is no vacancies at the various MDA's we selected.
However we will be call upon as soon as there is vacancies in our chosen MDA's.
So for now we wait.

Aaah bros is that only what you heard!..me I even heard the whole recruitment process was meant for kano state civil service.. It was the hardwork of yahoo boiz and Fulani herdsmen who hacked it into kdsg portal... Hoping they hack the interview soon so we will be called .. .mtcheeeew
Jobs/Vacancies / Re: Kaduna State Government 2019 Recruitment Into Public Service. How To Apply by castrosteve: 11:09am On Feb 20, 2020
Too me sha it is logical that the 12 panel of judges is comprised of interviewers from the various agencies you selected during application. So in common sense the interviewer whose question you answered best might determine where you will be employed....this logical for even core civil service applicants..though the questions might not be agency base

3 Likes

Jobs/Vacancies / Re: Kaduna State Government 2019 Recruitment Into Public Service. How To Apply by castrosteve: 5:33pm On Feb 19, 2020
muhyideenabdul:
I got an information from a person with little idea about it that, the interview shows you are ready and attempt to work with them. The next stage is appointment letter and there will be an aptitude test for it where they normally assess the effort. Therefore according to the person, the interview is not the assessment just to know how many people are ready for the work.

Hahahaha.. This little idea is going to cause very big confusion on the page now... But guyz enough of this plenty hear says now... You guyz don't know that rumour can even kill some1 b4 the crisis itself...

1 Like

Jobs/Vacancies / Re: Kaduna State Government 2019 Recruitment Into Public Service. How To Apply by castrosteve: 3:09pm On Feb 17, 2020
Henry692:
The thing is dat,one dont even know wats really going on with dis final process....

Wat i cn say is jst try nd do ur best ..then leave d rest 4 God as kdsg right nw is not even predictable at dis moment..

Results of d interview process will be out by 1st or 2nd week of March as confirmed by 1 of d interviewer...lets all pray we wont be subjected to any further weeding again...

If there was , the interviewer would have told you...1st application,, 2nd CBT..3rd screening... 4th interview.. 5th appointment letter followed by medicals....this how it might b possibly

2 Likes

Jobs/Vacancies / Re: Kaduna State Government 2019 Recruitment Into Public Service. How To Apply by castrosteve: 7:29pm On Feb 14, 2020
smartzee01:
Its been a long ride with you guys, NNPC success mail dropped for me. I wish you success in all your endeavors

Damnn ... Congratulations bro.
From your name I know you must be a guru... Pls is it the same nnpc exam we just wrote last year..men those guys screen me out b4 interview it felt like rapture...
Jobs/Vacancies / Re: Kaduna State Government 2019 Recruitment Into Public Service. How To Apply by castrosteve: 1:48pm On Feb 12, 2020
Zeyman:
I just did mine ,prepare urself on current affairs, e.g numbers of local government, Senate, rep, new Nigeria words in dictionary, largest lg ,programs Elrufai set up in Kaduna state, computer knowledge, and ur work experience.... Best of luck to all of us.

God bless you plenty

1 Like

Jobs/Vacancies / Re: Kaduna State Government 2019 Recruitment Into Public Service. How To Apply by castrosteve: 8:19am On Feb 12, 2020
Well I can see that all Assumptions made here are quite convincing... Let me add my own, to me since account nos were demanded, money is going to be paid irrespective of you being invited for interview....its possible this money has been released but you know government things have so many layers due to the Nigeria syndrome...just my two cent Valentine special... Good luck to today's interview candidates
Jobs/Vacancies / Re: Kaduna State Government 2019 Recruitment Into Public Service. How To Apply by castrosteve: 7:47pm On Feb 10, 2020
Amoto94:
I got a mail too, my interview is scheduled for 11th February. To those who couldn't make it to the next stage we are not better than you guys don't feel sad just take as the will of God.

I guess this guy .....

(1) (2) (of 2 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 48
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.