Re: Assistance for deploying django app to heroku

2021-04-23 Thread Mohammad Anarul
kindly shere your code On Fri, Apr 23, 2021 at 5:56 PM ejike@gmail.com wrote: > Good day All, > > I am trying to deploy my django app to heroku but i keep getting this > error in the screenshot attached. > > Please can anyone assist in me in finding a solution to this and where the >

Re: Using Python Libraries in Django

2021-04-23 Thread felipe herrera
Great video. Thank you Sr. ! El jueves, 22 de abril de 2021 a la(s) 19:05:50 UTC-5, Gerardo Palazuelos escribió: > Have a look at the following video. It might help with your first question. > https://youtu.be/04L0BbAcCpQ > > Regards, > > -- > Gerardo Palazuelos Guerrero > > > > On Thu, Apr

Re: Assistance for deploying django app to heroku

2021-04-23 Thread Ejike Enyinnaya
Hi Guys, This is the error I am getting: (first_django_app) ➜ first_django_app git:(master) heroku run python manage.py loaddata books/fixtures.json Running python manage.py loaddata books/fixtures.json on ⬢ gotbooksapp... up, run.6617 (Free) Traceback (most recent call last): File

Re: Assistance for deploying django app to heroku

2021-04-23 Thread Irfan Khan
check this one try to run the console $ python manage.py sqlsequencereset your_app_name it will give you the psql queries. run those queries on PSQL console and then try to run loaddata. check below link

Re: Assistance for deploying django app to heroku

2021-04-23 Thread Sujayeendra G
Please explain all your steps clearly. How are you creating fixture.json, Are you taking all data dump or only book model dump ?? On Sat, 24 Apr 2021 at 00:12, Ejike Enyinnaya wrote: > Hi Guys, > > This is the error I am getting: > > (first_django_app) ➜ first_django_app git:(master) heroku

Re: Assistance for deploying django app to heroku

2021-04-23 Thread Kasper Laudrup
On 23/04/2021 20.41, Ejike Enyinnaya wrote: > I did a git add ., git commit -m and git push heroku master Not sure if it's related, but it's possible: This is not how you should use revision control (git). You should keep your source files under revision control, not just blindly add everything

Re: Assistance for deploying django app to heroku

2021-04-23 Thread Sujayeendra G
Hi, You can see IntegrityError: fixtures you are updating trying to find user with user_id=1 which are not available in your db. Try to create one user and migrate again. Or if the App is still in the development stage. Delete DB and migrate again. It may work. Thank you Regards Sujay On Fri,

_set.all in a template with no results

2021-04-23 Thread Walter Randazzo
Hi there, I am trying to list in a template a bunch of fields of the model (PagosDetail) that is related to another one (PagosHead) via numero_pago field. I am able to list the PagosHead items in the template but when I use the " _set.all" in order to get those fields from PagosDetail i've

Oracle database sequences generated by Django

2021-04-23 Thread Harold A
Hello everyone. I have a web application built in Django == 1.11.6, when the migrations were generated in oracle the sequences are created and they can be modified and even deleted. When I update to django 3 and I generate the migrations again, it creates the sequences with a name similar to

Re: _set.all in a template with no results

2021-04-23 Thread Walter Randazzo
Dudes, I received online help. In the template there was a mistype error: {% for pagosdet in pagos.pagosdetail_set.all %} => * {% for pagosdet in pago.pagosdetail_set.all %} ( Without 's')* Thanks for reading, El vie, 23 abr 2021 a las 17:37, Walter Randazzo () escribió: > Hi there, I

Re: Using Python Libraries in Django

2021-04-23 Thread Gabriel Araya Garcia
Felipe: Mandame una muestra del archivo el cual usaría esta pequeña aplicación de consulta, puede ser una tabla con los datos ya procesados (tú dices que con pandas está sumando correctamente) ahora lo que necesitas es la aplicación para que los demás funcionarios puedan ver los resultados

Re: how to get only the 'title' attribute value from following data in django

2021-04-23 Thread Derek
I'd use: querye = Product.objects.filter(id=sell_id).values('title') title = querye[0]['title'] # get the title for the first Product But if you're sure there is one (and only one) product matching the 'sell_id', you can use: querye = Product.objects.get(id=sell_id) title = querye.title HTH

Re: [EXTERNAL]Re: #Beginnerlevel Form sending get instead of post request

2021-04-23 Thread Agoua David
I think it's because tour submit button IS not in the form Le ven. 23 avr. 2021 à 01:58, Chaitanya Sakoji a écrit : > Thanks Kasper for your reply. > > -Original Message- > From: django-users@googlegroups.com On > Behalf Of Kasper Laudrup > Sent: 23 April 2021 01:17 > To:

Re: Using Python Libraries in Django

2021-04-23 Thread Agoua David
Yes it's possible to use other python library, and for second question i think it's better to encapsulate tour code in a class toi create a service and call it in your views. This a clean way and like this your Can call it in a thread if you want to savez Time. Le ven. 23 avr. 2021 à 00:05,

Re: Deploying my Django App to Heroku

2021-04-23 Thread Nzekwe Isaac
I think there's a problem with your database. Try deleting your dbsqlite database and run migrations a again. On Fri, 23 Apr 2021, 12:50 Ejike Enyinnaya, wrote: > Good day Isaac, > > I ran makemigrations and migrate before deploy as seen in my screenshots > but I am still having the same

RE: [EXTERNAL]Re: #Beginnerlevel Form sending get instead of post request

2021-04-23 Thread Chaitanya Sakoji
Thank Agoua. It worked after update. From: django-users@googlegroups.com On Behalf Of Agoua David Sent: 23 April 2021 13:08 To: django-users@googlegroups.com Subject: Re: [EXTERNAL]Re: #Beginnerlevel Form sending get instead of post request I think it's because tour submit button IS not in

Re: Testing Django User Login Form

2021-04-23 Thread lone...@gmail.com
Thank you for the reply! I will totally try this tonight! On Thursday, April 22, 2021 at 7:31:40 PM UTC-4 David Nugent wrote: > Try creating a request using RequestFactory and use that to input the > credentials. I don't think the way you are creating the form is valid. > > rf =

Re: Deploying my Django App to Heroku

2021-04-23 Thread Ayser shuhaib
Make sure you create the user objects in the database before loading the books data On Fri, 23 Apr 2021 at 14:02, Nzekwe Isaac wrote: > I think there's a problem with your database. Try deleting your dbsqlite > database and run migrations a again. > > On Fri, 23 Apr 2021, 12:50 Ejike Enyinnaya,