Re: Python manage.py runserver error

2020-08-25 Thread ROHINI PUNDE
Thank you so much, run properly on server. On Tue, Aug 25, 2020 at 8:22 PM RANGA BHARATH JINKA < bharathjink...@gmail.com> wrote: > Hi, > > Please create a virtual environment, activate it and install django > and other packages inside that environment. > All the best. > > On Wed, Aug

Re: Python manage.py runserver error

2020-08-25 Thread RANGA BHARATH JINKA
Hi, Please create a virtual environment, activate it and install django and other packages inside that environment. All the best. On Wed, Aug 26, 2020 at 8:28 AM ROHINI PUNDE wrote: > Hi, > while running "python manage.py runserver" I got this type of error ,I am > not understand how

Re: Python Django Tutorial for absolute beginners

2020-08-25 Thread Madhav Nandan
Dear Balaji, Recently I joined your session on google meet and it was nice to experience. I'm good at python, databases and backend technologies. Can I present a session on 'Using databases in python' to the fellow community? Regards, 9170459494 On Mon, Aug 24, 2020 at 10:42 PM Balaji Shetty

Python manage.py runserver error

2020-08-25 Thread ROHINI PUNDE
Hi, while running "python manage.py runserver" I got this type of error ,I am not understand how to to solve this problem.please help me out. find out on this attachment(error.png) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: two errors in Part 2 of tutorial

2020-08-25 Thread rbarh...@gmail.com
Well, think I got that worked out but I have this problem with timezone, and trying to set the time to current year... FieldError: Cannot resolve keyword 'pub_date_year' into field. Choices are: choice, id, pub_date, question_text This doesn't seem to work: # Get the question that was published

Re: two errors in Part 2 of tutorial

2020-08-25 Thread rbarh...@gmail.com
I think the first serious problem is the dash in the "return self.pub_date..." line. I don't understand at all and now I get a syntax error when I try to restart the shell... On Tuesday, August 25, 2020 at 3:18:23 PM UTC-7 rbarh...@gmail.com wrote: > Here is my code from working on Part 2 of

two errors in Part 2 of tutorial

2020-08-25 Thread rbarh...@gmail.com
Here is my code from working on Part 2 of the first Django app ~~~ from django.db import models from django.utils import timezone import datetime # Create your models here. class Question(models.Model): question_text = models.CharField(max_length=200) pub_date =

Re: two errors in part 2

2020-08-25 Thread Максим
Hi, use double underscore before startswith and year: In [9]: Question.objects.filter(question_text*__**startswith*='What') In [12]: Question.objects.get(pub_date*__**year*=current_year) 26.08.2020 00:40, rbarh...@gmail.com пишет: Towards the end of part 2, I have encountered two errors that

two errors late in Part 2

2020-08-25 Thread rbarh...@gmail.com
question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date_published') def __str__(self): return self.question_text def was_published_recently(self): return self.pub.date >= timezone.now() - ~~~ and here are the questions that invoked these errors: ~~~ In [9]:

two errors in part 2

2020-08-25 Thread rbarh...@gmail.com
Towards the end of part 2, I have encountered two errors that I cannot resolve. ~~~ In [14]: Question.objects.get(pub_date=current_year)

Re: def__str__(self) not working properly

2020-08-25 Thread Aginjith G J
0 Do this. def __repr__ (self): return self.title restart the shell/session. then check. i had this issue. only after restarting the section it worked On Sunday, 16 September 2018 at 17:14:18 UTC+5:30 Daniel Herrera wrote: > I was having

Looking For Internship

2020-08-25 Thread Anirudh choudhary
Hello Everyone I am Anirudh Malik BTech Mechatronics 4th Year Student. I am Currently Looking For an internship in Good Company as a remote intern or developer. I have attached my resume I have Worked With Technology like Django, React Js, Reach FrameWork, AJax, Electron js, HTML5, and css3

Re: best book for learning django

2020-08-25 Thread 1 9 5 9 0 Aman kumar
2scoops of django On Tue, 25 Aug 2020, 14:20 nAnDa KuMaR k, wrote: > hii friends > i need your help > "which is best book learn django" > please help me friends. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

RES: best book for learning django

2020-08-25 Thread Samuel Nogueira
Hi,A lot of people ask this question here. The best place to learn django is from the tutorials in the documentation. Books about tech often get outdated, so is not the best thing spend your money or time trying to look for a book. Link for the tutorials: https://docs.djangoproject.com/en/3.1/ 

Many to many field does not save in the main object

2020-08-25 Thread Annick Sakoua
Hi all, Please Help. I have been on this problem for 2 weeks now :( I have an object: customer that has 1 manytomany relationship with another object: gp. I created some gp instances in the admin page. When I select one gp in the select dropdown list of existing gp in my addcustomer form

Re: best book for learning django

2020-08-25 Thread Aayush Harwani
https://youtu.be/cRF7hIsIO10 This video will solve your problem , must watch. ayush On Tue, Aug 25, 2020, 2:20 PM nAnDa KuMaR k wrote: > hii friends > i need your help > "which is best book learn django" > please help me friends. > > -- > You received this message because you

Re: load static in css file

2020-08-25 Thread sapna Choudhary
The image which you want as background image has to be in static folder. On Tue 25 Aug, 2020, 5:45 AM MAMADOU KANTE, wrote: > I did load static at the top of the file {% load static %}. > Also I linked the CSS file named style.css. Part of the css file was > working perfectly. I only had issues

Re: why style.css is not read by my codes. i am using VScode for Django

2020-08-25 Thread Kenedi Novriansyah
test this STATIC_URL = "/static/" STATIC_ROOT = os.path.join(BASE_DIR, "static") url.py urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) On Tue, Aug 25, 2020 at 12:45 PM RANGA BHARATH JINKA < bharathjink...@gmail.com> wrote: > Hi, > >I think it is not able to

best book for learning django

2020-08-25 Thread nAnDa KuMaR k
hii friends i need your help "which is best book learn django" please help me friends. -- 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

Re: How to reset is_active field of auth_user

2020-08-25 Thread Mike Dewhirst
On Mon, Aug 24, 2020, 5:46 PM Kamakshi Aggarwal wrote: >   > Now if user leaves the company how should I set "is_active" field to > False. > There are two ways to do it. One is to write a view which lets someone in HR turn it off. The other is to use Django Admin with the correct privileges and