对于我目前的satchmo商店,我想发送html电子邮件,而不是所有的txt电子邮件。通过satchmo_store帐户注册码的外观,所有电子邮件都被硬编码并使用.txt格式而不是html格式。 例如mail.py """Sends mail related to accounts."""
from django.conf import settings
from django.utils.
我想使用网站中给出的说明安装satchmo。一切工作正常,除了管理部分。我打http://<SERVER_NAME>/admin的那一刻,我得到以下错误: 'admin_static' is not a valid tag library: Template library admin_static not found, tried django.templatetags.admin_static
我试图扩展Satchmo/Django中的管理定义,并得到错误“属性错误'模块'对象没有属性'DateField'”试图添加一个formfield_override到ProductOptions: from django.contrib import admin
from django.conf import settings
from widgets import AdminImageWid
让我们来看看使用第三方应用程序的django项目。 我想重写它的一些模块而不接触原始文件。 简单的子类化在这里是不可能的,需要透明地覆盖代码,因为许多其他应用程序依赖原始类名称和函数。 项目的结构如下: django_project/
__init__.py
settings.py
overrides/ <-- here is a subdir with apps