Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont import contenttype to avoid import issues when contenttypes is not in installed apps #36

Closed
miki725 opened this issue Jun 15, 2017 · 0 comments · Fixed by #37
Closed
Labels

Comments

@miki725
Copy link
Owner

miki725 commented Jun 15, 2017

that should fix:

Traceback (most recent call last):                                  
  File "/home/serkan/.local/share/virtualenvs/slides-2sl0-4FG/src/sliderepl/sliderepl/core.py", line 292, in run                        
    exec_(co, environ)            
  File "<input>", line 1, in <module>                               
  File "/home/serkan/.local/share/virtualenvs/slides-2sl0-4FG/lib/python3.6/site-packages/url_filter/filtersets/__init__.py", line 5, in <module>
    from .django import *  # noqa 
  File "/home/serkan/.local/share/virtualenvs/slides-2sl0-4FG/lib/python3.6/site-packages/url_filter/filtersets/django.py", line 6, in <module>
    from django.contrib.contenttypes.fields import GenericForeignKey                                                                    
  File "/home/serkan/.local/share/virtualenvs/slides-2sl0-4FG/lib/python3.6/site-packages/django/contrib/contenttypes/fields.py", line 5, in <module>
    from django.contrib.contenttypes.models import ContentType      
  File "/home/serkan/.local/share/virtualenvs/slides-2sl0-4FG/lib/python3.6/site-packages/django/contrib/contenttypes/models.py", line 139, in <module>
    class ContentType(models.Model):                                
  File "/home/serkan/.local/share/virtualenvs/slides-2sl0-4FG/lib/python3.6/site-packages/django/db/models/base.py", line 118, in __new__
    "INSTALLED_APPS." % (module, name)                              
RuntimeError: Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant