First time installing - don't know what I'm doing wrong

80 views
Skip to first unread message

routete...@gmail.com

unread,
Oct 17, 2018, 10:30:16 AM10/17/18
to django-wiki
Hey everyone,

I'm fairly new to django and am trying to get django-wiki going, but I can't seem to make it very far into the installation guide: https://django-wiki.readthedocs.io/en/master/installation.html

I've gotten to the "Include urlpatterns" section, have put the urlpatterns into my urls.py file, but when I try to run manage.py migrate or manage.py runserver I get: NameError: name 'include' is not defined

I can search this message and find I seem to be missing this from urls.py: from django.conf.urls import include

So I added that line out of curiosity, but then I get this:

django.core.exceptions.ImproperlyConfigured: The included URLconf '<module 'wiki.urls' from '/usr/local/lib/python3.6/site-packages/wiki/urls.py'>' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import.

I've tried this quite a few times in the past week, deleting the project and starting over again. I have carefully read that Installation guide page over again multiple times to see what I am doing wrong, but just can't make sense of these issues.

What am I missing? Any help is appreciated! Thanks!
Reply all
Reply to author
Forward
0 new messages