Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,161,449 members, 7,846,872 topics. Date: Saturday, 01 June 2024 at 05:09 AM |
Nairaland Forum / Science/Technology / Webmasters / How To Dynamically Display The List Of States In Nigeria In My Django Website (94 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)
Are You Good In Rating And Criticizing? Rate Or Criticize This Website Blog! / Affordable Link Building Packages: Elevate Your SEO Game Without Breaking / I Need A Google Playstore Console Account
(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. 10 |