Re: [mezzanine-users] mezzanine-cartridge pic upload problem :cannot upload product image using admin account

2014-01-21 Thread lu zou
could you go into more details, I just download a clean cartridge from 
github and run it again ,same problem come along

On Wednesday, 22 January 2014 17:14:10 UTC+10, Stephen McDonald wrote:
>
> That error typically occurs when there has been a problem with the 
> JavaScript that handles the drag/drop re-ordering.
>
> Check your browser's JavaScript console for errors or perhaps missing 
> files.
>
>
> On Wed, Jan 22, 2014 at 6:11 PM, lu zou  >wrote:
>
>> when I am create a product in admin account ,if I upload the product 
>> image ,there will be a bug ,donot why, using the default django pic ,same 
>> problem ,all kinds of the image type I have tried to upload ,all come 
>> across the same problem 
>>
>> error info:
>>
>> invalid literal for int() with base 10: ''
>>
>> traceback info :
>>
>>
>>- 
>>
>> /Users/luzou/Documents/djanproj/cartridge/src/cartridge/cartridge/shop/admin.py
>>  in save_formset
>>
>>1. 
>>   
>>self._images_formset, 
>> change)
>>   
>>   2. ... 
>>▶ Local vars 
>>- 
>>
>>
>>
>>- 
>>
>> /Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/core/models.py
>>  in save
>>
>>1. 
>>   
>>   super(Orderable, self).save(*args, **kwargs)
>>   
>>   ...
>>▶ Local vars 
>>
>>
>> also when upload pic from the media library(which have been uploaded into 
>> already ) into gallery 
>>
>> same error:
>>
>> invalid literal for int() with base 10: ''
>>
>>  
>>
>>- 
>>
>>
>> /Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/pages/admin.py
>> in change_view
>>1. 
>>   
>>   return super(PageAdmin, self).change_view(request, object_id, 
>> **kwargs)
>>   
>>   ...
>>▶ Local vars 
>>
>>
>>
>>
>>- 
>>
>> /Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/galleries/models.py
>> in save
>>1. 
>>   
>>   super(GalleryImage, self).save(*args, **kwargs)
>>   
>>   ...
>>▶ Local vars 
>>- 
>>
>> /Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/core/models.py
>> in save
>>1. 
>>   
>>   super(Orderable, self).save(*args, **kwargs)
>>   
>>   ...
>>▶ Local vars 
>>- 
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Mezzanine Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to mezzanine-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> Stephen McDonald
> http://jupo.org 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] mezzanine-cartridge pic upload problem :cannot upload product image using admin account

2014-01-21 Thread Stephen McDonald
That error typically occurs when there has been a problem with the
JavaScript that handles the drag/drop re-ordering.

Check your browser's JavaScript console for errors or perhaps missing files.


On Wed, Jan 22, 2014 at 6:11 PM, lu zou  wrote:

> when I am create a product in admin account ,if I upload the product image
> ,there will be a bug ,donot why, using the default django pic ,same problem
> ,all kinds of the image type I have tried to upload ,all come across the
> same problem
>
> error info:
>
> invalid literal for int() with base 10: ''
>
> traceback info :
>
>
>- 
> /Users/luzou/Documents/djanproj/cartridge/src/cartridge/cartridge/shop/admin.py
>  in save_formset
>1.
>
>
>self._images_formset, 
> change)
>
>   2. ...
>▶ Local vars 
>-
>
>
>-
>
> /Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/core/models.py
>  in save
>1.
>
>
>   super(Orderable, self).save(*args, **kwargs)
>
>   ...
>▶ Local vars 
>
>
> also when upload pic from the media library(which have been uploaded into 
> already ) into gallery
> same error:
>
> invalid literal for int() with base 10: ''
>
>
>
>-
>
>
> /Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/pages/admin.py
> in change_view
>1.
>
>
>   return super(PageAdmin, self).change_view(request, object_id, 
> **kwargs)
>
>   ...
>▶ Local vars 
>
>
>
>
>-
>
> /Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/galleries/models.py
> in save
>1.
>
>
>   super(GalleryImage, self).save(*args, **kwargs)
>
>   ...
>▶ Local vars 
>-
>
> /Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/core/models.py
> in save
>1.
>
>
>   super(Orderable, self).save(*args, **kwargs)
>
>   ...
>▶ Local vars 
>-
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Stephen McDonald
http://jupo.org

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] mezzanine-cartridge pic upload problem :cannot upload product image using admin account

