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, <[email protected]> wrote: > 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 don't know heroku but maybe for test/demo your selfPC it could be > easy for starting... > Port forwarding and go! > > > > > Bests djangos > > Missatge de Gabriel Araya Garcia <[email protected]> del dia > dg., 18 d’ag. 2019 a les 21:41: > >> 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 >> to do this, but not run >> Do you know some cpanel to upload my app for demo only (it have 120 >> records) >> >> Please, can you help about this? >> >> Thanks >> (excusme my english, my native language is spanish) >> >> El sáb., 17 ago. 2019 a las 18:38, Daniel Agbaji (<[email protected]>) >> escribió: >> >>> Please check to see it you got install Django properly with the version >>> of Python you are using. >>> >>> On Sat, Aug 17, 2019, 4:38 PM Muhammad Nadeem <[email protected]> >>> wrote: >>> >>>> FIRST U NEED TO START A NEW PROJECT USING FOLLOWING CODE: >>>> django-admin startproject mysite >>>> WHERE "mysite" is the name of your project. you can change this name as >>>> you desired. >>>> >>>> >>>> if further u have any error fell free ping me >>>> >>>> >>>> On Sun, Aug 18, 2019 at 1:32 AM Naty Mina <[email protected]> wrote: >>>> >>>>> hi, i'm new in django and trying to create my first project >>>>> i followed the documentation and when i try to execute the >>>>> django-admin startproject mysite i get error that 'no django settings >>>>> specified' and to try 'django-admin.py help' instead for usage. >>>>> the problem is when i try to do so, i get again the same error message >>>>> i need help with that. >>>>> i attached file so you can see >>>>> *thank you* >>>>> >>>>> -- >>>>> 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 [email protected]. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/django-users/1690dca2-2728-452e-81fe-1458af63ba95%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/django-users/1690dca2-2728-452e-81fe-1458af63ba95%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> -- >>>> 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 [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/django-users/CALYW77hm8aK%2BNPpfPPexB10ikmQ7Y%2BzezZZULe5mDvgLyVYSSQ%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/django-users/CALYW77hm8aK%2BNPpfPPexB10ikmQ7Y%2BzezZZULe5mDvgLyVYSSQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >>> 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 [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/CAEnL_2nXTu13StMpfL8EQR6zwhZ6TmpW8RhHYoH69cc-9xWAog%40mail.gmail.com >>> <https://groups.google.com/d/msgid/django-users/CAEnL_2nXTu13StMpfL8EQR6zwhZ6TmpW8RhHYoH69cc-9xWAog%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> >> >> -- >> Gabriel Araya Garcia >> GMI - Desarrollo de Sistemas Informáticos >> 99.7721.15.70 >> >> -- >> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CAKVvSDAW0r1hJ7muJ0cEB9NhTwhWVq1O5yCMo1%3D7OsV04nGLtA%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAKVvSDAW0r1hJ7muJ0cEB9NhTwhWVq1O5yCMo1%3D7OsV04nGLtA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAK-JoTRhFtARycAprSZnOH77GnqUMGNNiArtrUpN__Qj1-%2Bjww%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAK-JoTRhFtARycAprSZnOH77GnqUMGNNiArtrUpN__Qj1-%2Bjww%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGHZBzyzoc_V%3DYKzvYMxO8QtNH8mZQWwKJujfgk%3D7vU8C%3DOrCw%40mail.gmail.com.

