Django_"No module named urls" error for /admin/
来源:互联网 发布:刷微信二维码关注软件 编辑:程序博客网 时间:2024/05/15 23:47
把urls.py改为以下即可
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^djproject/', include('djproject.foo.urls')),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
)
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^djproject/', include('djproject.foo.urls')),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
)
- Django_"No module named urls" error for /admin/
- No module named urls
- No module named urls .
- Exception Value: No module named urls
- django报错:No module named urls
- Django<v_11.1>报错:ImportError: No module named urls
- 运行django-admin.py ImportError: No module named django.core
- Django Error: No module named bookmarks
- python django Error: No module named bookmarks
- Import Error: No module named yaml
- py2exe error: "ImportError: No module named httplib"
- error :No module named google.protobuf.internal
- Python Import Error: No module named cv2
- 【Error】ImportError No module named Leap
- import error:No module named 'ConfigParser'
- Django Error: No module named XXX
- import Error: No module named mock
- No module named win32api-for python3
- Ubuntu + Android:让手机成为中心设备
- Ubuntu将在明年推出平板及手机系统
- 生成激活码
- Java中的内隐类之静态内部类
- 一位华为朋友的来信
- Django_"No module named urls" error for /admin/
- 搞颗通用CPU就那么难吗?
- <s:property>标签从后台读取Date类型年份为两位在jsp页面显示的解决方法
- Java的内隐类之成员内部类
- 开源 免费 java CMS - FreeCMS-标签 linkClass
- 反盗版的胜利:Hackulous关闭
- 模型的评估
- 开源 免费 java CMS - FreeCMS-标签 link
- qt快捷键