2016-06-30 69 views
0

我已經安裝django-datatable,我想將它添加到INSTALLED_APPS列表。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

查看例/ 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是正確的。

+0

我做到了。謝謝! – XhensB

相關問題