我试图使用django-djconfig。
我已按照说明操作,并将其添加到我的INSTALLED_APPS
INSTALLED_APPS = (
'django-djconfig',
'grappelli',
#default apps
'django.contrib.admin',
'django.contrib.auth',
...
但是当我跑./manage.py migrate
时,我得到了这个:
Operations to perform:
Synchronize unmigrated apps: datetimewidget, haystack, grappelli, allauth, crispy_forms, webdesign, staticfiles, django_summernote, messages
Apply all migrations: prerequisites, suggestions, comments, announcements, quest_manager, sessions, notifications, courses, auth, sites, contenttypes, account, badges, socialaccount, profile_manager, admin
Synchronizing apps without migrations:
Creating tables...
Running deferred SQL...
Installing custom SQL...
Running migrations:
No migrations to apply.
pip freeze
beautifulsoup4==4.4.1
decorator==4.0.2
defusedxml==0.4.1
Django==1.8.2
django-allauth==0.21.0
django-crispy-forms==1.4.0
django-datetime-widget==0.9.3
django-djconfig==0.5.0
django-grappelli==2.7.1
...
谁能看到我做错了什么?
答案 0 :(得分:3)
它在文档中说'djconfig'而不是'django-djconfig'到INSTALLED_APPS。
答案 1 :(得分:-1)
您先试过./manage.py makemigrations
吗?如果没有任何现有迁移,django将不会创建任何表。