question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working with Django 4.1

See original GitHub issue

Django has removed de installed property from the Model Options object (_meta). And will produce the following error when using Django Activity Stream

AttributeError: 'Options' object has no attribute 'installed' this comes from actstream/registry.py line 60 (version 1.4.1).

See this commit from Django https://github.com/django/django/commit/8e3b1cf098018b4632de63c359ef6d761e92ec04

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
wilson1999112commented, Oct 28, 2022

For those who also face this before they make django 4.1 release and still want to use django 4.1, maybe this could help:

from django.apps import AppConfig

def is_installed(model_class):
    return model_class._meta.app_config is not None

class MyAppConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'myapp'
    def ready(self):
        from actstream import registry
        registry.is_installed = is_installed
        registry.register(self.get_model('mymodel'))
0reactions
justquickcommented, Sep 16, 2022

i just pushed the change to main branch. going to make a django 4.1 release

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting — Django 4.1.4 documentation
Troubleshooting ¶. This page contains some advice about errors and problems commonly encountered during the development of Django applications.
Read more >
Django 4.1 release notes
Django 4.1 release notes¶. August 3, 2022. Welcome to Django 4.1! These release notes cover the new features, as well as some backwards ......
Read more >
django 4.1 polls tutorial, all done Admin working fine but index ...
No url at http://localhost:8000/ address is expected behaviour, where you want to go is http://localhost:8000/polls/ .
Read more >
PyCharm - Step 4. Create and Run your first Django project
How to create and run a simple Django application (creating project; running Django server; configuring database; creating models, templates, views; ...
Read more >
Offline PDF and ePub doc links for Django 4.1 do not work
The links to download the offline copies of Django 4.1 documentation for. PDF and ePub are not working. The HTML ZIP works with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found