satchmo: different price for difference areas

2011-04-19 Thread ug Charlie
I am a django beginner. I just made a shop with satchmo.

I want to set two price for one product. It is like one button in my
page to select the area and display different price for USD or EURO.
Could you give me some advice?

Thanks. :)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: satchmo currency

2011-04-17 Thread ug Charlie
You are right. Thank you.
Then I just need to add a button in the page to switch the currency.
However, still have no idea for this. :(

On 4/15/11, Chris Moffitt <ch...@moffitts.net> wrote:
> First off, you'll probably get better responses on the Satchmo list.
>
> Secondly, changing languages doesn't change currency symbols, which should
> make sense. 1 Euro is not equal to 1 Dollar. If we were to change symbols,
> we'd also need to do a currency conversion. It's not impossible by any means
> just not something that is done out of the box.
>
> -Chris
>
> On Thu, Apr 14, 2011 at 11:31 PM, ug Charlie <ug.char...@gmail.com> wrote:
>
>> Hello, I just make a satchmo shop. 3 languages.
>>
>> But the currency make me stuck.
>>
>> I just want the site change the currency when changing the language.
>>
>> In satchmo settings.py, it is like
>>
>> L10N_SETTINGS = {
>>'currency_formats' : {
>>'EURO' : {
>>'symbol': u'€ ',
>>'positive' : u"€ %(val)0.2f",
>>'negative': u"€ (%(val)0.2f)",
>>'decimal' : ','
>>},
>>'USD' : {
>>'symbol': u'$ ',
>>'positive' : u"$%(val)0.2f",
>>'negative': u"$(%(val)0.2f)",
>>'decimal' : ','
>>},
>>},
>>'default_currency' : 'EURO',
>>'show_admin_translations': True,
>>'allow_translation_choice': True,
>> }
>>
>> I do not really know how to do that..:(
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



satchmo currency

2011-04-14 Thread ug Charlie
Hello, I just make a satchmo shop. 3 languages.

But the currency make me stuck.

I just want the site change the currency when changing the language.

In satchmo settings.py, it is like

L10N_SETTINGS = {
'currency_formats' : {
'EURO' : {
'symbol': u'€ ',
'positive' : u"€ %(val)0.2f",
'negative': u"€ (%(val)0.2f)",
'decimal' : ','
},
'USD' : {
'symbol': u'$ ',
'positive' : u"$%(val)0.2f",
'negative': u"$(%(val)0.2f)",
'decimal' : ','
},
},
'default_currency' : 'EURO',
'show_admin_translations': True,
'allow_translation_choice': True,
}

I do not really know how to do that..:(

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to setup apache server for django?

2011-04-06 Thread ug Charlie
Can not find the page now...

On 4/7/11, Graham Dumpleton  wrote:
>
>
> On Thursday, April 7, 2011 2:16:43 AM UTC+10, Charlie from china wrote:
>>
>> Good to hear from you.
>> I am following this guide.
>> http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/
>
>
> Read:
>
>   http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango
>
> Watch:
>
>
> http://code.google.com/p/modwsgi/wiki/WhereToGetHelp?tm=6#Conference_Presentations
>
>
>>
>> Using the mod_wsgi. Util now I got some empty django project works.
>> But my satchmo shop does not work. It turns out to download when open
>> the localhost.
>> My file structure looks like:
>> +store
>>  | + apache
>>  | |- django.wsgi
>>  |  ...
>>  |  ...
>>  | +templates
>>  | +static
>> 
>> http.conf:
>> WSGISocketPrefix /tmp/wsgi
>>
>
> Don't use /tmp for the socket listener files. For a system that requires
> this, which is only usually older Redhat/Centos, you would use:
>
>   WSGISocketPrefix run/wsgi
>
>
>> 
>> /etc/apache2/sites-available/wab :
>> 
>> ServerName waboba
>>
>
> Why do you have waboba here and not wab?
>
>
>> WSGIScriptAlias / /var/www/store/apache/django.wsgi
>> Alias /media /var/www/store/static/
>
>
> Should be:
>
>   Alias /media/  /var/www/store/static/
>
> Ie., trailing slash on both. You shouldn't have it on one and leave it off
> the other.
>
>> 
>> Order deny,allow
>> Allow from all
>> 
>>
>> LogLevel info
>> WSGIDaemonProcess waboba processes=2 threads=15 display-name=%{GROUP}
>>
>> 
>> WSGIApplicationGroup 
>> WSGIProcessGroup store
>>
> Using 'store' here is wrong and isn't going to match what name you are using
> as argument to WSGIDaemonProcess directive.
>
> Fix those issues for a start.
>
> Graham
>
>> Order deny,allow
>> Allow from all
>> 
>> 
>> -
>> And /etc/hosts:
>> 192.168.1.102 ubuntu # Added by NetworkManager
>> 127.0.0.1 localhost.localdomain localhost
>> ::1 ubuntu localhost6.localdomain6 localhost6
>>
>> 192.168.1.102wab
>> 192.168.1.102helloworld
>> -
>>
>> http://helloworld  works sometimes..
>> but http://wab will ask me download...
>> this is my situation.
>>
>> On 4/6/11, Graham Dumpleton  wrote:
>> >
>> >
>> > On Wednesday, April 6, 2011 6:24:50 PM UTC+10, Charlie from china wrote:
>> >>
>> >> I have tried whole day. And I just got a new django project works.
>> >>
>> >> But I want my old project works too. Anyone could give me some info?
>> >>
>> >
>> > Depends on what WSGI hosting mechanism you are using and you don't
>> mention
>> > that.
>> >
>> > Graham
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Django users" group.
>> > To post to this group, send email to django...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > django-users...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/django-users?hl=en.
>> >
>> >
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to setup apache server for django?

2011-04-06 Thread ug Charlie
Good to hear from you.
I am following this guide.
http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/
Using the mod_wsgi. Util now I got some empty django project works.
But my satchmo shop does not work. It turns out to download when open
the localhost.
My file structure looks like:
+store
 | + apache
 | |- django.wsgi
 |  ...
 |  ...
 | +templates
 | +static

http.conf:
WSGISocketPrefix /tmp/wsgi

/etc/apache2/sites-available/wab :

ServerName waboba
WSGIScriptAlias / /var/www/store/apache/django.wsgi
Alias /media /var/www/store/static/


Order deny,allow
Allow from all


LogLevel info
WSGIDaemonProcess waboba processes=2 threads=15 display-name=%{GROUP}


WSGIApplicationGroup 
WSGIProcessGroup store
Order deny,allow
Allow from all


-
And /etc/hosts:
192.168.1.102   ubuntu  # Added by NetworkManager
127.0.0.1   localhost.localdomain   localhost
::1 ubuntu  localhost6.localdomain6 localhost6

192.168.1.102wab
192.168.1.102helloworld
-

http://helloworld  works sometimes..
but http://wab will ask me download...
this is my situation.

On 4/6/11, Graham Dumpleton  wrote:
>
>
> On Wednesday, April 6, 2011 6:24:50 PM UTC+10, Charlie from china wrote:
>>
>> I have tried whole day. And I just got a new django project works.
>>
>> But I want my old project works too. Anyone could give me some info?
>>
>
> Depends on what WSGI hosting mechanism you are using and you don't mention
> that.
>
> Graham
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



how to setup apache server for django?

2011-04-06 Thread ug Charlie
I have tried whole day. And I just got a new django project works.

But I want my old project works too. Anyone could give me some info?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



datatrans

2011-03-31 Thread ug Charlie
How to use datatrans?

Is there anyone can help me?

I want to translate data from my db. lol

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.