2014-01-21 Thread lu zou
when I am create a product in admin account ,if I upload the product image 
,there will be a bug ,donot why, using the default django pic ,same problem 
,all kinds of the image type I have tried to upload ,all come across the 
same problem 

error info:

invalid literal for int() with base 10: ''

traceback info :


   - 
/Users/luzou/Documents/djanproj/cartridge/src/cartridge/cartridge/shop/admin.py 
in save_formset
   1. 
  
   self._images_formset, 
change)
  
  2. ...
   ▶ Local vars 
   - 


   - 
   
/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/core/models.py
 in save
   1. 
  
  super(Orderable, self).save(*args, **kwargs)
  
  ...
   ▶ Local vars 
   

also when upload pic from the media library(which have been uploaded into 
already ) into gallery 
same error:

invalid literal for int() with base 10: ''



   - 
   
   
/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/pages/admin.py
in change_view
   1. 
  
  return super(PageAdmin, self).change_view(request, object_id, 
**kwargs)
  
  ...
   ▶ Local vars 
   



   - 
   
/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/galleries/models.py
in save
   1. 
  
  super(GalleryImage, self).save(*args, **kwargs)
  
  ...
   ▶ Local vars 
   - 
   
/Users/luzou/Documents/djanproj/cartridge/lib/python2.7/site-packages/Mezzanine-3.0.4-py2.7.egg/mezzanine/core/models.py
in save
   1. 
  
  super(Orderable, self).save(*args, **kwargs)
  
  ...
   ▶ Local vars 
   - 
   

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] Re: Restricting shop to active users only

2014-01-21 Thread Eduardo Rivas
Ok, thanks. I'll give it a shot and report back.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] Restricting shop to active users only

2014-01-21 Thread Stephen McDonald
I think you could just add the existing product view (and any others) to
your urlpatterns, but wrapped in Django's login_required decorator - with
that you'd get all the fancy redirecting to login and back to the original
page.

I don't think there's a strong case for including it as a setting.


On Wed, Jan 22, 2014 at 2:18 PM, Eduardo Rivas wrote:

> Hello Mezzaniners and Cartridgers (??).
> I have some very specific requirements for a project I'm working in. I
> would like to have shop categories available to all visitors of the site
> (they can browse all categories and see which products are included in
> each, just a thumbnail and short description). However, unauthenticated or
> inactive users should not be able to access the product detail page (they
> can't make orders either, of course). Ideally this would only require
> toggling a setting such as SHOP_CHECKOUT_ACCOUNT_REQUIRED, but I don't
> think something like that exists. My questions are:
>
>1. Can this be done without modifying Cartridge views to check for
>user auth? (Monkey patch solution)
>2. Would you (Steve) be open to adding a setting to control this
>behavior in shop.views.product, just as shop.views.checkout_steps does now?
>(Proper, long-term solution IMO)
>
> What do you guys think? Do you see any other solution?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Stephen McDonald
http://jupo.org

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] Restricting shop to active users only

2014-01-21 Thread Eduardo Rivas
Hello Mezzaniners and Cartridgers (??).
I have some very specific requirements for a project I'm working in. I 
would like to have shop categories available to all visitors of the site 
(they can browse all categories and see which products are included in 
each, just a thumbnail and short description). However, unauthenticated or 
inactive users should not be able to access the product detail page (they 
can't make orders either, of course). Ideally this would only require 
toggling a setting such as SHOP_CHECKOUT_ACCOUNT_REQUIRED, but I don't 
think something like that exists. My questions are:

   1. Can this be done without modifying Cartridge views to check for user 
   auth? (Monkey patch solution)
   2. Would you (Steve) be open to adding a setting to control this 
   behavior in shop.views.product, just as shop.views.checkout_steps does now? 
   (Proper, long-term solution IMO)

What do you guys think? Do you see any other solution?

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] Looking for Developer to create a site in mezzanine based on my current site

