M
M
Mike2017-03-01 21:29:04
Django
Mike, 2017-03-01 21:29:04

Why am I getting "ImportError: No module named 'django.conf.urls.defaults'"?

Installed django-inplaceedit, set INSTALLED_APPS to 'inplaceeditform'. I started writing in urls.py:
url(r'^inplaceeditform/', include('inplaceeditform.urls'))
and I get this: ImportError: No module named 'django.conf.urls.defaults
I'm using Django 1.10.5 and Python3 .5
How to do it right?
in settings.py:

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'app',
    'inplaceeditform',
]
ADAPTOR_INPLACEEDIT_EDIT = 'my_app.perms.MyAdaptorEditInline'
INPLACEEDIT_DISABLE_CLICK = False
THUMBNAIL_DEBUG = True
INPLACEEDIT_EVENT = "click"

in urls.py:
from django.conf.urls import url, include
from django.contrib import admin

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'', include('app.urls')),
    url(r'^app', include('app.urls')),
    url(r'^inplaceeditform/', include('inplaceeditform.urls')),
]

What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2017-03-01
@sim3x

The project has not been updated for 2 years, most likely the problem is in this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question