XYZModel matching query does not exist

2020-09-15 Thread Jatin Agrawal
with this problem last few hours. Any help or suggestions would be appreciated. Thanks Jatin Agrawal -- 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

Re: RUNSERVER SERIOUS PROBLEM! Please help me pls

2020-08-04 Thread Jatin Agrawal
It seems like your directoy structure is not proper after you moved some files/folders. So, if you can send the screenshot of your directory structure, it might be helpful for others to help you. On Tuesday, August 4, 2020 at 10:12:32 AM UTC+5:30, Phan Nguyen wrote: > > *So I was be able to

Re: User.objects.all() only returns username

2020-07-03 Thread Jatin Agrawal
When we do, User.objects.all(), it returns a queryset which will show you all the objects that are present in the database for the model. So, when you print that queryset, it just displays the username of the user. This is also because the def __str__ method of the User model must be returning

Re: how to fetch data into a template (table)

2020-06-22 Thread Jatin Agrawal
Where do you want to display the data? in HTML template? On Saturday, June 20, 2020 at 9:11:57 PM UTC+5:30, Faith Mwai wrote: > > Am having a challenge of displaying data into my template table, the > function is; > > def customers(request): > if request.method == 'POST': > accountno

Re: Retrieve Data in DataBaeses

2020-06-22 Thread Jatin Agrawal
First, you need to understand the basics of Django. Follow this tutorial to get the basics, make sure you watch every video and practice what's taught in it. link: https://www.codingforentrepreneurs.com/projects/try-django-111 On Sunday, June 21, 2020 at 12:43:04 AM UTC+5:30, waqar khan wrote:

Re: help

2020-06-22 Thread Jatin Agrawal
Are you using postgres? On Monday, June 22, 2020 at 8:34:55 PM UTC+5:30, Peter Kirieny wrote: > > can someone help with this please > > django.db.utils.OperationalError: FATAL: password authentication failed > for user "Admin" > -- You received this message because you are subscribed to the

Re: ./manage makemigrations and ./manage migrate don't work

2020-06-20 Thread Jatin Agrawal
The reason for this is, in class Meta, you have set, managed=False. That's causing the issue. When you set managed=False, then there is no table creation happens for that model when you run migrate command after make migrations. So, if you want a table to be created for that model, just

Re: Django Testing

2020-04-10 Thread Jatin Agrawal
The main reason behind learning about Testing is to check if the views that we have written for, are generating the expected results or not. Suppose you are writing an APIView to get a list of something, then you should write a testcase to check whether that APIView is giving you the result

Re: In pycharm errror

2020-04-10 Thread Jatin Agrawal
Can you please post an image of your directory structure? Maybe then I or someone else can help you in a better way. On Thursday, April 9, 2020 at 7:55:20 PM UTC+5:30, tejasri mamidi wrote: > > While executing py manage.py runserver .. > Terminal showing this file will not found why.. -- You

Re: VIRTUAL ENVIRONMENT

2020-04-10 Thread Jatin Agrawal
It's a good development practice to work on a virtual environment. Virtual environments are completely different from each, they are just sharing the common pc, else they are totally different. The main use of virtual environments is to prevent projects from using the same versions of packages

Re: cant import views

2020-03-17 Thread Jatin Agrawal
can you please share your project directory structure. On Tuesday, March 17, 2020 at 11:33:10 PM UTC+5:30, דביר חומרי wrote: > > i was following the toturial and i could'nt find why this error is accure. > polls/urls.py' > > from django.urls import path > > from . import views > > urlpatterns = [

Re: installation of django

2020-02-11 Thread Jatin Agrawal
https://www.codingforentrepreneurs.com/blog/install-python-django-on-windows visit thig website and try to follow the instructions given on it. On Tuesday, February 11, 2020 at 9:44:28 PM UTC+5:30, paarull shukla wrote: > > heloo guys i m not able to install django please help me it .i m facing

Re: installation of django

2020-02-11 Thread Jatin Agrawal
you must first create a virtual environment and activate it and then install django in that virtual environment. search for how to create a virtual environment for django projects on the internet. On Tuesday, February 11, 2020 at 9:44:28 PM UTC+5:30, paarull shukla wrote: > > heloo guys i m not

Re: installation of django

2020-02-11 Thread Jatin Agrawal
you can install some different version of django also instead of 3.0 On Tue, Feb 11, 2020 at 9:53 PM Jatin Agrawal wrote: > read the django documentation for installing it. > > https://docs.djangoproject.com/en/3.0/topics/install/ > > On Tue, Feb 11, 2020 at 9:51 PM

Re: installation of django

2020-02-11 Thread Jatin Agrawal
read the django documentation for installing it. https://docs.djangoproject.com/en/3.0/topics/install/ On Tue, Feb 11, 2020 at 9:51 PM paarull shukla wrote: > No. Not an error but getting collecting django. After that installation > didn't start > > On Tue, 11 Feb, 2020, 9:49 PM Irfan Khan,

Re: installation of django

2020-02-11 Thread Jatin Agrawal
you must first create a virtual environment and activate it and then install django in that virtual environment. search for how to create a virtual environment for django projects on the internet. On Tue, Feb 11, 2020 at 9:43 PM paarull shukla wrote: > heloo guys i m not able to install django