Django注册问题

时间:2017-05-12 13:13:36

标签: python django

我正在尝试从github下载注册应用程序,但我遇到了一些问题: - git clone https://github.com/macropin/django-registration.git - python install setup.py - 我将注册文件夹复制到我的项目文件夹 比:

Url.py

from django.conf.urls import *

from django.contrib import admin

from registration.views import*


urlpatterns = ['',
    url (r'^accounts/', include('registration.backends.default.urls')),
]

Setting.py:

INSTALLED_APPS = 
(

'django.contrib.admin',

'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# additional external apps
'registration',
'social.apps.django_app.default',

)

SITE_ID=1

ACCOUNT_ACTIVATION_DAYS = 7

REGISTRATION_AUTO_LOGIN = True

当我键入python manage.py sqlall时 **结果是这个错误:

manage.py sqlall:错误:输入至少一个应用程序标签。

请帮忙吗?

0 个答案:

没有答案