Changes between Initial Version and Version 1 of Ticket #31738


Ignore:
Timestamp:
Jun 23, 2020, 11:10:56 PM (4 years ago)
Author:
Mariusz Felisiak
Comment:

FIXTURE_DIRS=('piece/core/fixtures') is not a list or tuple it's a string that contains duplicates e.g. 'e'.

Closing per TicketClosingReasons/UseSupportChannels.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31738

    • Property Component UncategorizedCore (Management commands)
    • Property Easy pickings unset
    • Property Resolutioninvalid
    • Property Status newclosed
  • Ticket #31738 – Description

    initial v1  
    33
    44I changed this code to:
     5{{{
    56286         print(fixture_dirs)
    67287         print(len(fixture_dirs))
     
    89289         if len(fixture_dirs) != len(set(fixture_dirs)):
    910290             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}}}
     12and set my FIXTURE_DIRS like so: `FIXTURE_DIRS=('piece/core/fixtures','piece/core/fixtures2')`
    1313
    1414when I run loaddata I see:
     15{{{
    1516('piece/core/fixtures', 'piece/core/fixtures2')
    16172
    17182
    1819Installed 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}}}
     21so far so good.  Now set it like so: `FIXTURE_DIRS=('piece/core/fixtures'')`
    2222
    2323I run it and get:
    24 
     24{{{{
    2525piece/core/fixtures
    262619
     
    4848    raise ImproperlyConfigured("settings.FIXTURE_DIRS contains duplicates.")
    4949django.core.exceptions.ImproperlyConfigured: settings.FIXTURE_DIRS contains duplicates.
    50 
     50}}}}
Back to Top