Friday, January 21, 2022

RE: Models

Not safely. You would need to script everything behind the scenes - including migration.

A safer approach might be to use a generic table which contains the necessary meta information (char, int etc) as data alongside the actual data in each row. 

I would also consider booking sessions with a psychiatrist because that way madness lies!

Maybe think about MongoDB although I have read somewhere that PostgreSQL has all you need if you are thinking about Mongo.

Good luck

--
(Unsigned mail from my phone)



-------- Original message --------
From: Prashanth Patelc <prashanthpatelc@gmail.com>
Date: 22/1/22 04:59 (GMT+10:00)
To: Django users <django-users@googlegroups.com>
Subject: Models

Dear Django users,

I need some information regarding Django models, I would  like to  know is there any way to 
create Django models through frontend or can we create models by super admin. Kindly share any tutorials or any examples available.

Example:
we are create models in django
like below  fields 
===================
class modelname(models.Model):
       id = models.PrimeryKey(auto_now_add=true)
       name =models.CharField()
       salary =models.DecimalField()

But my concern is create model name and fields like in html or super admin can do

===================
=> he will enter values in variables  with appropriate field type.
 for  eg., "name char  type", "Salary decimal field" and so on..
=>When the user enter data into application it should directly store in database in the form of tables and rows..

Regards;
Prashanth
email : prashanthpatelc@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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f065b2d2-6f1b-4a06-8302-e0ca5014ed2cn%40googlegroups.com.

No comments:

Post a Comment