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')),
]
Than: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
When I type python manage.py sqlall **the result is this error :
manage.py sqlall: error: Enter at least one application label.I guess that my project can't read the application registration and when i write : python manage.py runserverthe error is The current URL, accounts/, didn't match any of these.
Please any help ?
Hi,
not what you ask, but it isn't a good idea to have a copy of django-registration (or any third-party package) in your project directory; instead, just "pip install django-registration-redux".
Regards,
A.
Antonis Christofides http://djangodeployment.com