- Timestamp:
- May 19, 2012, 7:45:59 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/gheat/management/commands/import_datafile.py
r10814 r10925 22 22 from gheat.dataimport import import_file 23 23 24 logging.basicConfig(level=logging.INFO, format='# %(levelname)s: %(m sg)s')24 logging.basicConfig(level=logging.INFO, format='# %(levelname)s: %(message)s') 25 25 logger = logging.getLogger() 26 26 … … 136 136 # Check if all files are valid 137 137 for filename in args: 138 logger.info('Meetrondje: %s', meetrondje) 138 logger.info("Meetrondje: %s", meetrondje) 139 logger.info("Bestand: %s", filename) 139 140 meetbestand = MeetBestand(meetrondje=meetrondje,is_imported=True) 140 141 meetbestand.bestand.save(os.path.basename(filename),File(open(filename)))
Note:
See TracChangeset
for help on using the changeset viewer.