Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,156,173 members, 7,829,191 topics. Date: Wednesday, 15 May 2024 at 09:15 PM |
Nairaland Forum / Science/Technology / Webmasters / How To Dynamically Display The List Of States In Nigeria In My Django Website (86 Views)
Where To Host My Django Application / Top Google Searches In Nigeria In 2020, Rahama Sadau, Laycon, Hushpuppi / Deploying A Django Website (2) (3) (4)
(1) (Reply)
How To Dynamically Display The List Of States In Nigeria In My Django Website by downbad(m): 8:36am On Feb 12 |
I am building an Ecommerce website with Django and I want to add a feature where the user can select their delivery address from a select dropdown menu. I would like to save the User's choice to the database. The problem is that i do not want to hardcode the names of all Nigerian states, is there a way to do this dynamically? I tried using Django-Countries but it seems like the package is just for countries and not necessarily their states. I read I would need an API? Edit: I could just create an API myself using Django Rest Framework to serve my needs, right? |
(1) (Reply)
Celebrities:up Coming Nigeria Celeb / How To Get Facebook Monetized Page? / Instagram Account Is Up For Sale ( 9yrs Old )
(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. 6 |