Re: dynamic django tables

2023-05-21 Thread Sebastian Jung
Hello, I take everytime a EAV implementation for this task. Hete a manual: https://django-eav2.readthedocs.io/en/latest/ I hope this helps you Helly Modi schrieb am Fr., 19. Mai 2023, 14:59: > How to create dynamic models in django rest framework? > > Is there any chance to create dynamic mode

Re: dynamic django tables

2023-05-21 Thread Brian Gitau
Try this i am not so sure though but trying isn't bad...kindly give me the feedback after trying from django.apps import apps from django.db import connection, models from rest_framework.response import Response from rest_framework.views import APIView FIELD_TYPE_MAPPING = { 'char': models.C

Re: dynamic django tables

2023-05-21 Thread Helly Modi
This is my code and it worked in creating tables but here django provides 26 fields and many relation how can i include all ? If else become too complex .Is there any other way to do this On Mon, May 22, 2023 at 10:49 AM Helly Modi wrote: > class CreateTableAPIView(APIView): > def post(self,

Re: dynamic django tables

2023-05-21 Thread Helly Modi
class CreateTableAPIView(APIView): def post(self, request): serializer = CreateTableSerializer(data=request.data) serializer.is_valid(raise_exception=True) table_name = serializer.validated_data['table_name'] fields = serializer.validated_data['fields']

Re: Unable to write to database

2023-05-21 Thread Michael Edet
Did you install django??? And said you put py manage.py runserver On Sun, 21 May 2023, 18:55 William Nash (Bill), wrote: > I'm new to django and I'm trying to learn as I program a small website for > my scuba diving business. I'm running into a error that when I try to add > a diver the datab

Re: Django Translation won't work

2023-05-21 Thread Sebastian Jung
I have delete complete django.po file and make new one and only make a translation for Gender to Geschlecht and same thing happens that in Englisch Language and in German Language both show Geschlecht... Am So., 21. Mai 2023 um 20:36 Uhr schrieb sebasti...@gmail.com < sebastian.ju...@gmail.com>:

Django Translation won't work

2023-05-21 Thread sebasti...@gmail.com
I use django translation. Normal works perfect but now i have a problem. All verbose name are in english in django code. I setting.py i have as second language DE configure. Then i have in models.py: condition_link = models.ForeignKey(related, null=True, blank=True, default=None, on_delete=mode

Re: Unable to write to database

2023-05-21 Thread William Nash (Bill)
I do not see any error messages. On Sunday, May 21, 2023 at 12:56:45 PM UTC-5 Abdulrahman Abbas wrote: > Send your error message > > On Sun, May 21, 2023, 18:54 William Nash (Bill) wrote: > >> I'm new to django and I'm trying to learn as I program a small website >> for my scuba diving busin

Re: Unable to write to database

2023-05-21 Thread Abdulrahman Abbas
Send your error message On Sun, May 21, 2023, 18:54 William Nash (Bill) wrote: > I'm new to django and I'm trying to learn as I program a small website for > my scuba diving business. I'm running into a error that when I try to add > a diver the database does not update. When I goto > http://

Unable to write to database

2023-05-21 Thread William Nash (Bill)
I'm new to django and I'm trying to learn as I program a small website for my scuba diving business. I'm running into a error that when I try to add a diver the database does not update. When I goto http://localhost:8000/add_diver/add_diver/ I'm able to add a diver. My code is located at:

Multiuser Login and Registration required

2023-05-21 Thread chen...@gmail.com
I need a tutorial from scratch on how new Users can register and login having different forms for HOD, Staff and Student. I need tutorial on Multiusers Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: I new to Django

2023-05-21 Thread 'Kasper Laudrup' via Django users
On 21/05/2023 16.26, khaled alshadbi wrote: Hello friends please help me to start from scratch... I want to build sales program using Python and Django https://docs.djangoproject.com/en/4.2/intro/ Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the G

I new to Django

2023-05-21 Thread khaled alshadbi
Hello friends please help me to start from scratch... I want to build sales program using Python and Django -- 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 djan