Skip to content

when bootstrap customizer data is missing it doesn't gracefully handle the error #6

@david-dumke

Description

@david-dumke
  • Package version: django-bootstrap-customizer = "^0.1.3"
  • Django version: 2.2
  • Python version: 3.7.4
  • Operating System: WSL / Ubuntu 18.04
  • Env: Pyenv, poetry, postgres

Description

Trying to use bootstrap customizer in my app. I expected bootstrap customizer to run without errors out of the box. It looks like it needs a fixture and some initial data to work properly.

What I Did

Install the bootstrap customizer app

./manage.py runserver

The error

  File "/home/nautel/.cache/pypoetry/virtualenvs/fosscred-py3.7/lib/python3.7/site-packages/bootstrap_customizer/templatetags/bootstrap_customizer.py", line 11, in bootstrap_theme_css_above_the_fold
    bootstrap_theme = context['request'].bootstrap_theme
AttributeError: 'WSGIRequest' object has no attribute 'bootstrap_theme'

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