Python中文
首页
教程
问答
标签
搜索
登录
注册
Django-错误:没有名为grappelli的模块
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我用<a href="http://django-grappelli.readthedocs.org/en/latest/quickstart.html" rel="nofollow">installation guide</a>表示Grappelli:</p> <p>已安装django grappelli</p> <pre><code>$ pip install django-grappelli </code></pre> <p>已修改设置。py</p> <pre><code>INSTALLED_APPS = ( 'grappelli', 'django.contrib.admin', ) </code></pre> <p>my<strong>url.py</strong></p> <pre><code>urlpatterns = patterns('', (r'^grappelli/', include('grappelli.urls')), ) </code></pre> <p>django告诉我:</p> <blockquote> <p>Error: No module named grappelli</p> </blockquote> <p>我忘了什么?</p> <p><strong>编辑</strong></p> <pre><code>$ pip install django-grappelli </code></pre> <blockquote> <p>Requirement already satisfied: django-grappelli in /usr/local/lib/python2.6/dist-packages<br/> Installing collected packages: django-grappelli<br/> Successfully installed django-grappelli</p> </blockquote> <pre><code>$ pip freeze </code></pre> <blockquote> <p>...<br/> django-grappelli==2.3.5<br/> ... </p> </blockquote>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>我也有同样的问题。</p> <p>文档中没有提到需要将以下内容添加到url.py:</p> <pre><code>import grappelli </code></pre>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何将python输出重定向到python控制台和Windows中的文本文件
9 回答
如何将Python运行时嵌入运行在Windows上的R包中
7 回答
如何将python进程作为另一个Windows us运行
5 回答
如何将Python进程的输出用Python管道传输?
3 回答
如何将Python进程的输出重定向到Rust进程?
9 回答
如何将python连接到Azure云并创建Azure数据工厂
7 回答
如何将Python连接到Db2
4 回答
如何将python连接到IBMDB2?
10 回答
如何将Python连接到microsoftaccess数据库文件?
5 回答
如何将python连接到MySQL服务器
10 回答
如何将Python连接到Node.js?
10 回答
如何将python连接到Oracle Application Express
10 回答
如何将Python连接到PostgreSQL
7 回答
如何将Python连接到Postgres服务器?
2 回答
如何将Python连接到SAS Enterprise Guide(EG)服务器
1 回答
如何将Python连接到Spark会话并保持RDDs的Ali
2 回答
如何将python连接到sqlite3并在上填充多行
6 回答
如何将python连接到使用docker运行的cassandra
5 回答
如何将python退格应用于字符串
2 回答
如何将python逻辑应用到tkinter GUI中?这是一个简单的GET请求程序
1 回答