#22181 closed Uncategorized (invalid)

Trouble with Django on production server.

Reported by: omaace@… Owned by: nobody
Component: Uncategorized Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hello people, I'm having an issue in/with Django, which is on a shared hosting, and I'm using virtualenv and fastcgi. (<- saying this, just in case it helps in something)

I'm getting
"OperationalError at /admin/
no such table: auth_user"
after entering my credentials (username & pw) set when asked after running the syncdb.
Yes, I created a project (django-admin.py startproject the_project), then ran python manage.py syncdb.
So it's supposed (which it says it does) to create the tables for the admin, but still, I'm getting that error when going to the admin through mydomain.com/admin.

I'm a first-timer hosting a django app, so, what else I'm supposed to know, to do? 

When I put Debug to False (DEBUG = False) inside the settings.py file and my email in the ADMINS tuple (inside settings.py), and then try to access thedomainIwontsay .com, I get "Unhandled Exception An unhandled exception was thrown by the application.", and then I do get this error message to my email.
Which is (I'm posting it, to see if someone can tell me what's going on.):

'HTTP_CONNECTION': 'close',
'HTTP_COOKIE': 'csrftoken=Ds5T9Lx4JLgO9m6vCu0EEeLX4tVHr7dH',
'HTTP_HOST': 'thisisnottherealdomain .com',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36',
'HTTP_X_FORWARDED_FOR': '##.###.###.###',
'HTTP_X_REAL_IP': '##.###.###.###',
'PATH': '/sbin:/usr/sbin:/bin:/usr/bin',
'PATH_INFO': u'/',
'PATH_TRANSLATED': 'redirect:/dispatch.fcgi/',
'QUERY_STRING': ,
'REDIRECT_STATUS': '200',
'REDIRECT_UNIQUE_ID': 'UxJiK0Fj7YUAAE6ava0AAAAN',
'REDIRECT_URL': '/',
'REMOTE_ADDR': '##.###.###.###',
'REMOTE_PORT': '39403',
'REQUEST_METHOD': 'GET',
'REQUEST_URI': '/',
'SCRIPT_FILENAME': '/home/somename/public_html/dispatch.fcgi',
'SCRIPT_NAME': u
,
'SERVER_ADDR': '###.##.##.###',
'SERVER_ADMIN': 'webmaster @ thisisnottherealdomain .com',
'SERVER_NAME': 'thisisnottherealdomain .com',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SIGNATURE': ,
'SERVER_SOFTWARE': 'Apache',
'UNIQUE_ID': 'UxJiK0Fj7YUAAE6ava0AAAAN',
'wsgi.errors': <flup.server.fcgi_base.OutputStream object at 0x7f0b2868bf50>,
'wsgi.input': <flup.server.fcgi_base.InputStream object at 0x7f0b2868bf90>,
'wsgi.multiprocess': False,
'wsgi.multithread': True,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>

Change History (1)

comment:1 Changed 12 months ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

In this case, it looks like your database hasn't been created correctly. Without knowing more details about your shared hosting, it's difficult to say what's going on.

However, this isn't the right place to discuss your problem. Django's Trac system isn't a support channel - it's for tracking known bugs in Django. Try posting your question to the django-users mailing list.

Note: See TracTickets for help on using tickets.
Back to Top