Skip to content

Problems on runserver and loading initial data #2

Description

@fr33co

Hello. Sorry for my English/Google Translate XD

During installation in a virtual environment, the following errors occur when I run:

python manage.py runserver

participates/cparte/post_manager.py ", line 35, in
settings ['limit_wrong_inputs'] = config.getint ('app', 'limit_wrong_input')
File "/usr/lib/python2.7/ConfigParser.py", line 359, in getint
self._get return (section, int option)
File "/usr/lib/python2.7/ConfigParser.py", line 356, in _get
return conv (self.get (section, option))
File "/usr/lib/python2.7/ConfigParser.py", line 607, in get
raise NoSectionError (section)
ConfigParser.NoSectionError: No section: 'app'

I can solve this commenting the specific lines of post_manager.py:

settings ['limit_wrong_inputs'] = config.getint ('app', 'limit_wrong_input')
settings ['limit_wrong_requests'] = config.getint ('app', 'limit_wrong_request')
settings ['datetime_format'] = config.get ('datetime', 'format')
url_shortener_enabled = config.getboolean ('url_shortener' 'enabled')

But when i try load the data with:

python manage.py loaddata config_data.json

Generates another error:

participates /cparte/fixtures/config_data.json ': Invalid model identifier' cparte.setting '

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions