This was also reported here:
https://github.com/django-wiki/django-wiki/issues/886
I don’t know what caused it, but it seems likely to be related to perhaps running django-wiki with an incompatible version of Django.
In the above issue,
it was solved by using a prerelease like pip install wiki --pre
On 08/01/2018 02:11 PM, ivan wrote:
--Hi,
I am having an issue to use the django-wiki app. I am fallowing the official documantation and i get the error from bellow when i try to start the test server.
To setup the environment i am fallowing this steps and i want ask if you have any suggestion.
- create environment:
cd /opt/wikipages
virtualenv .
source bin/activate
- install django-wiki
pip install wiki
- start project
django-admin startproject netwiki
-under project edited the settings.py and urls.py acording to http://django-wiki.readthedocs.io/en/master/installation.html
-run app
python manage.py runserver
(wikipages) user01@box:/opt/wikipages/netwiki$ python manage.py runserver
Performing system checks...
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x7f73887e2488>
Traceback (most recent call last):
File "/opt/wikipages/lib/python3.5/site-packages/django/urls/resolvers.py", line 407, in url_patterns
iter(patterns)
TypeError: 'module' object is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/wikipages/lib/python3.5/site-packages/django/utils/autoreload.py", line 228, in wrapper
fn(*args, **kwargs)
File "/opt/wikipages/lib/python3.5/site-packages/django/core/management/commands/runserver.py", line 124, in inner_run
self.check(display_num_errors=True)
File "/opt/wikipages/lib/python3.5/site-packages/django/core/management/base.py", line 359, in check
include_deployment_checks=include_deployment_checks,
File "/opt/wikipages/lib/python3.5/site-packages/django/core/management/base.py", line 346, in _run_checks
return checks.run_checks(**kwargs)
File "/opt/wikipages/lib/python3.5/site-packages/django/core/checks/registry.py", line 81, in run_checks
new_errors = check(app_configs=app_configs)
File "/opt/wikipages/lib/python3.5/site-packages/django/core/checks/urls.py", line 16, in check_url_config
return check_resolver(resolver)
File "/opt/wikipages/lib/python3.5/site-packages/django/core/checks/urls.py", line 26, in check_resolver
return check_method()
File "/opt/wikipages/lib/python3.5/site-packages/django/urls/resolvers.py", line 255, in check
warnings.extend(check_resolver(pattern))
File "/opt/wikipages/lib/python3.5/site-packages/django/core/checks/urls.py", line 26, in check_resolver
return check_method()
File "/opt/wikipages/lib/python3.5/site-packages/django/urls/resolvers.py", line 254, in check
for pattern in self.url_patterns:
File "/opt/wikipages/lib/python3.5/site-packages/django/utils/functional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/opt/wikipages/lib/python3.5/site-packages/django/urls/resolvers.py", line 414, in url_patterns
raise ImproperlyConfigured(msg.format(name=self.urlconf_name))
django.core.exceptions.ImproperlyConfigured: The included URLconf '<module 'wiki.urls' from '/opt/wikipages/lib/python3.5/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.
Kind Regards,Ivan
You received this message because you are subscribed to the Google Groups "django-wiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-wiki...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Ivan,
I can see that you
have 0.3.1 installed, for a quick work-aound you should try to
upgrade explicitly to the latest version: pip install wiki --pre --upgrade
I am not sure what causes this, as I said in the Github issue, I couldn’t reproduce it.
Thanks,
Benjamin
On 08/01/2018 02:30 PM, ivan mate wrote:
Hi Benjamin, I found the previous email and i get the same error, please see bellow the output of the pip install, in case it helps. (wikipages) user01@box:/opt/wikipages/netwiki$ pip install wiki --pre Requirement already satisfied: wiki in /opt/wikipages/lib/python3.5/site-packages (0.3.1) Requirement already satisfied: django-mptt<0.9,>=0.8.6 in /opt/wikipages/lib/python3.5/site-packages (from wiki) (0.8.7) Requirement already satisfied: bleach<2,>=1.5 in /opt/wikipages/lib/python3.5/site-packages (from wiki) (1.5.0) Requirement already satisfied: Pillow in /opt/wikipages/lib/python3.5/site-packages (from wiki) (5.2.0) Requirement already satisfied: sorl-thumbnail<13,>=12 in /opt/wikipages/lib/python3.5/site-packages (from wiki) (12.4.1) Requirement already satisfied: django-nyt<1.1,>=1.0 in /opt/wikipages/lib/python3.5/site-packages (from wiki) (1.0) Requirement already satisfied: Markdown<2.7,>=2.6 in /opt/wikipages/lib/python3.5/site-packages (from wiki) (2.6.11) Requirement already satisfied: Django<2.0,>=1.8 in /opt/wikipages/lib/python3.5/site-packages (from wiki) (1.11.14) Requirement already satisfied: django-sekizai>=0.10 in /opt/wikipages/lib/python3.5/site-packages (from wiki) (0.10.0) Requirement already satisfied: six in /opt/wikipages/lib/python3.5/site-packages (from wiki) (1.11.0) Requirement already satisfied: html5lib!=0.9999,!=0.99999,<0.99999999,>=0.999 in /opt/wikipages/lib/python3.5/site-packages (from bleach<2,>=1.5->wiki) (0.9999999) Requirement already satisfied: pytz in /opt/wikipages/lib/python3.5/site-packages (from Django<2.0,>=1.8->wiki) (2018.5) Requirement already satisfied: django-classy-tags>=0.3.1 in /opt/wikipages/lib/python3.5/site-packages (from django-sekizai>=0.10->wiki) (0.8.0) (wikipages) user01@box:/opt/wikipages/netwiki$ Thanks, Kind regards, Ivan On Wed, Aug 1, 2018 at 2:24 PM, Benjamin Bach <benja...@gmail.com> wrote: