Re: It is impossible to add a non-nullable field 'details1' to feature without specifying a default. This is because the database needs something to populate existing rows.

2023-03-25 Thread swazyman1994
Thank you all, I was able to find a way around itIs the details1 I set null = True and it worked for meSent from my iPhoneOn 25 Mar 2023, at 7:52 PM, Henock Lungele  wrote:That means you have done some changes in your model python file. So you have to drop your data base, delete the migration files, recreate the database with the same name as in your configuration python file and do migrations again. This will work or you can add default parameter with a value after max_length parameter for example default="" this will work too but if you take a look to your sql codes, you have define a default behavior if the user type nothing in the input field.I'm sorry, i speak a little bit english i'm from a french country.Yours sincerely Le sam. 25 mars 2023 à 19:57, Patricia Medina  a écrit :Thats because you have values in the database...If you don't need the data... eliminate the 001, 002, etc files of the migration folder...(this folder is in each application folder) and applicate the migrations again.On Sat, Mar 25, 2023, 09:00 Ebenezer Otchere  wrote:Am new in django and have been getting errors in migrations, i need helpwhen i try to do migrations it keeps telling me thisit is impossible to add a non-nullable field 'details' to feature without specifying a default. This is because the database needs something to populate existing rows.Please select a fix: 1) Provide a one-off default now (will be set on all existing rows with a null value for this column) 2) Quit and manually define a default value in models.py.Thank you  in advancefrom django.db import models# Create your models here.class feature(models.Model) :        name = models.CharField(max_length=100)    extra = models.CharField(max_length=100)    details1 = models.CharField(max_length=500)    class art(models.Model):        name = models.CharField(max_length=100)    details = models.CharField(max_length=500)



-- 
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.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/06f462e2-3e1d-4a1a-8a97-b183586e5663n%40googlegroups.com.




-- 
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.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BMr2uxho70iCFjaPryhNx3AY0fXV4aKD5sKR%3DxGgNqo38rF7g%40mail.gmail.com.




-- 
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.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPy9iJL6JMat%3D7OGUmyuYe-PLC4GPcbdEuF7eSSo3tvd7BObhQ%40mail.gmail.com.




-- 
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.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/90B4C7CE-998C-4101-8456-D10DBB26ABD1%40gmail.com.


Re: It is impossible to add a non-nullable field 'details1' to feature without specifying a default. This is because the database needs something to populate existing rows.

2023-03-25 Thread Henock Lungele
That means you have done some changes in your model python file. So you
have to drop your data base, delete the migration files, recreate the
database with the same name as in your configuration python file and do
migrations again. This will work or you can add default parameter with a
value after max_length parameter for example default="" this will work too
but if you take a look to your sql codes, you have define a default
behavior if the user type nothing in the input field.
I'm sorry, i speak a little bit english i'm from a french country.
Yours sincerely

Le sam. 25 mars 2023 à 19:57, Patricia Medina <
patriciamedinamene...@gmail.com> a écrit :

> Thats because you have values in the database...
> If you don't need the data... eliminate the 001, 002, etc files of the
> migration folder...(this folder is in each application folder) and
> applicate the migrations again.
>
> On Sat, Mar 25, 2023, 09:00 Ebenezer Otchere 
> wrote:
>
>> Am new in django and have been getting errors in migrations, i need help
>> when i try to do migrations it keeps telling me this
>> it is impossible to add a non-nullable field 'details' to feature without
>> specifying a default. This is because the database needs something to
>> populate existing rows.
>> Please select a fix:
>>  1) Provide a one-off default now (will be set on all existing rows with
>> a null value for this column)
>>  2) Quit and manually define a default value in models.py.
>> Thank you  in advance
>> from django.db import models
>>
>> # Create your models here.
>>
>>
>> class feature(models.Model) :
>>
>> name = models.CharField(max_length=100)
>> extra = models.CharField(max_length=100)
>> details1 = models.CharField(max_length=500)
>>
>> class art(models.Model):
>>
>> name = models.CharField(max_length=100)
>> details = models.CharField(max_length=500)
>>
>> --
>> 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.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/06f462e2-3e1d-4a1a-8a97-b183586e5663n%40googlegroups.com
>> 
>> .
>>
> --
> 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.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BMr2uxho70iCFjaPryhNx3AY0fXV4aKD5sKR%3DxGgNqo38rF7g%40mail.gmail.com
> 
> .
>

-- 
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.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPy9iJL6JMat%3D7OGUmyuYe-PLC4GPcbdEuF7eSSo3tvd7BObhQ%40mail.gmail.com.


Re: WHAT OTHER REAL TIME MAP CAN I USE IN MY PROJECT ASIDE GOOGLE MAP?

