()
| 57 | |
| 58 | # Load countries |
| 59 | def load_countries(): |
| 60 | try: |
| 61 | import pycountry |
| 62 | names = [c.name for c in pycountry.countries] |
| 63 | return sorted(set(names)) |
| 64 | except Exception: |
| 65 | return sorted([ |
| 66 | 'Greece', 'United States', 'United Kingdom', 'Germany', 'France', 'Spain', |
| 67 | 'Italy', 'India', 'China', 'Japan', 'Australia', 'Canada', 'Brazil', 'Russia', |
| 68 | 'South Africa', 'Egypt', 'Turkey', 'Mexico', 'Netherlands', 'Sweden' |
| 69 | ]) |
| 70 | |
| 71 | TIMEZONES = load_timezones() |
| 72 | COUNTRIES = load_countries() |