Re: django-admin error

2019-08-18 Thread DPM
Hi, Kindly do whatever some told to add in admin.py file above. Thats correct. After that u can see in admin panel .. And for heroku what error you are getting plz share screenshot. I can help you. On Mon, 19 Aug, 2019, 2:36 AM Gil Obradors, wrote: > 1.-Plese detail more : "But it not run" ?

Re: django-admin error

2019-08-18 Thread Gil Obradors
1.-Plese detail more : "But it not run" ? Any error? Admin screen withous the model? You can try doing with the same with decorator and class: from django.contrib import admin @admin.register(Pacientes) class PacientesAdmin(admin.ModelAdmin) pass Share errors, screen, behaveour... 2.- I

Re: django-admin error

2019-08-18 Thread Gabriel Araya Garcia
Hi Daniel: I have build a little app in Django, but i have two problems: 1) I can not see the tables in ADMIN, but nevertheless y put in admin.py: from .models import Pacientes admin.site.register(Pacientes) But it not run. 2) I can not upload my project to HEROKU, I've follow all the steps for

Re: AttributeError 'QuerySet' object has no attribute '_meta'

2019-08-18 Thread Kean Dumba
Ok thanks is there a way to call all objects, as this is more user friendly and efficient when potentially editing many object fields? On Sun, 18 Aug 2019 at 18:05, Daniel Roseman wrote: > You can't pass *all* the objects to the form. You have to get the specific > one you want to edit and pass

AttributeError 'QuerySet' object has no attribute '_meta'

2019-08-18 Thread Daniel Roseman
You can't pass *all* the objects to the form. You have to get the specific one you want to edit and pass that as the instance. -- 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,

AttributeError 'QuerySet' object has no attribute '_meta'

2019-08-18 Thread Kean
Hi, New to Django but trying to stick with it. I have created a model form, which creates ok. I am trying to edit records. I have the following, but keep getting the QuerySet object has no attribute '_meta' in the browser. my views.py def editbusiness(request): data =

Re: DeferredAttribute object in form

2019-08-18 Thread Kean
Hi Salimon, Thank you for the code and help. When I update to your code I get the following error in the browser Exception Type: AttributeError Exception Value: 'ModelFormOptions' object has no attribute 'concrete_fields' Im not sure why my models.py class

Re: django-admin error

2019-08-18 Thread Mituka Devlin Bwanausi
I recommend this: https://www.udemy.com/the-ultimate-beginners-guide-to-django-django-2-python-web-dev-website/ Django 2.2 & Python | The Ulitmate Web Development Bootcamp. Good lectures and easy to grasp as you will also get through a python refresher before you get right into Django. On

Re: django-admin error

2019-08-18 Thread Mituka Devlin Bwanausi
Type it all in one line.like this "*django-admin startproject mysite*" Your screen shot shows you trying to do things separately. On Saturday, August 17, 2019 at 10:33:43 PM UTC+2, Naty Mina wrote: > > hi, i'm new in django and trying to create my first project > i followed the

How to refresh part of a Django page with AJAX?

2019-08-18 Thread Xiaoyun Huang
I am deploying a website using Django. There is an application called 'forum', supporting a discussion forum on my website. The url of the discussion forum is 'XXX.com/forum/roomY'. I want to refresh a div id = ''chat'', which includes a message list, on this page when users click a refresh

Re: django-admin error

2019-08-18 Thread Arjun Reddy
> > Hi > I would like to start learning Django and can anyone suggest tutorial is best for beginners. -- 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@googlegroups.com

2019-08-18 Thread Mudasir Mian
guys im facing this error everything is working good unless i add carousel code copied from bootstrap4 site -- 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

error

2019-08-18 Thread Mudasir Mian
hey im facing this error can you please help me out from this everything is goes smoothly unless i add carousel code imoort from bootstrap4 [Mudasir Mian - Chat @ Spike](https://www.spikenow.com/?ref=spike-organic-signature&_ts=4etdn) [4etdn] -- You received this message because you are