Django-datatable不会被添加到INSTALLED_APPS

时间:2016-06-30 16:26:07

标签: django datatable

我已安装django-datatable,我想将其添加到INSTALLED_APPS列表。

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'rest_framework',
    'django.contrib.admin',
    'table',
)

table是否正确?如果没有,我应该输入什么?

1 个答案:

答案 0 :(得分:1)

查看库中的example / settings.py:

INSTALLED_APPS = (
    # ...
    'table',
    # Uncomment the next line to enable the admin:
    # 'django.contrib.admin',
    # Uncomment the next line to enable admin documentation:
    # 'django.contrib.admindocs',
)

是的,只需添加table即可。