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

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

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: >

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

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

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

How to Publish Django Web App to Windows Server 2012 R2

2018-10-18 Thread Daia
. The project doesn't created. Please advice. Thanks Daia -- 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+unsubscr...@googlegroups.co