satchmo

Attribute Error 'module' object has no attribute 'DateField'

寵の児 提交于 2021-01-27 15:07:18
问题 I'm trying to extend an admin definition in Satchmo/Django and am getting the error "Attribute Error 'module' object has no attribute 'DateField'" trying to add a formfield_override to ProductOptions: from django.contrib import admin from django.conf import settings from widgets import AdminImageWidget, AdminDateWidget from django.forms import models, ValidationError from django.utils.translation import ugettext_lazy as _ from l10n.l10n_settings import get_l10n_setting from l10n.utils import

Attribute Error 'module' object has no attribute 'DateField'

走远了吗. 提交于 2021-01-27 14:34:38
问题 I'm trying to extend an admin definition in Satchmo/Django and am getting the error "Attribute Error 'module' object has no attribute 'DateField'" trying to add a formfield_override to ProductOptions: from django.contrib import admin from django.conf import settings from widgets import AdminImageWidget, AdminDateWidget from django.forms import models, ValidationError from django.utils.translation import ugettext_lazy as _ from l10n.l10n_settings import get_l10n_setting from l10n.utils import

Where to Disconnect() the `default_product_search_listener` in Satchmo

半腔热情 提交于 2020-01-07 04:21:08
问题 I don't want to use the Default Satchmo search listener. I've created my own search listener instead. Where is the best place to disconnect the default search listener? # This is what I need to do... from satchmo_store.shop.listeners import default_product_search_listener application_search.disconnect(default_product_search_listener, sender=Product) I was trying to do it in my app's __init__.py and the my app's models.py , but both of those seemed to run before Satchmo actually connect s the

satchmo nginx redirect to https then to http and back

故事扮演 提交于 2020-01-03 04:16:08
问题 Im having a weird issue with a django project called satchmo, Im deploying with nginx and uwsgi. Whats happening is that the application does respond and it redirects to https and then to http and back to https until nginx stops and the application never responds. Help me figure out this. Thank you! this is my sites-available config file for nginx: server { listen 80; server_name miche.maumercado.com; rewrite ^ https://$server_name$request_uri? permanent; } server { listen 443; charset utf-8;

django-cart or Satchmo?

白昼怎懂夜的黑 提交于 2019-12-31 08:24:20
问题 I'm looking to implement a very basic shopping cart. Satchmo seems to install a lot of applications and extra stuff that I don't need. I've heard others mention django-cart. Has anyone tried this Django app (django-cart)? Anything to watch for or any other experiences? 回答1: Well if you want to use django-cart you should view it as a starting point for developing your own. The last commit (r4) for the project was November 2006. By comparison, the last commit (r1922) to Satchmo was a couple of

Satchmo clonesatchmo.py ImportError: cannot import name execute_manager

故事扮演 提交于 2019-12-08 15:35:15
问题 I get satchmo to try, but I have a great problem at first try, and I don't understand whats wrong. When I making $ python clonesatchmo.py into clear django project, it trows an error: $ python clonesatchmo.py Creating the Satchmo Application Customizing the files Performing initial data synching Traceback (most recent call last): File "manage.py", line 18, in <module> from django.core.management import execute_manager ImportError: cannot import name execute_manager Traceback (most recent call

RuntimeError: maximum recursion depth exceeded while calling a Python object

大城市里の小女人 提交于 2019-12-08 07:35:56
问题 this error arises when i try to run the following test case which is written in models.py of my django app named 'administration' : from django.test import Client, TestCase from django.core import mail class ClientTest( TestCase ): fixtures = [ 'testdata.json' ] def test_get_register( self ): response = self.client.get( '/accounts/register/', {} ) self.assertEqual( response.status_code, 200 ) the error arises at this line specifically: response = self.client.get( '/accounts/register/', {} )

satchmo nginx redirect to https then to http and back

南笙酒味 提交于 2019-12-07 20:35:29
Im having a weird issue with a django project called satchmo, Im deploying with nginx and uwsgi. Whats happening is that the application does respond and it redirects to https and then to http and back to https until nginx stops and the application never responds. Help me figure out this. Thank you! this is my sites-available config file for nginx: server { listen 80; server_name miche.maumercado.com; rewrite ^ https://$server_name$request_uri? permanent; } server { listen 443; charset utf-8; server_name miche.maumercado.com; ssl on; ssl_certificate /home/ubuntu/test.pem; ssl_certificate_key

TemplateSyntaxError: 'settings_tags' is not a valid tag library

江枫思渺然 提交于 2019-12-05 23:16:36
问题 i got this error when i try to run this test case: WHICH IS written in tests.py of my django application: def test_accounts_register( self ): self.url = 'http://royalflag.com.pk/accounts/register/' self.c = Client() self.values = { 'email': 'bilal@gmail.com', 'first_name': 'bilal', 'last_name': 'bash', 'password1': 'bilal', 'password2': 'bilal', } self.response = self.c.post( self.url, self.values ) my django version is 1.2.1 and python 2.6 and satchmo version is 0.9.2-pre hg-unknown the

TemplateSyntaxError: 'settings_tags' is not a valid tag library

淺唱寂寞╮ 提交于 2019-12-04 04:56:47
i got this error when i try to run this test case: WHICH IS written in tests.py of my django application: def test_accounts_register( self ): self.url = 'http://royalflag.com.pk/accounts/register/' self.c = Client() self.values = { 'email': 'bilal@gmail.com', 'first_name': 'bilal', 'last_name': 'bash', 'password1': 'bilal', 'password2': 'bilal', } self.response = self.c.post( self.url, self.values ) my django version is 1.2.1 and python 2.6 and satchmo version is 0.9.2-pre hg-unknown the complete error log is: .E.... ====================================================================== ERROR: