Re: Add fields Django admin

2019-01-22 Thread RETAIL CYBER
has anyone ever install the django on a live web hosting service? if so when it comes to using db is the db virtual just like djangoEnv or do i use the mysql thats on my host? i have a vsp?? On Tue, Jan 22, 2019 at 6:17 PM 'Christian Hetmann' via Django users < django-users@googlegroups.com> wrote

Re: Add fields Django admin

2019-01-22 Thread 'Christian Hetmann' via Django users
Hi, If I understand you right, you need to import your model (iPhone) in the admin.py file of your WebApp. And then register „admin.site .register(iPhone)“ (without the quotes). Good luck, Christian > Am 22.01.2019 um 22:44 schrieb Alexandr Bulgakov : > > Hello All! > > I

Re: Add fields Django admin

2019-01-22 Thread Shashank Singh
Take those fields out as a foreign key and use that foreign key as inline in this admin. On Wed, 23 Jan, 2019, 4:14 AM Alexandr Bulgakov Hello All! > > I need help( > > > There is a class, it has 2 fields. I need to add an add button to display > these fields again when required. > models.py: > >

Add fields Django admin

2019-01-22 Thread Alexandr Bulgakov
Hello All! I need help( There is a class, it has 2 fields. I need to add an add button to display these fields again when required. models.py: class IPhone(models.Model): > iPhone_name = models.CharField(max_length=50) > iPhone_image = models.ImageField(upload_to='models', blank=True)