Answer the question
In order to leave comments, you need to log in
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"
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')),
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question