Re: ?? question ,its urgent

2022-06-20 Thread Abhishek Choudhury
Hi Abhinandan,

You can create a JSON field as dict and accordingly add key values to that
dictionary (provided by the + add option in frontend). Hope this helps.

Thanks and regards,
Abhishek

On Mon, 20 Jun 2022 at 12:17 PM, Abhinandan K 
wrote:

> how to store the data in django databse table if user append fields
> according to their need
> for example i have 1 one field 1) name 2) age 3) salary and the sign('+)
> if user click on + sign row append one plus in form..my question is that i
> want to store the data in all appended textboxes in single field in
> database,,
>
> --
> 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/CAA6_Mp6UPLakoi-JhcgB4U89-iKfDwAaxDWwW547tFKyk_imrg%40mail.gmail.com
> 
> .
>
-- 
Thanks and regards,
Abhishek Choudhury
Mobile: +91 7903717967

-- 
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%2B3kJUbCuS3awFnL3op-MX3AB1pYQokpKwyaknr0C3fKqNj-XQ%40mail.gmail.com.


Re: ?? question ,its urgent

2022-06-20 Thread Paul Kudla (SCOM.CA Internet Services Inc.)



Just an fyi your email showed up as suspect ??

spf=softfail (google.com: domain of transitioning 
abhinan...@snakescript.com does not designate 2607:f8b0:4864:20::62b as 
permitted sender)


might want to get that fixed




Happy Monday !!!
Thanks - paul

Paul Kudla


Scom.ca Internet Services 
004-1009 Byron Street South
Whitby, Ontario - Canada
L1N 4S3

Toronto 416.642.7266
Main 1.866.411.7266
Fax 1.888.892.7266
Email p...@scom.ca

On 6/20/2022 2:46 AM, Abhinandan K wrote:
how to store the data in django databse table if user append fields 
according to their need

for example i have 1 one field 1) name 2) age 3) salary and the sign('+)
if user click on + sign row append one plus in form..my question is that 
i want to store the data in all appended textboxes in single field in 
database,,


--
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/CAA6_Mp6UPLakoi-JhcgB4U89-iKfDwAaxDWwW547tFKyk_imrg%40mail.gmail.com 
.


--
This message has been scanned for viruses and
dangerous content by *MailScanner* , and is
believed to be clean.


--
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/f5251350-9b5b-a938-408f-124b590b5c37%40scom.ca.


Re: ?? question ,its urgent

2022-06-20 Thread Seelam Mahesh
Use quarey set

On Mon, 20 Jun, 2022, 12:17 pm Abhinandan K, 
wrote:

> how to store the data in django databse table if user append fields
> according to their need
> for example i have 1 one field 1) name 2) age 3) salary and the sign('+)
> if user click on + sign row append one plus in form..my question is that i
> want to store the data in all appended textboxes in single field in
> database,,
>
> --
> 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/CAA6_Mp6UPLakoi-JhcgB4U89-iKfDwAaxDWwW547tFKyk_imrg%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/CALM4eXRH-uOb-aQ7vW3aHoSkL5JumF5pvxK7SQfEuxswcGK0Og%40mail.gmail.com.


Re: ?? question ,its urgent

2022-06-20 Thread Wazed Khan
You could make the fields as not required like name = models.CharField(blank
=True) I could be wrong or Didn't get your question if I'm in one of them
ignore the suggestion.


On Mon, Jun 20, 2022 at 12:47 PM Abhinandan K 
wrote:

> how to store the data in django databse table if user append fields
> according to their need
> for example i have 1 one field 1) name 2) age 3) salary and the sign('+)
> if user click on + sign row append one plus in form..my question is that i
> want to store the data in all appended textboxes in single field in
> database,,
>
> --
> 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/CAA6_Mp6UPLakoi-JhcgB4U89-iKfDwAaxDWwW547tFKyk_imrg%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/CALWCTKhVqkXBJseb2XsSFyztqjmKxxCbH_tNYmY-LAQuwUMkVQ%40mail.gmail.com.


Re: i am facing problem with my project to update data in mysql using django

2022-06-20 Thread andrew snyder
can you conform that database user has permissions to update data in all 
three databases using a mysql client?


On Thursday, June 16, 2022 at 12:02:00 PM UTC-4 rafiurra...@gmail.com wrote:

> here is my problem description link in stackoverflow
> if anyone can help me, i will be gratefull
>
> linkproblem link 
> 

-- 
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/9b12fe2f-fcef-4103-94d9-fd18cd8b93c8n%40googlegroups.com.


missing field after makemigrations

2022-06-20 Thread andrew snyder
There is something in my models.py that breaks makemigrations.

The field "rank" is missing from "CharacterSkill".  Also, if I uncomment 
any of the three classes that refer to "Character" the "game" and "player" 
fields become separate items in the migrations file.

-- 
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/0de00b05-f1ba-4be8-92eb-1110cd6ba458n%40googlegroups.com.
from django.db import models
from django.urls import reverse
from django.contrib.auth.models import User

# Create your models here.
class Skill(models.Model):
name = models.CharField(max_length=200)
description = models.CharField(max_length=2000)
overcome = models.BooleanField(default=True)
advantage = models.BooleanField(default=True)
attack = models.BooleanField(default=False)
defend = models.BooleanField(default=False)

class Meta:
ordering = ['name']

def __str__(self):
return self.name

class Setting(models.Model):
name = models.CharField(max_length=200)
description = models.CharField(max_length=2000)

class Meta:
ordering = ['name']

def __str__(self):
return self.name

class SettingSkill(models.Model):
setting = models.ForeignKey(Setting, on_delete=models.CASCADE)
skill  = models.ManyToManyField(Skill)

def __str__(self):
associated = ", ".join(str(seg) for seg in self.skill.all())
return "{}: {}".format(self.setting, associated)

class Game(models.Model):
gm = models.ForeignKey(User, on_delete=models.CASCADE)
players  = models.ManyToManyField(User, related_name='player')
setting = models.ForeignKey(Setting, on_delete=models.CASCADE)
name = models.CharField(max_length=200)

def get_absolute_url(self):
return reverse('game-detail', kwargs={'pk': self.pk})

def __str__(self):
return "{}; a {} game".format(self.name, self.setting)


class Character(models.Model):
game = models.ForeignKey(Game, models.SET_NULL, blank=True, null=True)
player = models.ForeignKey(User, models.SET_NULL, blank=True, null=True)
name = models.CharField(max_length=200)
concept = models.CharField(max_length=200)

def get_absolute_url(self):
return reverse('character-detail', kwargs={'pk': self.pk})

def __str__(self):
return self.name

# class CharacterAspect(models.Model):
# description = models.CharField(max_length=2000)
# character = models.ForeignKey(Character, on_delete=models.CASCADE)

class CharacterSkill(models.Model):
character = models.ForeignKey(Character, on_delete=models.CASCADE)
skill = models.ForeignKey(Skill, on_delete=models.RESTRICT)
rank = models.SmallIntegerField

def __str__(self):
return self.skill.name

#class CharacterStunt(models.Model):
#character = models.ForeignKey(Character, on_delete=models.CASCADE)
#name = models.CharField(max_length=200)
#description = models.CharField(max_length=2000)
#skill  = models.ForeignKey(Skill, blank=True, null=True, on_delete=models.RESTRICT)
#
#class Meta:
#ordering = ['name']
#
#def __str__(self):
#return self.name
# Generated by Django 4.0.4 on 2022-06-20 10:37

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

initial = True

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]

