WebFaction
Community site: login faq

For some reason my site seems to be working with my custom templates, but when I try to go to the admin i get the error "No module named django.contrib.auth" . This is strange because when I run python2.7 and get my python console I can successfully run "from django.contrib import auth". You can view the traceback by looking at my site admin http://barcode-studios.com/admin

asked 26 Apr '12, 21:47

treyrich2001
111
accept rate: 0%


The problem seems to be that your admin.py does not contain the line: from django.contrib import auth

So, adding that should solve the above problem.

permanent link

answered 26 Apr '12, 23:13

neeravk
1.5k3412
accept rate: 41%

which admin.py? I had an empty admin.py in my app, but I removed it because of this problem, is it in the actual django installation?

(27 Apr '12, 11:04) treyrich2001

More debugging and further help would require us to disclose some account information here, hence can you please file a support ticket?

(27 Apr '12, 20:01) neeravk
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×908
×40
×1

question asked: 26 Apr '12, 21:47

question was seen: 8,114 times

last updated: 27 Apr '12, 20:01

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM