Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » cannot login to admin site with superuser [RSS Feed]

#1 Dec. 31, 2010 16:38:59

x.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

cannot login to admin site with superuser


Hi,

It seems that for some reason I can't login to admin site or my
webpage using the admin user. I even created a new superuser with
manage.py createsuperuser using plain numbers as my password ('123').
So it is not a password issue.

However when I try to django-admin validate I get an import error like
this:

Error: Could not import settings 'myproject.settings' (Is it on
sys.path? Does it have syntax errors?): No module named
myproject.settings

c:\workspace\myproject is on my sys.path. I also did a
sys.path.append() c:\workspace but I still get the same error.

I also tried this:http://coderseye.com/2007/howto-reset-the-admin-password-in-django.htmlbut still I can't login.

Admin user cannot login to the myproject web page. Other users can. I
use a postgresql database. I used to have a mysql db but I switched to
postgresql. Don't know if that matters.

I also use django 1.2.1 on windows 7.

Any help would be appreciated. I have tried hard and now I am
completely lost.

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Jan. 4, 2011 09:15:32

x.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

cannot login to admin site with superuser


is there any hope for me?

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Jan. 4, 2011 17:06:26

Shawn M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

cannot login to admin site with superuser


On Jan 4, 2011, at 4:15 AM, xpanta wrote:

> is there any hope for me?

Does your settings.py file do any imports? If there is a problem with an import
you'll have a major disaster and the cause may not be obvious from the error
message.

Shawn

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#4 Jan. 4, 2011 19:15:45

x.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

cannot login to admin site with superuser


Thanks,

These are my only imports:

import os.path
import logging

And this is my INSTALLED_APPS section

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'myproject.main',
)


On 4 Ιαν, 19:06, Shawn Milochik <sh...@milochik.com> wrote:
> On Jan 4, 2011, at 4:15 AM, xpanta wrote:
>
> > is there any hope for me?
>
> Does your settings.py file do any imports? If there is a problem with an
> import you'll have a major disaster and the cause may not be obvious from the
> error message.
>
> Shawn

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#5 Jan. 4, 2011 20:06:58

Shawn M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

cannot login to admin site with superuser


What happens when you try 'manage.py shell'?

Shawn

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#6 Jan. 5, 2011 03:53:56

x.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

cannot login to admin site with superuser


python manage.py shell works normally. It gives me the interactive
console


On 4 Ιαν, 22:05, Shawn Milochik <sh...@milochik.com> wrote:
> What happens when you try 'manage.py shell'?
>
> Shawn

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » cannot login to admin site with superuser [RSS Feed]

Board footer

Moderator control

Enjoy the 23rd of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support