mac 上的 django admin cookie 问题
我尝试在本地 mac 上安装 django Masscoupon,但到目前为止还没有成功。
第一个问题是 django 管理部分,它总是说 cookie 未启用,但我启用了。搜索发现可能与php5-mhash冲突。但我尝试搜索我的mamp安装,mamp中的php.ini,没有安装mhash。尝试搜索 /etc/ 但那里没有 php.ini。
第二个问题,在首页上,发现错误:
Could not import massivecoupon.engine.views. Error was: No module named libs
我做了一些搜索并尝试运行:
export PYTHNONPATH=$PYTHONPATH:$PWD
export DJANGO_SETTINGS_MODULE=massivecoupon.settings
仍然没有运气。
任何帮助将不胜感激。
I tried to install django massivecoupon local mac, but no luck so far.
First problem is django admin part, it always said cookie not enabled, but i did. Some search found that it could possibly conflict with php5-mhash. But i have tried to search through my mamp installation, php.ini in mamp, no mhash installed. Tried to search on /etc/ but no php.ini there.
Second problem, on the front page, error found :
Could not import massivecoupon.engine.views. Error was: No module named libs
I did some search and tried to run :
export PYTHNONPATH=$PYTHONPATH:$PWD
export DJANGO_SETTINGS_MODULE=massivecoupon.settings
Still no luck.
Any help will be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我按照这个食谱来运行它(具有基本功能)。
要解决管理问题,
需要从 settings.py 中删除此行
。您的 PYTHONPATH 设置是正确的。
要解决模块问题,
请从 engine/forms.py 中删除此行
需要从 templates/header.html 中删除
最后,如果 pyfacebook 和 facebooktags 模块不是,则
已经安装了。
如果你设置
调试=真
在 settings.py 中很容易看到发生了什么。
I followed this recipe to get this running (with basic functionality).
To fix the admin problem,
This line needs to be removed from settings.py
Your PYTHONPATH setting is correct.
To fix the module problem,
remove this line from engine/forms.py
Finally you will need to remove
from templates/header.html if pyfacebook and facebooktags modules are not
installed already.
If you set
Debug=True
in settings.py it is easy to see what is happening.