diff --git a/backend/server/worldtravel/management/commands/worldtravel-seed.py b/backend/server/worldtravel/management/commands/worldtravel-seed.py index f7ec9a41..ace50a85 100644 --- a/backend/server/worldtravel/management/commands/worldtravel-seed.py +++ b/backend/server/worldtravel/management/commands/worldtravel-seed.py @@ -98,32 +98,256 @@ def add_arguments(self, parser): def handle(self, *args, **options): force = options['force'] - countries = [ - ('United States', 'us', 'NA'), - ('Canada', 'ca', 'NA'), - ('Mexico', 'mx', 'NA'), - ('Brazil', 'br', 'SA'), + countries = [ + ('Afghanistan', 'af', 'AS'), + ('Åland Islands', 'ax', 'EU'), + ('Albania', 'al', 'EU'), + ('Algeria', 'dz', 'AF'), + ('American Samoa', 'as', 'OC'), + ('Andorra', 'ad', 'EU'), + ('Angola', 'ao', 'AF'), + ('Anguilla', 'ai', 'NA'), + ('Antarctica', 'aq', 'AN'), + ('Antigua and Barbuda', 'ag', 'NA'), ('Argentina', 'ar', 'SA'), - ('United Kingdom', 'gb', 'EU'), - ('Germany', 'de', 'EU'), - ('France', 'fr', 'EU'), - ('Japan', 'jp', 'AS'), + ('Armenia', 'am', 'AS'), + ('Aruba', 'aw', 'NA'), + ('Australia', 'au', 'OC'), + ('Austria', 'at', 'EU'), + ('Azerbaijan', 'az', 'AS'), + ('Bahamas', 'bs', 'NA'), + ('Bahrain', 'bh', 'AS'), + ('Bangladesh', 'bd', 'AS'), + ('Barbados', 'bb', 'NA'), + ('Belarus', 'by', 'EU'), + ('Belgium', 'be', 'EU'), + ('Belize', 'bz', 'NA'), + ('Benin', 'bj', 'AF'), + ('Bermuda', 'bm', 'NA'), + ('Bhutan', 'bt', 'AS'), + ('Bolivia', 'bo', 'SA'), + ('Bonaire, Sint Eustatius and Saba', 'bq', 'NA'), + ('Bosnia and Herzegovina', 'ba', 'EU'), + ('Botswana', 'bw', 'AF'), + ('Bouvet Island', 'bv', 'AN'), + ('Brazil', 'br', 'SA'), + ('British Indian Ocean Territory', 'io', 'AS'), + ('Brunei Darussalam', 'bn', 'AS'), + ('Bulgaria', 'bg', 'EU'), + ('Burkina Faso', 'bf', 'AF'), + ('Burundi', 'bi', 'AF'), + ('Cabo Verde', 'cv', 'AF'), + ('Cambodia', 'kh', 'AS'), + ('Cameroon', 'cm', 'AF'), + ('Canada', 'ca', 'NA'), + ('Cayman Islands', 'ky', 'NA'), + ('Central African Republic', 'cf', 'AF'), + ('Chad', 'td', 'AF'), + ('Chile', 'cl', 'SA'), ('China', 'cn', 'AS'), + ('Christmas Island', 'cx', 'AS'), + ('Cocos (Keeling) Islands', 'cc', 'AS'), + ('Colombia', 'co', 'SA'), + ('Comoros', 'km', 'AF'), + ('Congo', 'cg', 'AF'), + ('Congo, Democratic Republic of the', 'cd', 'AF'), + ('Cook Islands', 'ck', 'OC'), + ('Costa Rica', 'cr', 'NA'), + ('Croatia', 'hr', 'EU'), + ('Cuba', 'cu', 'NA'), + ('Curaçao', 'cw', 'NA'), + ('Cyprus', 'cy', 'EU'), + ('Czechia', 'cz', 'EU'), + ('Côte d\'Ivoire', 'ci', 'AF'), + ('Denmark', 'dk', 'EU'), + ('Djibouti', 'dj', 'AF'), + ('Dominica', 'dm', 'NA'), + ('Dominican Republic', 'do', 'NA'), + ('Ecuador', 'ec', 'SA'), + ('Egypt', 'eg', 'AF'), + ('El Salvador', 'sv', 'NA'), + ('Equatorial Guinea', 'gq', 'AF'), + ('Eritrea', 'er', 'AF'), + ('Estonia', 'ee', 'EU'), + ('Eswatini', 'sz', 'AF'), + ('Ethiopia', 'et', 'AF'), + ('Falkland Islands (Malvinas)', 'fk', 'SA'), + ('Faroe Islands', 'fo', 'EU'), + ('Fiji', 'fj', 'OC'), + ('Finland', 'fi', 'EU'), + ('France', 'fr', 'EU'), + ('French Guiana', 'gf', 'SA'), + ('French Polynesia', 'pf', 'OC'), + ('French Southern Territories', 'tf', 'AN'), + ('Gabon', 'ga', 'AF'), + ('Georgia', 'ge', 'AS'), + ('Gambia', 'gm', 'AF'), + ('Germany', 'de', 'EU'), + ('Ghana', 'gh', 'AF'), + ('Gibraltar', 'gi', 'EU'), + ('Greece', 'gr', 'EU'), + ('Greenland', 'gl', 'NA'), + ('Grenada', 'gd', 'NA'), + ('Guadeloupe', 'gp', 'NA'), + ('Guam', 'gu', 'OC'), + ('Guatemala', 'gt', 'NA'), + ('Guernsey', 'gg', 'EU'), + ('Guinea', 'gn', 'AF'), + ('Guinea-Bissau', 'gw', 'AF'), + ('Guyana', 'gy', 'SA'), + ('Haiti', 'ht', 'NA'), + ('Heard Island and McDonald Islands', 'hm', 'AN'), + ('Holy See', 'va', 'EU'), + ('Honduras', 'hn', 'NA'), + ('Hong Kong', 'hk', 'AS'), + ('Hungary', 'hu', 'EU'), + ('Iceland', 'is', 'EU'), ('India', 'in', 'AS'), - ('Australia', 'au', 'OC'), + ('Indonesia', 'id', 'AS'), + ('Iran (Islamic Republic of)', 'ir', 'AS'), + ('Iraq', 'iq', 'AS'), + ('Ireland', 'ie', 'EU'), + ('Isle of Man', 'im', 'EU'), + ('Israel', 'il', 'AS'), + ('Italy', 'it', 'EU'), + ('Jamaica', 'jm', 'NA'), + ('Japan', 'jp', 'AS'), + ('Jersey', 'je', 'EU'), + ('Jordan', 'jo', 'AS'), + ('Kazakhstan', 'kz', 'AS'), + ('Kenya', 'ke', 'AF'), + ('Kiribati', 'ki', 'OC'), + ('Korea (Democratic People's Republic of)', 'kp', 'AS'), + ('Korea (Republic of)', 'kr', 'AS'), + ('Kuwait', 'kw', 'AS'), + ('Kyrgyzstan', 'kg', 'AS'), + ('Lao People's Democratic Republic', 'la', 'AS'), + ('Latvia', 'lv', 'EU'), + ('Lebanon', 'lb', 'AS'), + ('Lesotho', 'ls', 'AF'), + ('Liberia', 'lr', 'AF'), + ('Libya', 'ly', 'AF'), + ('Liechtenstein', 'li', 'EU'), + ('Lithuania', 'lt', 'EU'), + ('Luxembourg', 'lu', 'EU'), + ('Macao', 'mo', 'AS'), + ('Madagascar', 'mg', 'AF'), + ('Malawi', 'mw', 'AF'), + ('Malaysia', 'my', 'AS'), + ('Maldives', 'mv', 'AS'), + ('Mali', 'ml', 'AF'), + ('Malta', 'mt', 'EU'), + ('Marshall Islands', 'mh', 'OC'), + ('Martinique', 'mq', 'NA'), + ('Mauritania', 'mr', 'AF'), + ('Mauritius', 'mu', 'AF'), + ('Mayotte', 'yt', 'AF'), + ('Mexico', 'mx', 'NA'), + ('Micronesia (Federated States of)', 'fm', 'OC'), + ('Moldova (Republic of)', 'md', 'EU'), + ('Monaco', 'mc', 'EU'), + ('Mongolia', 'mn', 'AS'), + ('Montenegro', 'me', 'EU'), + ('Montserrat', 'ms', 'NA'), + ('Morocco', 'ma', 'AF'), + ('Mozambique', 'mz', 'AF'), + ('Myanmar', 'mm', 'AS'), + ('Namibia', 'na', 'AF'), + ('Nauru', 'nr', 'OC'), + ('Nepal', 'np', 'AS'), + ('Netherlands', 'nl', 'EU'), + ('New Caledonia', 'nc', 'OC'), ('New Zealand', 'nz', 'OC'), + ('Nicaragua', 'ni', 'NA'), + ('Niger', 'ne', 'AF'), + ('Nigeria', 'ng', 'AF'), + ('Niue', 'nu', 'OC'), + ('Norfolk Island', 'nf', 'OC'), + ('North Macedonia', 'mk', 'EU'), + ('Northern Mariana Islands', 'mp', 'OC'), + ('Norway', 'no', 'EU'), + ('Oman', 'om', 'AS'), + ('Pakistan', 'pk', 'AS'), + ('Palau', 'pw', 'OC'), + ('Palestine, State of', 'ps', 'AS'), + ('Panama', 'pa', 'NA'), + ('Papua New Guinea', 'pg', 'OC'), + ('Paraguay', 'py', 'SA'), + ('Peru', 'pe', 'SA'), + ('Philippines', 'ph', 'AS'), + ('Pitcairn', 'pn', 'OC'), + ('Poland', 'pl', 'EU'), + ('Portugal', 'pt', 'EU'), + ('Puerto Rico', 'pr', 'NA'), + ('Qatar', 'qa', 'AS'), + ('Réunion', 're', 'AF'), + ('Romania', 'ro', 'EU'), + ('Russian Federation', 'ru', 'EU'), + ('Rwanda', 'rw', 'AF'), + ('Saint Barthélemy', 'bl', 'NA'), + ('Saint Helena, Ascension and Tristan da Cunha', 'sh', 'AF'), + ('Saint Kitts and Nevis', 'kn', 'NA'), + ('Saint Lucia', 'lc', 'NA'), + ('Saint Martin (French part)', 'mf', 'NA'), + ('Saint Pierre and Miquelon', 'pm', 'NA'), + ('Saint Vincent and the Grenadines', 'vc', 'NA'), + ('Samoa', 'ws', 'OC'), + ('San Marino', 'sm', 'EU'), + ('Sao Tome and Principe', 'st', 'AF'), + ('Saudi Arabia', 'sa', 'AS'), + ('Senegal', 'sn', 'AF'), + ('Serbia', 'rs', 'EU'), + ('Seychelles', 'sc', 'AF'), + ('Sierra Leone', 'sl', 'AF'), + ('Singapore', 'sg', 'AS'), + ('Sint Maarten (Dutch part)', 'sx', 'NA'), + ('Slovakia', 'sk', 'EU'), + ('Slovenia', 'si', 'EU'), + ('Solomon Islands', 'sb', 'OC'), + ('Somalia', 'so', 'AF'), ('South Africa', 'za', 'AF'), - ('Egypt', 'eg', 'AF'), - ('Sweden', 'se', 'EU'), - ('Ireland', 'ie', 'EU'), + ('South Georgia and the South Sandwich Islands', 'gs', 'AN'), + ('South Sudan', 'ss', 'AF'), ('Spain', 'es', 'EU'), + ('Sri Lanka', 'lk', 'AS'), + ('Sudan', 'sd', 'AF'), + ('Suriname', 'sr', 'SA'), + ('Svalbard and Jan Mayen', 'sj', 'EU'), + ('Sweden', 'se', 'EU'), ('Switzerland', 'ch', 'EU'), - ('Italy', 'it', 'EU'), - ('Iceland', 'is', 'EU'), - ('Czech Republic', 'cz', 'EU'), - ('Austria', 'at', 'EU'), - ('Slovakia','sk','EU'), - ('Liechtenstein','li','EU'), + ('Syrian Arab Republic', 'sy', 'AS'), + ('Taiwan, Province of China', 'tw', 'AS'), + ('Tajikistan', 'tj', 'AS'), + ('Tanzania, United Republic of', 'tz', 'AF'), + ('Thailand', 'th', 'AS'), + ('Timor-Leste', 'tl', 'AS'), + ('Togo', 'tg', 'AF'), + ('Tokelau', 'tk', 'OC'), + ('Tonga', 'to', 'OC'), + ('Trinidad and Tobago', 'tt', 'NA'), + ('Tunisia', 'tn', 'AF'), + ('Turkey', 'tr', 'AS'), + ('Turkmenistan', 'tm', 'AS'), + ('Turks and Caicos Islands', 'tc', 'NA'), + ('Tuvalu', 'tv', 'OC'), + ('Uganda', 'ug', 'AF'), + ('Ukraine', 'ua', 'EU'), + ('United Arab Emirates', 'ae', 'AS'), + ('United Kingdom', 'gb', 'EU'), + ('United States of America', 'us', 'NA'), + ('United States Minor Outlying Islands', 'um', 'OC'), + ('Uruguay', 'uy', 'SA'), + ('Uzbekistan', 'uz', 'AS'), + ('Vanuatu', 'vu', 'OC'), + ('Venezuela (Bolivarian Republic of)', 've', 'SA'), + ('Viet Nam', 'vn', 'AS'), + ('British Virgin Islands', 'vg', 'NA'), + ('United States Virgin Islands', 'vi', 'NA'), + ('Western Sahara', 'eh', 'AF'), + ('Wallis and Futuna', 'wf', 'OC'), + ('Yemen', 'ye', 'AS'), + ('Zambia', 'zm', 'AF'), + ('Zimbabwe', 'zw', 'AF'), ] regions = [ @@ -702,4 +926,4 @@ def insert_regions(self, regions): setGeometry(id) else: setGeometry(id) - self.stdout.write(f'{name} already exists in worldtravel regions') \ No newline at end of file + self.stdout.write(f'{name} already exists in worldtravel regions')