No module named urls


#1

Hello
i work with
Python 2.7
Django==1.8
django-crispy-forms==1.7.2
django-registration-redux==2.4
I has a problème for registration include for my url

My url.py
from django.conf import settings
from django.conf.urls import url, include
from django.conf.urls.static import static
from django.contrib import admin

urlpatterns = [
# Examples:
url(r’^$’, ‘prestaserve.views.home’, name=‘home’),
url(r’^contact/$’, ‘prestaserve.views.contact’, name=‘contact’),
url(r’^about/$’, ‘speedlanding.views.about’, name=‘about’),
url(r’^admin/’, include(admin.site.urls)),
url(r’^accounts/’, include(‘registration.backends.simple.urls’)),
]

and my setting

INSTALLED_APPS = (
# django app
’django.contrib.admin’,
‘django.contrib.auth’,
‘django.contrib.contenttypes’,
‘django.contrib.sessions’,
‘django.contrib.sites’,
‘django.contrib.messages’,
‘django.contrib.staticfiles’,
# third party app
’crispy_forms’,
‘registration’,
# my app
’prestaserve’,

CRISPY form Tag SETTINGS

CRISPY_TEMPLATE_PACK = ‘bootstrap3’

Django registration Redux Settings

ACCOUNT_ACTIVATION_DAYS = 7
REGISTRATION_AUTO_LOGIN = True


My error message
ImportError at /

No module named urls

Request Method: GET
Request URL: http://51.254.223.137:8000/
Django Version: 1.8
Exception Type: ImportError
Exception Value:

No module named urls

Exception Location: /home/speedlight/site/local/lib/python2.7/site-packages/registration/auth_urls.py in , line 27
Python Executable: /home/speedlight/site/bin/python2.7
Python Version: 2.7.12
Python Path:

[’/home/speedlight/site/speedlanding’,
’/home/speedlight/site/lib/python2.7’,
’/home/speedlight/site/lib/python2.7/plat-x86_64-linux-gnu’,
’/home/speedlight/site/lib/python2.7/lib-tk’,
’/home/speedlight/site/lib/python2.7/lib-old’,
’/home/speedlight/site/lib/python2.7/lib-dynload’,
’/usr/lib/python2.7’,
’/usr/lib/python2.7/plat-x86_64-linux-gnu’,
’/usr/lib/python2.7/lib-tk’,
’/home/speedlight/site/local/lib/python2.7/site-packages’,
’/home/speedlight/site/lib/python2.7/site-packages’]

Server time: Fri, 6 Jul 2018 15:19:47 +0000

an idea ?

Thank you for your help


#2

Looks like you’re using django-registration-redux with Django 1.8, but https://github.com/macropin/django-registration says:

It requires a functional installation of Django 1.11 or newer, but has no other dependencies.

Maybe try switching to Django 1.11? That should do the trick.