在我向已安装的应用程序中添加"socialregistration“之前,基本的social Pinax项目一直有效。
In template /home/timothy/python-environments/pinax/lib/python2.6/site-packages/pinax/templates/default/_account_bar.html, error at line 3
Invalid block tag: 'ifopenid', expected 'else' or 'endif'
当我试图从pinax- requirements.txt -blog应用程序安装项目时,出现了这个错误。 还有you'll have pillow 5.0.0 which is incompatible是什么意思。 pinax-images 4.0.1 has requirement pillow>=7.1.2, but you'll have pillow 5.0.0 which is incompatible.
我的老工人通过PIP安装了Pinax,它安装在现场软件包中。所有的应用程序都住在那里。我们自己的应用程序在我们的Django项目结构中。
我想通过将create_user的is_active标志切换为False来修改Pinax的帐户应用程序。目前,该应用程序使其为True。我还想向create_user或任何我想做的功能添加额外的功能。
from pinax.account import forms
class MyCustomizeForm(forms.SignupForm):
def create_user(....):
super(....)
// addi
我目前正在开发一个Django/Pinax应用程序(我确定我的问题不是Pinax特定的,这就是为什么Pinax没有在主题标题中提及的原因),我想弄清楚整个框架是如何工作的。现在,我必须编写一个视图来将数据传递给模板。我只在django手册中看到过:在手册中,ObjectName.objects.all()被简单地传递给render_to_response()。我的任务有点复杂,所以我试图理解它是如何在pinax应用程序的“配置文件”中完成的,但完全失败了。
因此,profile.html模板文件有如下一行:
{% for article in other_user.article_set.al
在尝试启动Pinax应用程序时,我会收到以下错误:
Error: No module named notification
以下是我所采取的步骤
svn co http://svn.pinaxproject.com/pinax/trunk/ pinax
cd pinax/pinax/projects/basic_project
./manage.py syncdb
有什么建议吗?
更新:
结果发现,SVN版本中存在一些bug。下载最新版本解决了我的问题。如果任何一个人有任何其他的建议,使主干工作,他们仍将感激。
我在做教程:
试图安装meanjs。一切基本正常,但由于phantomjs安装失败,最终安装失败。
下面是它输出的一条错误日志:
npm ERR phantomjs@1.9.16 install: 'node install.js'
npm ERR Exit status code 1
npm ERR
npm ERR Failed at the phantomjs@1.9.16 install script.
npm ERR This is most likely a problem with phantomjs package,
npm ERR not with npm
一个django项目代码在我朋友的PC上运行良好,而在我的PC上运行失败,错误如下。virturalenv设置成功,我可以在virtualenv-folder/lib/python2.7/site-packages/avatar/templatetags.下找到avatar-tags.py有人知道这是什么原因吗?非常感谢。
TemplateSyntaxError at /
'avatar_tags' is not a valid tag library: Template library avatar_tags not found, tried django.template