2023-03-25 Thread Clive Bruton

Here maps:

https://www.here.com

https://heremaps.github.io/


-- Clive

--
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.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1F083D04-1CC7-4C84-AB45-BD82AD1521AF%40indx.co.uk.


Re: It is impossible to add a non-nullable field 'details1' to feature without specifying a default. This is because the database needs something to populate existing rows.

2023-03-25 Thread Muhammed Lawal
Enter 1 then ' ' rather. Sorry 

On Sat, 25 Mar 2023, 5:45 p.m. Muhammed Lawal, 
wrote:

> You are seen that error probably because you modified your models after
> adding some items to database already. When prompted with the error, enter
> 2, then ' ' an empty string.
>
> On Sat, 25 Mar 2023, 1:59 p.m. Ebenezer Otchere, 
> wrote:
>
>> Am new in django and have been getting errors in migrations, i need help
>> when i try to do migrations it keeps telling me this
>> it is impossible to add a non-nullable field 'details' to feature without
>> specifying a default. This is because the database needs something to
>> populate existing rows.
>> Please select a fix:
>>  1) Provide a one-off default now (will be set on all existing rows with
>> a null value for this column)
>>  2) Quit and manually define a default value in models.py.
>> Thank you  in advance
>> from django.db import models
>>
>> # Create your models here.
>>
>>
>> class feature(models.Model) :
>>
>> name = models.CharField(max_length=100)
>> extra = models.CharField(max_length=100)
>> details1 = models.CharField(max_length=500)
>>
>> class art(models.Model):
>>
>> name = models.CharField(max_length=100)
>> details = models.CharField(max_length=500)
>>
>> --
>> 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.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/06f462e2-3e1d-4a1a-8a97-b183586e5663n%40googlegroups.com
>> 
>> .
>>
>

-- 
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.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOzVPC_NXm9aG4vyod1M8-xXzA7G1VhU%2BVu7VprLYQo9K6R42Q%40mail.gmail.com.


Re: It is impossible to add a non-nullable field 'details1' to feature without specifying a default. This is because the database needs something to populate existing rows.

2023-03-25 Thread Patricia Medina
Thats because you have values in the database...
If you don't need the data... eliminate the 001, 002, etc files of the
migration folder...(this folder is in each application folder) and
applicate the migrations again.

On Sat, Mar 25, 2023, 09:00 Ebenezer Otchere  wrote:

> Am new in django and have been getting errors in migrations, i need help
> when i try to do migrations it keeps telling me this
> it is impossible to add a non-nullable field 'details' to feature without
> specifying a default. This is because the database needs something to
> populate existing rows.
> Please select a fix:
>  1) Provide a one-off default now (will be set on all existing rows with a
> null value for this column)
>  2) Quit and manually define a default value in models.py.
> Thank you  in advance
> from django.db import models
>
> # Create your models here.
>
>
> class feature(models.Model) :
>
> name = models.CharField(max_length=100)
> extra = models.CharField(max_length=100)
> details1 = models.CharField(max_length=500)
>
> class art(models.Model):
>
> name = models.CharField(max_length=100)
> details = models.CharField(max_length=500)
>
> --
> 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.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/06f462e2-3e1d-4a1a-8a97-b183586e5663n%40googlegroups.com
> 
> .
>

-- 
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.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BMr2uxho70iCFjaPryhNx3AY0fXV4aKD5sKR%3DxGgNqo38rF7g%40mail.gmail.com.


Re: It is impossible to add a non-nullable field 'details1' to feature without specifying a default. This is because the database needs something to populate existing rows.

2023-03-25 Thread Muhammed Lawal
You are seen that error probably because you modified your models after
adding some items to database already. When prompted with the error, enter
2, then ' ' an empty string.

On Sat, 25 Mar 2023, 1:59 p.m. Ebenezer Otchere, 
wrote:

> Am new in django and have been getting errors in migrations, i need help
> when i try to do migrations it keeps telling me this
> it is impossible to add a non-nullable field 'details' to feature without
> specifying a default. This is because the database needs something to
> populate existing rows.
> Please select a fix:
>  1) Provide a one-off default now (will be set on all existing rows with a
> null value for this column)
>  2) Quit and manually define a default value in models.py.
> Thank you  in advance
> from django.db import models
>
> # Create your models here.
>
>
> class feature(models.Model) :
>
> name = models.CharField(max_length=100)
> extra = models.CharField(max_length=100)
> details1 = models.CharField(max_length=500)
>
> class art(models.Model):
>
> name = models.CharField(max_length=100)
> details = models.CharField(max_length=500)
>
> --
> 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.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/06f462e2-3e1d-4a1a-8a97-b183586e5663n%40googlegroups.com
> 
> .
>

