Using Subdomains in Version 2.1.7

61 views
Skip to first unread message

Abednego Ng'ang'a

unread,
Aug 29, 2018, 9:56:09 AM8/29/18
to Django users
I've followed the procedure of installing subdomains according to https://django-subdomains.readthedocs.io/en/latest/ but when I try
python3 manage.py runserver

I get the error
from django.core.urlresolvers import reverse as simple_reverse
ModuleNotFoundError: No module named 'django.core.urlresolvers'

What would be the problem?

django-admin version => 2.1.7
OS platform => Kali Linux

Tim Graham

unread,
Aug 29, 2018, 10:37:34 AM8/29/18
to Django users
Starting in Django 2.0, "The django.core.urlresolvers module is removed in favor of its new location, django.urls."

Use from django.urls import reverse as simple_reverse

On Wednesday, August 29, 2018 at 9:56:09 AM UTC-4, Abednego Ng'ang'a wrote:
I've followed the procedure of installing subdomains according to https://django-subdomains.readthedocs.io/en/latest/ but when I try
python3 manage.py runserver

I get the error
ModuleNotFoundError: No module named 'django.core.urlresolvers'

Abednego Ng'ang'a

unread,
Aug 29, 2018, 1:00:50 PM8/29/18
to django...@googlegroups.com
In what file exactly I'm I supposed to place that import?


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3ddbbc84-23ce-4502-923a-c15613376415%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages