Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,840 members, 7,820,928 topics. Date: Wednesday, 08 May 2024 at 03:37 AM

Django Rest Api - Dropdown Of Countries And States In The World - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Django Rest Api - Dropdown Of Countries And States In The World (1418 Views)

A Nairalander Creates A Music App Using React And Django REST / React Native Picker Spinner Dropdown Menu List Example - Android / Create A Dropdown Menu Using Reactjs (2) (3) (4)

(1) (Reply) (Go Down)

Django Rest Api - Dropdown Of Countries And States In The World by akinademayowa(m): 6:59pm On Apr 22, 2021
Hi guys!!!
I just finished a 3-in-1 website project, a dependent/dropdown list of all countries of the world and their respective states/provinces/subdivisions, and all states in Nigeria with the dropdown of their respective local government areas. Then i made the data available to be accessible to others developers using django rest framework.
Do well to check the demo on heroku:
https://countries-states-dropdown-api.herokuapp.com/

The code is available on github..
https://github.com/MayowaFunmi/countries-states-dropdown-api

Let me know your comments and suggestions. Thank you.
Re: Django Rest Api - Dropdown Of Countries And States In The World by bularuz(m): 10:53am On Apr 23, 2021
Not bad though you could improve on the front end design
Re: Django Rest Api - Dropdown Of Countries And States In The World by Xinjin: 9:02pm On Apr 24, 2021
Nice you're working with the powerful Django rest framework

Why did you put the countries/state list in the navigation, it not visible on mobile(why not on the front page)

Why no much styling

What's the core aim of this project? I'd like to contribute to it

Nice project by the way!

1 Like

Re: Django Rest Api - Dropdown Of Countries And States In The World by Nobody: 12:46pm On Apr 25, 2021
There seems to be a bug.
If you choose a different country and click to get the list of her states, the states of the previously searched country don’t get erased.
The new states just line up at the end of the old list.
Re: Django Rest Api - Dropdown Of Countries And States In The World by akinademayowa(m): 5:54pm On Apr 26, 2021
bularuz:
Not bad though you could improve on the front end design


Yes, I intentionally didn't add any front end design, except the home page alone. If there's need for it I can always do that some other time. Thanks for your contribution
Re: Django Rest Api - Dropdown Of Countries And States In The World by akinademayowa(m): 6:05pm On Apr 26, 2021
Xinjin:
Nice you're working with the powerful Django rest framework

Why did you put the countries/state list in the navigation, it not visible on mobile(why not on the front page)

Why no much styling

What's the core aim of this project? I'd like to contribute to it

Nice project by the way!


Thanks for your contribution sir.
I'll check again if the country state list is indeed not on mobile. But really the last time I checked, it was responsive on both mobile and PC.

I only restricted the styling to the home page alone. It was deliberate. I was working on another project where I needed a drop down list of countries and states...I searched online to get a possible way of creating it, or even use API to get the data, but unfortunately I couldn't get anyone that was helpful. The ones I got, I had to either pay some amount or not even have access. So I decided to create on my and also make the data available via api.
That is the reason for the project. It was just a project to solve a particular problem for me. Later on I could add more features to it.
Re: Django Rest Api - Dropdown Of Countries And States In The World by akinademayowa(m): 6:07pm On Apr 26, 2021
Rgade:
There seems to be a bug.
If you choose a different country and click to get the list of her states, the states of the previously searched country don’t get erased.
The new states just line up at the end of the old list.



Yes, that's correct. I'll find a way around that soon, and you can help with ideas to debug. Meanwhile, try to refresh the page after each search before you search for another country and it'll work fine
Re: Django Rest Api - Dropdown Of Countries And States In The World by benpaul320: 3:31pm On Jan 26, 2022
https://github.com/Benpaul320/nigeria-state-city-api

Hi, you can use this API, you get the states and all cities in that state. the API is awesome that's what i use.

1 Like

Re: Django Rest Api - Dropdown Of Countries And States In The World by bet9ja(m): 8:29pm On Jan 26, 2022
akinademayowa:
Hi guys!!!
I just finished a 3-in-1 website project, a dependent/dropdown list of all countries of the world and their respective states/provinces/subdivisions, and all states in Nigeria with the dropdown of their respective local government areas. Then i made the data available to be accessible to others developers using django rest framework.
Do well to check the demo on heroku:
https://countries-states-dropdown-api.herokuapp.com/

The code is available on github..
https://github.com/MayowaFunmi/countries-states-dropdown-api

Let me know your comments and suggestions. Thank you.

Spend more time on unit testing. You project is full of bugs.

1 Like 1 Share

(1) (Reply)

Whatsapp Group For Android Developers / I Asked Chatgpt To Write A Poem About Nairaland. Here's The Output / .

(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. 20
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.