Re: Downloaded Django but the command prompt wont recognize commands

2016-08-07 Thread René Fleschenberg
Hi Owen, > I went through a tutorial for downloading python, pip and Django. All > seemed to be going well until I attempted to put command lines through the > command window > > So when I try to create a project via these instructions below > > $ django-admin startproject mysite > > > It gi

Re: How to start Django app with apache server

2016-08-07 Thread Daniel Roseman
There is no equivalent. If you're following those instructions, Django will run via Apache. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubsc

OperationalError at /checkout/ table orders_order has no column named order_id

2016-08-07 Thread M Hashmi
*I have two apps "orders" and "carts". In my models for carts I got:* class CartItem(models.Model): cart = models.ForeignKey("Cart") item = models.ForeignKey(Variation) quantity = models.PositiveIntegerField(default=1) line_item_total = models.DecimalField(max_digits=10, decimal_pl

Re: OperationalError at /checkout/ table orders_order has no column named order_id

2016-08-07 Thread M Hashmi
This is strange in Django 1.8.5 that it is not creating all DB fields. I've just commented out order_id field and 1. manage.py makemigrations, 2. manage.py migrate. Then again removed comment sign and it got added in db. Anyone knows why this happened? If I delete all my db with migrations there

Django Multiple Currencies Implementation

2016-08-07 Thread A.Khan
Hi I am new to Django and I need to implement multiple currency options based on user's preference. What I don't understand that let's say I am in Pakistan and I've used in my template simply PKR {{ object.price }} . Now I need to understand how would a payment processor will determine what cu

Re: Django Multiple Currencies Implementation

2016-08-07 Thread Babatunde Akinyanmi
Hello Khan, Your payment processor will specify in its API how it determines currency. This is not a django problem. I'm sure the answer to your question lies in the documentation of Stripe and Braintree On 7 Aug 2016 18:46, "A.Khan" wrote: > Hi I am new to Django and I need to implement multipl

Using non-ASCII app name via Apache server

2016-08-07 Thread Göran Uddeborg
I'm new to Django, so this is probably some kind of beginner's mistake. Django is set up to run via Apache and WSGI. It uses Python 3. The first app I wrote works fine. When I got to the second I wanted to use an app name that contained non-ASCII letters. But I can't get that to work at all

Please Can Some one Help me To get my static files load my default CSS files

2016-08-07 Thread Timothy Steele
Please any time i try to load my Django admin panel the default CSS files does not load and even i have to refresh several time before i can the css file will load, and even if i log in still the interface become different, it does not load the CSS files. I believe this is coming form the stati

Forcing Localization

2016-08-07 Thread Adam Starrh
I am writing an application for my small business based in India, where numbers are commonly understood in terms of lakhs and crores. ie. 1,000,000 is displayed as 10,00,000 I am assuming that enabling localization will cause numbers to display this way when I am viewing my application from a

Re: Django Multiple Currencies Implementation

2016-08-07 Thread Ali khan
Thank you Babutunde, So you are saying that the price = models.DecimalField(max_digits=20, decimal_fields=2) will automatically sense it that what currency it is or if someone wants to pay me in different currency how would a payment processor will change currency value? Also I need my currency to

Re: Using non-ASCII app name via Apache server

2016-08-07 Thread M Hashmi
List down your "civ.apps.CivConfig" also restart Gunicorn, and reload Nginx. On Sunday, August 7, 2016 at 4:59:40 PM UTC-7, Göran Uddeborg wrote: > > I'm new to Django, so this is probably some kind of beginner's mistake. > > Django is set up to run via Apache and WSGI. It uses Python 3. The f

Re: Please Can Some one Help me To get my static files load my default CSS files

2016-08-07 Thread M Hashmi
In your settings.py how did you setup your STATIC_URL and STATIC_FILEDIRS? Copy paste your settings.py code below STATIC_URL with your DB engine settings. DB looks working fine because your page is showing up so we can use same BASE_DIR conventions for setting up your static. On Sunday, August 7

Re: Django Multiple Currencies Implementation

2016-08-07 Thread Mike Dewhirst
On 8/08/2016 12:23 PM, Ali khan wrote: Thank you Babutunde, So you are saying that the price = models.DecimalField(max_digits=20, decimal_fields=2) will automatically sense it that what currency it is or if someone wants to pay me in different currency how would a payment processor will change cu

Re: Django Multiple Currencies Implementation

2016-08-07 Thread Babatunde Akinyanmi
Hello Ali, Mike has given a good analysis of the financials and your database implementation will depend on which option you choose. I know that's not the most helpful answer in the world but that will help in making good suggestions regarding the problem. If you ask me, stick to one currency and

Re: Django Multiple Currencies Implementation

2016-08-07 Thread Ali khan
Thank you mike for your kind reply but question was more related to how to setup moneyfield using what available modules. Use case is that a payment processor should be able to determine exchange value for instance if price is listed in Asian currency and someone wants to make payment in USD then p

Re: Django Multiple Currencies Implementation

2016-08-07 Thread Ali khan
Thank you Babatunde, That is also I am not aware of that which payment processor supports such functions. So if you've implemented any such kind of api please let me know. Regards, Ali On Sun, Aug 7, 2016 at 11:31 PM, Ali khan wrote: > Thank you mike for your kind reply but question was more r