Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,161,610 members, 7,847,554 topics. Date: Saturday, 01 June 2024 at 08:38 PM |
Nairaland Forum / Science/Technology / Webmasters / How To Dynamically Display The List Of States In Nigeria In My Django Website (98 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)
Sirstevehq Review - Another Best Nigeria Web Hosting Out There / Making Legit Money 2024 Via Cryptocurrency / How To Share Data On MTN
(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. 5 |