admin page not found!!

2018-12-03 Thread Saeed Pooladzadeh
Hello Here comes my url page code from django.contrib import admin from django.urls import path urlpatterns = [ path('admin/', admin.site.urls), #url(r'^polls/', include('polls.urls')), ] When I run the the code and want to go to admin page I see this message: Page not found! Usin

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

Re: Admin "Page Not Found" Part 2

2006-06-14 Thread James Bennett
On 6/14/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > This is entirely expected. Model inheritance does not work at the moment > (you end up with the wrong manager for the derived class, if you care > about the details). It is being worked on. Look through the list > archives if you want mor

Re: Admin "Page Not Found" Part 2

2006-06-14 Thread Malcolm Tredinnick
On Thu, 2006-06-15 at 02:52 +, Bo Shi wrote: > This is a continuation of the following thread: > > http://groups.google.com/group/django-users/browse_thread/thread/13a94a5ac9b5ff8a/f6fbcdd419ddf89e?q=page+not+found&rnum=1#f6fbcdd419ddf89e > > I'm experiencing the same problem; I've fiddled w

Admin "Page Not Found" Part 2

2006-06-14 Thread Bo Shi
This is a continuation of the following thread: http://groups.google.com/group/django-users/browse_thread/thread/13a94a5ac9b5ff8a/f6fbcdd419ddf89e?q=page+not+found&rnum=1#f6fbcdd419ddf89e I'm experiencing the same problem; I've fiddled with permissions (superuser/explicitly setting all permissio

admin "page not found" after m-r migration

2006-05-29 Thread frank h.
Hello, I recently migrated to trunk and all seems great except that I cannot change the admin user when logged in as admin user... the error message in the browser is: Page not found (404) Request Method: GET Request URL:http://127.0.0.1:8000/admin/auth/user/1/ can anyone shed some l

Re: Admin "Page not found"

2006-05-06 Thread Adrian Holovaty
On 5/5/06, Cornel Nitu <[EMAIL PROTECTED]> wrote: > When I add an instance of the Item class in the Admin interface, > everything works correctly and I see all the properties in the Item's > add form. After adding an Item object, the values are inserted in the > database. But, when I'm trying to e

Admin "Page not found"

2006-05-05 Thread Cornel Nitu
Hi, In the django svn version, I've created the following model: """ from django.db import models class BaseItem(models.Model): name = models.CharField(maxlength=200) class Item(BaseItem): phone = models.CharField(maxlength=200) class Admin: list_display = ('name', 'phone')