Changeset 9637 for src/django_gheat/gheat/management
- Timestamp:
- Aug 30, 2011, 8:10:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/gheat/management/commands/import_datafile.py
r9633 r9637 10 10 # 11 11 from _mysql_exceptions import OperationalError 12 from django.core.files import File 12 13 from django.core.management.base import BaseCommand,CommandError 13 14 from django.db import connection, transaction … … 267 268 } 268 269 logger.info('Meetrondje: %s', mr) 270 meetbestand = MeetBestand(meetrondje=mr,is_imported=True) 271 meetbestand.bestand.save(os.path.basename(filename),File(open(filename))) 272 meetbestand.save() 273 269 274 fh = open_file(filename) 270 275 if 'ns1' in filename:
Note:
See TracChangeset
for help on using the changeset viewer.