hi all,
-- would like to seek for everyone's help.
I am following the django girls instruction => http://tutorial.djangogirls.org/en/django_urls/index.html#your-first-django-url, but encounter the problem.
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.
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0c3ba90d-97d3-448c-8656-0b2ad6becca7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment