hi all,
would like to seek for everyone's help.
when I connect to
127.0.0.1:8000, I got the No module named 'blog' response.
Here's the message on browser.
**************
ImportError at /
No module named 'blog'
| Request Method: | GET |
|---|
| Request URL: | http://127.0.0.1:8000/ |
|---|
| Django Version: | 1.8 |
|---|
| Exception Type: | ImportError |
|---|
| Exception Value: | No module named 'blog' |
|---|
| Exception Location: | /usr/lib/python3.4/importlib/__init__.py in import_module, line 109 |
|---|
| Python Executable: | /home/maggie/djangoanywhere/venv/bin/python |
|---|
| Python Version: | 3.4.0 |
|---|
| Python Path: | ['/home/maggie/djangoanywhere',
'/usr/lib/python3.4',
'/usr/lib/python3.4/plat-x86_64-linux-gnu',
'/usr/lib/python3.4/lib-dynload',
'/home/maggie/djangoanywhere/venv/lib/python3.4/site-packages'] |
|---|
| Server time: | Mon, 10 Aug 2015 00:47:53 +0800 |
|---|
**************
This issue occurred when I add url(r'', include('blog.urls')), into magsite/url.py
**************
url.py
**************
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'', include('blog.urls')),
]
**************
Any idea about the root cause? :(
and any response will be appreciate.