-- 
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.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOzVPC858UA6g4J%3D9nL_Ee8jVHqS1t%2BayGryvjTjRuMe91opMw%40mail.gmail.com.


Re: WHAT OTHER REAL TIME MAP CAN I USE IN MY PROJECT ASIDE GOOGLE MAP?

2023-03-25 Thread Michael kosy
Thank you very much, I appreciate.

On Sat, Mar 25, 2023, 2:02 PM DOI TUYEN  wrote:

> I think this link will help you. https://djangopackages.org/
> All packages for django are all here
>
> Vào Th 7, 25 thg 3, 2023 vào lúc 19:59 Michael kosy <
> kosymichael...@gmail.com> đã viết:
>
>> I am on a project that requires me to integrate real time maps into it. I
>> did that using Google API but whenever I run my server, it always throws
>> "Request Denied". Does anyone know any other mapping service that offers
>> free API?
>>
>> --
>> 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.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAAKreuuy91%2B-xoSAOqOyz4MrbuYNxoG57H3L%3Dgn_tjq9siVFvg%40mail.gmail.com
>> 
>> .
>>
> --
> 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.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAAKQkyQFT%2B3kUL9eHGTn1gXnC4tr1gKLSQLxv7cWscgcCwEVdA%40mail.gmail.com
> 
> .
>

-- 
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.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAKreut4DPb%3DKdErOwerxzEt328ArW8Zxrw%3DcHEfanPkPJJbVg%40mail.gmail.com.


Re: WHAT OTHER REAL TIME MAP CAN I USE IN MY PROJECT ASIDE GOOGLE MAP?

2023-03-25 Thread jeremiah nthiwa
You can use mapbox

On Saturday, March 25, 2023 at 4:00:13 PM UTC+3 Michael kosy wrote:

> I am on a project that requires me to integrate real time maps into it. I 
> did that using Google API but whenever I run my server, it always throws 
> "Request Denied". Does anyone know any other mapping service that offers 
> free API? 
>

-- 
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.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0d39f48f-22ad-41d1-a423-a7982c15af38n%40googlegroups.com.


Re: WHAT OTHER REAL TIME MAP CAN I USE IN MY PROJECT ASIDE GOOGLE MAP?

2023-03-25 Thread DOI TUYEN
I think this link will help you. https://djangopackages.org/
All packages for django are all here

Vào Th 7, 25 thg 3, 2023 vào lúc 19:59 Michael kosy <
kosymichael...@gmail.com> đã viết:

> I am on a project that requires me to integrate real time maps into it. I
> did that using Google API but whenever I run my server, it always throws
> "Request Denied". Does anyone know any other mapping service that offers
> free API?
>
> --
> 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.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAAKreuuy91%2B-xoSAOqOyz4MrbuYNxoG57H3L%3Dgn_tjq9siVFvg%40mail.gmail.com
> 
> .
>

-- 
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.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAKQkyQFT%2B3kUL9eHGTn1gXnC4tr1gKLSQLxv7cWscgcCwEVdA%40mail.gmail.com.


WHAT OTHER REAL TIME MAP CAN I USE IN MY PROJECT ASIDE GOOGLE MAP?

2023-03-25 Thread Michael kosy
I am on a project that requires me to integrate real time maps into it. I
did that using Google API but whenever I run my server, it always throws
"Request Denied". Does anyone know any other mapping service that offers
free API?

-- 
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.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAKreuuy91%2B-xoSAOqOyz4MrbuYNxoG57H3L%3Dgn_tjq9siVFvg%40mail.gmail.com.


It is impossible to add a non-nullable field 'details1' to feature without specifying a default. This is because the database needs something to populate existing rows.

2023-03-25 Thread Ebenezer Otchere
Am new in django and have been getting errors in migrations, i need help
when i try to do migrations it keeps telling me this
it is impossible to add a non-nullable field 'details' to feature without 
specifying a default. This is because the database needs something to 
populate existing rows.
Please select a fix:
 1) Provide a one-off default now (will be set on all existing rows with a 
null value for this column)
 2) Quit and manually define a default value in models.py.
Thank you  in advance
from django.db import models

# Create your models here.


class feature(models.Model) :

name = models.CharField(max_length=100)
extra = models.CharField(max_length=100)
details1 = models.CharField(max_length=500)

class art(models.Model):

name = models.CharField(max_length=100)
details = models.CharField(max_length=500)

-- 
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.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/06f462e2-3e1d-4a1a-8a97-b183586e5663n%40googlegroups.com.