3

When I run my Django Server, I got this error:

    class HStoreDescriptor(models.fields.subclassing.Creator):
AttributeError: 'module' object has no attribute 'subclassing'

I am using, the currently newest, Django 1.10, and django-hstore 1.4.2

2 Answers 2

4

You don't need to use Django_Hstore extentions on 1.10.

Add 'django.contrib.postgres' in your INSTALLED_APPS.

If hstrone not enabled on Postgres , Run sql script: CREATE EXTENSION IF NOT EXISTS hstore

On Model: Add: from django.contrib.postgres.fields import HStoreField

Add Field: data = HStoreField()

For More İnformation :

Sign up to request clarification or add additional context in comments.

Comments

2

This problem can be easily solved by downgrading Django to version 1.9. It seems the version 1.10 is not stable yet.

pip install Django==1.9

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.