operations = [
migrations.CreateModel(
name='Character',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200)),
('concept', models.CharField(max_length=200)),
],
),
migrations.CreateModel(
name='Setting',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200)),
('description', models.CharField(max_length=2000)),
],
options={
'ordering': ['name'],
},
),
migrations.CreateModel(
name='Skill',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200)),
('description', models.CharField(max_length=2000)),
('overcome', models.BooleanField(default=True)),
('advantage', models.BooleanField(default=True)),
('attack', model

Django could not parse the remainder

2022-06-20 Thread Koushik Romel
When trying to get a value from restapi in for loop to display it takes 
hyphen(-) as minus(-). And there is no way to change the api structure 
because it is fixed.
Im struck in this anyone help me..
The exact error and the expected json is given below is down below

when i try to print {{key}} the whole for loop data it displays like this
{'_id': ObjectId('xxx'), 'date': 'jun/20/2022', 'dst-active': 
'false', 'gmt-offset': '+05:30', 'time': '20:19:04', 
'time-zone-autodetect': 'true', 'time-zone-name': 'Asia/Kolkata'}

when i specify {{key.dst-active}} it throws this error
TemplateSyntaxError at /store/Could not parse the remainder: '-active' from 
'key.dst-active'

-- 
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/318de88a-3ad2-48f4-bdcd-c4a87ff70899n%40googlegroups.com.


Re: missing field after makemigrations

2022-06-20 Thread Moheb Mithani
Hi,
The reason why "rank" is missing is because you didn't use round brackets 
"(" ")". It should be "models.SmallIntegerField()" not 
"models.SmallIntegerField".

On Monday, June 20, 2022 at 7:12:58 PM UTC+5 a...@dancingjars.com wrote:

> There is something in my models.py that breaks makemigrations.
>
> The field "rank" is missing from "CharacterSkill".  Also, if I uncomment 
> any of the three classes that refer to "Character" the "game" and "player" 
> fields become separate items in the migrations file.
>

-- 
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/1d9cc0f0-1f8b-4c15-96c3-e4909b2e8b17n%40googlegroups.com.


Re: Join Django Africa Chat Group

2022-06-20 Thread Flavien HUGS
Hello,

Can I have the link to the WhatsApp group?

Le vendredi 17 juin 2022 à 16:31:12 UTC, joshuak...@gmail.com a écrit :

> Join Django Africa whatsapp chat and have instance interaction for your 
> questions
>
> Follow the link below.
> https://chat.whatsapp.com/IgJcwnZR9sr1Jatc5jnSx9
>

-- 
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/1af802bb-58ce-4639-ac7d-e8ead3322c65n%40googlegroups.com.


Re: missing field after makemigrations

2022-06-20 Thread andrew snyder
Thanks, that did the trick.  Should I make a feature request that django 
throw an error whenever a field type has no real type?

>>> type(models.SmallIntegerField())

>>> type(models.SmallIntegerField)


On Monday, June 20, 2022 at 10:53:37 AM UTC-4 moheb@gmail.com wrote:

> Hi,
> The reason why "rank" is missing is because you didn't use round brackets 
> "(" ")". It should be "models.SmallIntegerField()" not 
> "models.SmallIntegerField".
>
> On Monday, June 20, 2022 at 7:12:58 PM UTC+5 a...@dancingjars.com wrote:
>
>> There is something in my models.py that breaks makemigrations.
>>
>> The field "rank" is missing from "CharacterSkill".  Also, if I uncomment 
>> any of the three classes that refer to "Character" the "game" and "player" 
>> fields become separate items in the migrations file.
>>
>

-- 
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/95d842e9-534a-407a-b1c6-a632602c46aan%40googlegroups.com.


Re: Join Django Africa Chat Group

2022-06-20 Thread ronald munjoma
Hi

https://chat.whatsapp.com/IgJcwnZR9sr1Jatc5jnSx9


On Mon, 20 Jun 2022, 17:00 Flavien HUGS,  wrote:

> Hello,
>
> Can I have the link to the WhatsApp group?
>
> Le vendredi 17 juin 2022 à 16:31:12 UTC, joshuak...@gmail.com a écrit :
>
>> Join Django Africa whatsapp chat and have instance interaction for your
>> questions
>>
>> Follow the link below.
>> https://chat.whatsapp.com/IgJcwnZR9sr1Jatc5jnSx9
>>
> --
> 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/1af802bb-58ce-4639-ac7d-e8ead3322c65n%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/CAF76ju%2BEx5wzPg_Dvi9n9WHEzxfOyPkNZqZEKxQtQUjbeLKqyg%40mail.gmail.com.


Need some help

2022-06-20 Thread Rohit Lohar
I want to make a form were user will be asked to fill basic details and 
below that he will have a option to add food and the user can add how many 
of them he wants so just want to know how can I get the data from user and 
store it in database??

-- 
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/ddd270cd-d869-4ed7-bdf3-f319ff542d4an%40googlegroups.com.


Re: Need some help

2022-06-20 Thread 'Kasper Laudrup' via Django users

On 20/06/2022 18.39, Rohit Lohar wrote:
want to know how can I get the data from 
user and store it in database??




https://docs.djangoproject.com/en/4.0/intro/overview/

Kind regards,

Kasper Laudrup

--
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/1432de69-d1e5-0a7c-bca4-86e44f8ee9fb%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature