django registration issues

23 views
Skip to first unread message

farah_...@hotmail.com

unread,
May 12, 2017, 10:12:04 AM5/12/17
to Django users
I am trying to download registration application from github but i have some problems:
 - python install setup.py 
- i copied the registration folder to my project folder Than :

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 runserver
the error is The current URL, accounts/, didn't match any of these.

Please any help ?

Antonis Christofides

unread,
May 12, 2017, 10:30:13 AM5/12/17
to django...@googlegroups.com

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
Reply all
Reply to author
Forward
0 new messages