Page not found error

2021-01-15 Thread Charapalli Tharun NIQIJGURDN
I am a newbie to django and I have been stuck here from the past two days please help me Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order: 1. polls/ 2. admin/ The empty path didn't match any of these. *Views.py* from django.shortcuts import

Re: django search page not found error

2020-03-26 Thread omid jahadi
t;> On Wed, 25 Mar 2020, 2:02 am omid jahadi, wrote: >>> >>>> Hello everybody! I want to search in a ManyToManyField in the >>>> DetailView. It works fine if a user with the same query exist, but if >>>> there >>>> isn't a user, i

Re: django search page not found error

2020-03-25 Thread Motaz Hejaze
dd null=True to manytomany field >> >> >> On Wed, 25 Mar 2020, 2:02 am omid jahadi, wrote: >> >>> Hello everybody! I want to search in a ManyToManyField in the >>> DetailView. It works fine if a user with the same query exist, but if there >>>

Re: django search page not found error

2020-03-25 Thread omid jahadi
yField in the >> DetailView. It works fine if a user with the same query exist, but if there >> isn't a user, i get page not found error. >> >> models.py: >> >> class agents(models.Model): >> agent_type = models.ForeignKey(types, on_d

Re: django search page not found error

2020-03-24 Thread Motaz Hejaze
Add null=True to manytomany field On Wed, 25 Mar 2020, 2:02 am omid jahadi, wrote: > Hello everybody! I want to search in a ManyToManyField in the DetailView. > It works fine if a user with the same query exist, but if there isn't a > user, i get page not found error. > >

django search page not found error

2020-03-24 Thread omid jahadi
Hello everybody! I want to search in a ManyToManyField in the DetailView. It works fine if a user with the same query exist, but if there isn't a user, i get page not found error. models.py: class agents(models.Model): agent_type = models.ForeignKey(types, on_delete=models.SET_NULL,

Re: Admin page not found error

2013-01-03 Thread eculver
Hi, I have ran into this a few times and it's not exactly obvious what's going on. In short, the last line of the exception: return getpass.getuser().decode(locale.getdefaultlocale()[1]) is somewhat of a hint, if you can even call it that. Try setting $LANG in your shell environment. For exam

Re: Admin page not found error

2012-12-29 Thread Shahjalal Hossain
Hi, I have done what you said, delete sqlite.db, re-write absolute path, and run sync db. Now, it is showing following error. Is it possible, I have done something wrong in my Django installation? Do I need to reinstall Django, again? How can I check my django installation was ok? Is there any

Re: Admin page not found error

2012-12-29 Thread Ryan Blunden
I added a record to the django_site table (which Django on the first syncdb run for the Sites app) and then I could view the admin fine. So you can either try this or just delete the sqlite.db file and run syncdb again which will also fix the problem. Also, you don't need to specify the databas

Re: Admin page not found error

2012-12-29 Thread Shahjalal Hossain
On Friday, December 28, 2012 9:29:50 AM UTC+1, Shahjalal Hossain wrote: > > > > > >

Re: Admin page not found error

2012-12-28 Thread Ryan Blunden
It appears that the problem is to do with the Sites app. Have you ran `python manage.py syncdb`? If the sites app is in the INSTALLED_APPS tuple, this takes care of creating a site for you that has an id of 1 which is what will match the default SITE_ID value in your settings.py Things to try:

Admin page not found error

2012-12-28 Thread Shahjalal Hossain