Changes between Initial Version and Version 1 of Ticket #31738
- Timestamp:
- Jun 23, 2020, 11:10:56 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31738
- Property Component Uncategorized → Core (Management commands)
- Property Easy pickings unset
- Property Resolution → invalid
- Property Status new → closed
-
Ticket #31738 – Description
initial v1 3 3 4 4 I changed this code to: 5 {{{ 5 6 286 print(fixture_dirs) 6 7 287 print(len(fixture_dirs)) … … 8 9 289 if len(fixture_dirs) != len(set(fixture_dirs)): 9 10 290 raise ImproperlyConfigured("settings.FIXTURE_DIRS contains duplicates.") 10 11 and set my FIXTURE_DIRS like so: 12 FIXTURE_DIRS=('piece/core/fixtures','piece/core/fixtures2') 11 }}} 12 and set my FIXTURE_DIRS like so: `FIXTURE_DIRS=('piece/core/fixtures','piece/core/fixtures2')` 13 13 14 14 when I run loaddata I see: 15 {{{ 15 16 ('piece/core/fixtures', 'piece/core/fixtures2') 16 17 2 17 18 2 18 19 Installed 6 object(s) from 2 fixture(s) 19 20 so far so good. Now set it like so: 21 FIXTURE_DIRS=('piece/core/fixtures'') 20 }}} 21 so far so good. Now set it like so: `FIXTURE_DIRS=('piece/core/fixtures'')` 22 22 23 23 I run it and get: 24 24 {{{{ 25 25 piece/core/fixtures 26 26 19 … … 48 48 raise ImproperlyConfigured("settings.FIXTURE_DIRS contains duplicates.") 49 49 django.core.exceptions.ImproperlyConfigured: settings.FIXTURE_DIRS contains duplicates. 50 50 }}}}