Re: Safe way to set keys, such as Stripe keys, in settings?

2020-01-15 Thread Mohamed A
In heroku online platform add STRIPE_TEST_PUBLIC_KEY as environment variable. Then, STRIPE_TEST_PUBLIC_KEY = os.environ.get("STRIPE_TEST_ PUBLIC_KEY") Le mer. 15 jan. 2020 à 11:32, Bill Talcott a écrit : > Hello. This should be simple, but... I haven't found a good answer. > I have the following

Re: How to do SEO for my django website

2020-01-14 Thread Mohamed A
Please, check an alternative from here https://djangopackages.org/grids/g/seo/ On Mon, Jan 13, 2020 at 10:40 PM Roshan Shah wrote: > Anyone fixing django-seo to be compatible with Django 3.0? > > On Fri, Jan 3, 2020 at 7:54 AM Yash Garg wrote: > >> rollyourown.seo in not compatible with latest

Re: Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-14 Thread Mohamed A
the issue is related to PEP8. You need to space it a little bit :) leave an empty line before __str__ . And it is not an error, it is just a warning :) On Mon, Jan 13, 2020 at 11:27 PM Julius Lange wrote: > Okay, thank you guys! > > I figured it out. The reason was another issue and my nooby ass

Re: Override value of a TextField class method.

2020-01-06 Thread Mohamed A
Hint:.. __init__ is a constructor not any method. Le lun. 6 jan. 2020 à 23:02, Fabio da Silva Pedro < fabio.silvape...@gmail.com> a écrit : > Easy. You need to provide attrs as dict to the new object. >> >> > Ok, I thought about that too, but I don't know how to do it, I copied the > whole method

Re: Override value of a TextField class method.

2020-01-06 Thread Mohamed A
Easy. You need to provide attrs as dict to the new object. Le lun. 6 jan. 2020 à 21:36, Fabio da Silva Pedro < fabio.silvape...@gmail.com> a écrit : > Hi everyone! > > this is an excerpt line from my model > > observacoes = models.TextField(null=True, blank=True, > verbose_name='Informações comp

Re: ModuleNotFoundError: No module named 'datetime'

2020-01-06 Thread Mohamed A
Can you please check whether the python interpreter inside the virtual environment is python 2 or python 3 ? In order to do so, you need to goto to the virtualenv folder, activate cargo env, and then check "python -V" On Mon, Jan 6, 2020 at 7:10 PM Kasper Laudrup wrote: > Hi Bhushan, > > On 06/0

Re: JSONDecodeError

2020-01-06 Thread Mohamed A
According to the documentation > If the data being deserialized is not a valid JSON document, a > JSONDecodeError > will > be raised. > however the object response, which it

Re: SyntaxError SECRET_KEY

2020-01-05 Thread Mohamed A
Be careful your secret key contains a # Which comment everything after Le dim. 5 jan. 2020 à 22:06, 'Dash LaLonde' via Django users < django-users@googlegroups.com> a écrit : > Well I can't go any further, I keep getting SyntaxError SECRET_KEY, the > only thing I changed was I added another os.p

Re: ModuleNotFoundError: No module named 'datetime'

2020-01-03 Thread Mohamed A
How about deleting your virtualenv and recreating a new one. It may be located here ::: C:\Users\\.virtualenvs\cargo When reactivated, could you please provide as with the results of "echo $PATH" from cmdline. On Fri, Jan 3, 2020 at 7:09 PM sanusi ibrahim adekunle < ibrahimsanusiw...@gmail.com>