Re: PROBLEM WITH ACCESING MY APP WITH -m django runserver WITH DJANGO!!

2019-10-09 Thread Clara Daia
The error message django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. suggests you did not configure a settings module.

Atomic post_save operation

2019-05-27 Thread Clara Daia
Hello, guys tl; dr: Is there a way to make [save + post_save] and [delete + post_delete] operations atomic? That is, if the operations in the function triggered by the post_save signal fail, then the save itself is reverted? Long version: I have a certain model MyModel and I keep track of changes

Re: How to remove a model definition completely in Django when it previously had foreign keys

2019-03-08 Thread Clara Daia
Are you getting an error? I think migration dependencies should solve that by themselves, running "step 2" before "step 3". Doesn't Django complain if you try to migrate "step 3" before "step 2"? Em sex, 8 de mar de 2019 às 11:07, Henrik Ossipoff Hansen < henrik.ossip...@gmail.com> escreveu: > We

Re:

2019-02-21 Thread Clara Daia
Could you show us the code for the models? Em qui, 21 de fev de 2019 às 15:42, bhushan patil escreveu: > I am trying to build my first app in django but an error has occurred > starting 'Question is not defined'.can anyone help me with this. > > -- > You received this message because you are su

Re: Are distance lookups available for MySQL or not?

2019-01-03 Thread Clara Daia
Shame on me, there is a table for that in the docs. https://docs.djangoproject.com/en/2.1/ref/contrib/gis/db-api/#spatial-lookup-compatibility Em qui, 3 de jan de 2019 às 10:38, Clara Daia escreveu: > Hello, Jason > > I appreciate your help, and I tried running the test with a MySQL &g

Re: Are distance lookups available for MySQL or not?

2019-01-03 Thread Clara Daia
Hello, Jason I appreciate your help, and I tried running the test with a MySQL container but got the same error. The MySQL spatial reference does not have a'dwithin' entry or similar either. I changed my query to self.asse

Re: Are distance lookups available for MySQL or not?

2019-01-02 Thread Clara Daia
I wrote the query myself in case the library was messing it up and got the same error: self.assertEqual(MyModel.objects.filter( geopositionfield__dwithin=( Point(-25.427855, -49.279644), 0.00028321143293561684) ).count(), 1) Em qua, 2 de jan de 2019 às 16:33, Clara Daia

Are distance lookups available for MySQL or not?

2019-01-02 Thread Clara Daia
Hello, everybody I am using Django 2.1 with MariaDB 10.3. I have been trying to get the 'dwithin' lookup to work on a PointField, but I keep getting the following error: ... File "/usr/local/lib/python3.6/site-packages/django/contrib/gis/db/models/lookups.py" , line 74, in get_rhs_op re