Re: Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-12 Thread Khaleel Ahmed H. M. Shariff
Hi, May Peace, Blessings & Mercy of Almighty God be on you! I suggest you share the screen shot of the error. It would be more useful if code comes with the errors. Thanks in advance. God Bless You! God Bless India!! -- Love & Regards Dr. Khaleel Ahmed H. M. Managing Director, Tanzanite Realty

Re: Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-12 Thread Omkar Parab
Atom, sublime never show this error. On Mon, Jan 13, 2020, 10:09 AM Jorge Gimeno wrote: > Hmm. Not doing that on mine. It is correct that __str__() is defined in > models.Model, which your models inherit from. I don't know why it would be > considered an error. > > -Jorge > > On Sun, Jan 12, 2

Re: How to load an instance in class based views using form_valid

2020-01-12 Thread Integr@te System
Hi Sam, How about your app namespace definition and url you defined, bc of using reverse(). Plz take a look in link for more info: https://docs.djangoproject.com/en/3.0/topics/http/urls/#topics-http-reversing-url-namespaces On Mon, Jan 13, 2020, 03:35 Sam Hefer wrote: > 0 > > I'm trying to

Re: Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-12 Thread Jorge Gimeno
Hmm. Not doing that on mine. It is correct that __str__() is defined in models.Model, which your models inherit from. I don't know why it would be considered an error. -Jorge On Sun, Jan 12, 2020 at 1:56 PM Julius Lange wrote: > Dear people, > > currently doing the django tutorial! Really en

Re: Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-12 Thread Omkar Parab
__str__() represent string in a readable format. If you removed __str__() it will show you object 1, object 2 in admin panel. On Mon, Jan 13, 2020, 3:25 AM Julius Lange wrote: > Dear people, > > currently doing the django tutorial! Really enjoy it so far. > > I am using PyCharm, Django version

Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-12 Thread Julius Lange
Dear people, currently doing the django tutorial! Really enjoy it so far. I am using PyCharm, Django version 3.0.2, Python version 3.7.1. In part 2 of the tutorial it comes to a point i need to insert a __str__ function. I add it like s

How to load an instance in class based views using form_valid

2020-01-12 Thread Sam Hefer
0 I'm trying to build a form that automatically fills some fields in a class based create view that lets logged in users create a Job. However, I can't seem to find the correct way of doing this for fields that aren't the user (eg. request.user). So the create view is trying to get a company_n

Re: Facebook Like app with Django

2020-01-12 Thread Sky Luv
Thank you Motaz! 2020年1月11日土曜日 14時05分02秒 UTC Motaz Hejaze: > > Ofcourse you can make use of many packages .. > > Djangorestframework > Allauth > > As a start .. > > On Sat, 11 Jan 2020, 3:14 pm Sky Luv, > > wrote: > >> Hi, >> >> I am creating a social app something like facebook with Django. >>

Re: bugs for beginners

2020-01-12 Thread Chetan Ganji
https://www.freecodecamp.org/news/the-10-most-popular-coding-challenge-websites-of-2016-fb8a5672d22f/ On Sun, Jan 12, 2020, 9:33 PM aakansha jain wrote: > Can someone suggest me the bugs that can be worked upon by beginners? > > -- > You received this message because you are subscribed to the Go

bugs for beginners

2020-01-12 Thread aakansha jain
Can someone suggest me the bugs that can be worked upon by 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+unsubscr...@googlegroups.com.

Re: Django -adiminstration page is not opening

2020-01-12 Thread Alfredo Silveira
Probably you use Django 3 , you must upgrade your python version to 3.8 This error is very common here Sent from my iPhone > On 12 Jan 2020, at 10:27, Aniket Jain wrote: > >  > It might have an issue with the redirecting of the URL > >> On Sun, 12 Jan, 2020, 6:54 PM Rishabh Rai, >> wrote:

Re: Django -adiminstration page is not opening

2020-01-12 Thread Aniket Jain
It might have an issue with the redirecting of the URL On Sun, 12 Jan, 2020, 6:54 PM Rishabh Rai, wrote: > When i try to access my admin panel after entering username and password > correctly, instead of taking to next page it shows me fail to load.can any > one have any suggestions?? > > -- > Y

Django -adiminstration page is not opening

2020-01-12 Thread Rishabh Rai
When i try to access my admin panel after entering username and password correctly, instead of taking to next page it shows me fail to load.can any one have any suggestions?? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Problem in fetching the name from database

2020-01-12 Thread Aadarsh Bajpai
Hello , I am facing problem in fetching the name from database such that whenever i try to fetch the column from the database it comes in the form of tuple as output(Ex. ( 'Aadarsh','Bajpai',) it is also shown in the screenshot . Since this looks worst in the representatio

Re: specefic field(s) for each query.

2020-01-12 Thread ACG
El sábado, 11 de enero de 2020, 18:38:44 (UTC+1), Mohsen Pahlevanzadeh escribió: > > Hello everybody, > > I can write django code for "select * from mytables;", but I can't > specefic fields such as "select field(s) from my table;" > > Please help me.. > Hi, first you may connect, is ex

Re: contrib.sites readonly question

2020-01-12 Thread Mike Dewhirst
DakshThank you for that. Unfortunately contrib.sites doesn't behave like other apps that I have built or seen. The real problem (I think) is that contrib.sites has its own admin.py and somehow I need to influence that. If I could override contrib.sites.admin my problem would evaporate.For exampl