2014-01-21 Thread Moltra
I am looking for a developer that can create a site using mezzanine with 
the same basic functions of my current website.

The URL is http://serviidb.com.

If you are interested please contact me.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] trying to use cartridge-payments

2014-01-21 Thread Jaroslaw Boss

Here my settings:

from __future__ import absolute_import, unicode_literals

SHOP_CHECKOUT_FORM_CLASS = 
'payments.multipayments.forms.base.CallbackUUIDOrderForm'


SHOP_CHECKOUT_STEPS_SPLIT = True

SHOP_CURRENCY_LOCALE = "en_GB"




EXTRA_MODEL_FIELDS = (

(
"cartridge.shop.models.Order.callback_uuid",
"django.db.models.CharField",
(),
{"blank" : False, "max_length" : 36},
),

)


USE_SOUTH = True



ADMINS = (
# ('Your Name', 'your_em...@domain.com'),
)
MANAGERS = ADMINS


ALLOWED_HOSTS = []


TIME_ZONE = None




LANGUAGE_CODE = "en"

_ = lambda s: s
LANGUAGES = (
('en', _('English')),
)


DEBUG = False


SESSION_EXPIRE_AT_BROWSER_CLOSE = True

SITE_ID = 1


USE_I18N = False


INTERNAL_IPS = ("127.0.0.1",)


TEMPLATE_LOADERS = (
"django.template.loaders.filesystem.Loader",
"django.template.loaders.app_directories.Loader",
)

AUTHENTICATION_BACKENDS = ("mezzanine.core.auth_backends.MezzanineBackend",)


STATICFILES_FINDERS = (
"django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder",
#'django.contrib.staticfiles.finders.DefaultStorageFinder',
)


FILE_UPLOAD_PERMISSIONS = 0o644


#
# DATABASES #
#

DATABASES = {
"default": {
# Add "postgresql_psycopg2", "mysql", "sqlite3" or "oracle".
"ENGINE": "django.db.backends.",
# DB name or path to database file if using sqlite3.
"NAME": "",
# Not used with sqlite3.
"USER": "",
# Not used with sqlite3.
"PASSWORD": "",
# Set to empty string for localhost. Not used with sqlite3.
"HOST": "",
# Set to empty string for default. Not used with sqlite3.
"PORT": "",
}
}


#
# PATHS #
#

import os

# Full filesystem path to the project.
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))

# Name of the directory for the project.
PROJECT_DIRNAME = PROJECT_ROOT.split(os.sep)[-1]


CACHE_MIDDLEWARE_KEY_PREFIX = PROJECT_DIRNAME

# URL prefix for static files.
# Example: "http://media.lawrence.com/static/";
STATIC_URL = "/static/"


STATIC_ROOT = os.path.join(PROJECT_ROOT, STATIC_URL.strip("/"))


MEDIA_URL = STATIC_URL + "media/"

MEDIA_ROOT = os.path.join(PROJECT_ROOT, *MEDIA_URL.strip("/").split("/"))


ROOT_URLCONF = "%s.urls" % PROJECT_DIRNAME


TEMPLATE_DIRS = (os.path.join(PROJECT_ROOT, "templates"),)



# APPLICATIONS #


INSTALLED_APPS = (
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.redirects",
"django.contrib.sessions",
"django.contrib.sites",
"django.contrib.sitemaps",
"django.contrib.staticfiles",
"cartridge.shop",
"mezzanine.boot",
"mezzanine.conf",
"mezzanine.core",
"mezzanine.generic",
"mezzanine.blog",
"mezzanine.forms",
"mezzanine.pages",
"mezzanine.galleries",
#"mezzanine.twitter",
"mezzanine.accounts",
#"mezzanine.mobile",
"payments.multipayments",
"south",
)


