bsassoli / milan_culture_map

An interactive website mapping cultural venues in Milan, Italy.
https://milan-culture-map.vercel.app
MIT License
0 stars 1 forks source link

Importer is perfect candidate to refactor to custom management command #13

Open thmsrmbld opened 3 years ago

thmsrmbld commented 3 years ago

Your importer, from the shell: https://github.com/bsassoli/milan_culture_map/blob/main/venues/importer.py

Custom Django management commands are excellent for this:

https://docs.djangoproject.com/en/3.1/howto/custom-management-commands/

(This will give you access to better error handling and other nice goodies)