TEMPLATE_CONTEXT_PROCESSORS = (
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.static",
"django.core.context_processors.media",
"django.core.context_processors.request",
"django.core.context_processors.tz",
"mezzanine.conf.context_processors.settings",
"payments.multipayments.context_processors.settings",
)


MIDDLEWARE_CLASSES = (
"mezzanine.core.middleware.UpdateCacheMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.locale.LocaleMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.redirects.middleware.RedirectFallbackMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"cartridge.shop.middleware.ShopMiddleware",
"mezzanine.core.request.CurrentRequestMiddleware",
"mezzanine.core.middleware.TemplateForDeviceMiddleware",
"mezzanine.core.middleware.TemplateForHostMiddleware",
"mezzanine.core.middleware.AdminLoginInterfaceSelectorMiddleware",
"mezzanine.core.middleware.SitePermissionMiddleware",
# Uncomment the following if using any of the SSL settings:
# "mezzanine.core.middleware.SSLRedirectMiddleware",
"mezzanine.pages.middleware.PageMiddleware",
"mezzanine.core.middleware.FetchFromCacheMiddleware",
)

# Store these package names here as they may change in the future since
# at the moment we are using custom forks of them.
PACKAGE_NAME_FILEBROWSER = "filebrowser_safe"
PACKAGE_NAME_GRAPPELLI = "grappelli_safe"


OPTIONAL_APPS = (
"debug_toolbar",
"django_extensions",
"compressor",
PACKAGE_NAME_FILEBR

Re: [mezzanine-users] Re: trying to use cartridge-payments

2014-01-21 Thread Jaroslaw Boss

Yes I did 

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] Re: trying to use cartridge-payments

2014-01-21 Thread Josh B
Did you add this to your settings.py?

EXTRA_MODEL_FIELDS = (
# ...
(
"cartridge.shop.models.Order.callback_uuid",
"django.db.models.CharField",
(),
{"blank" : False, "max_length" : 36},
),
# ...
)

If so did you run python manage.py migrate



On Tuesday, January 21, 2014 3:00:55 PM UTC-7, jarosl...@gmail.com wrote:
>
> I am trying to use cartridge-payments
> Have pip installed inside virtualenv
> added settings to settings.py
> but when I am going to checkout I am getting following error:
> OperationalError at /shop/checkout/
> no such column: shop_order.callback_uuid
>
> wondering how to fix it?
>
> Regards
>
> Jaroslaw
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] trying to use cartridge-payments

2014-01-21 Thread jaroslaw . boss
I am trying to use cartridge-payments
Have pip installed inside virtualenv
added settings to settings.py
but when I am going to checkout I am getting following error:
OperationalError at /shop/checkout/
no such column: shop_order.callback_uuid

wondering how to fix it?

Regards

Jaroslaw

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [mezzanine-users] hi ,how can I remove the home page and some other default pages in mezzanine(cartridge)

2014-01-21 Thread Danny

You need to provide your own templates for the relevant pages.

You can override the relevant ones by placing an equivalently named file 
in the templates directory (and subdirectory tree) in your project.


Also look at urls.py in your project to see how to make the home page 
the blog index page, for example.


Some links that may help:

http://mezzanine.jupo.org/docs/frequently-asked-questions.html#why-isn-t-the-homepage-a-page-object-i-can-edit-via-the-admin

http://mezzanine.jupo.org/docs/frequently-asked-questions.html#where-are-all-the-templates-i-can-modify

http://mezzanine.jupo.org/docs/content-architecture.html#page-templates

https://docs.djangoproject.com/en/dev/ref/templates/

Hope this helps.

Seeya. Danny.
--
Email: molo...@gmail.com

--
You received this message because you are subscribed to the Google Groups "Mezzanine 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] Re: Help with payments Cartridge

2014-01-21 Thread jaroslaw . boss


Hi ,

I've found this Django project: https://github.com/cypreess/django-getpaid
It does work with multiple payment services.
Wondering how to integrate it with cartridge.

Regards

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[mezzanine-users] hi ,how can I remove the home page and some other default pages in mezzanine(cartridge)

2014-01-21 Thread lu zou


-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.