Have discovered what works - but it goes against the docs...
I needed to set User.is_active = True. The permissions for admin
(has_perm) appears to check this flag and returns False for inactive
users.
Problem solved.
On Jul 9, 10:15 am, TechnicalBard wrote:
> Alas - that doesn'
Alas - that doesn't make a difference...
On Jul 8, 4:29 pm, Frédéric Hébert wrote:
> Hi,
>
> Maybe, should you put is_staff=True :
>
> http://docs.djangoproject.com/en/dev/topics/auth/#users
>
> Regards,
>
> Frédéric
>
> 2009/7/8 Technicalbard :
>
>
I'm trying to write an Active Directory / LDAP authenication, and I'm
having problems. The code is at: http://dpaste.com/hold/64752/
When I set this authentication and then try to go to http://localhost:8000/admin
and login to the development server, it authenticates against the LDAP
server (the
:
> On Jul 4, 6:30 pm, TechnicalBard wrote:
>
> > Is there a way to pass an object to the template and have the template
> > handle all of the attributes without hardcoding them into the
> > template?
>
> Depends on what you mean by "handle". The template won&
Is there a way to pass an object to the template and have the template
handle all of the attributes without hardcoding them into the
template?
On Jul 3, 10:04 am, Rajesh D wrote:
> On Jul 3, 9:17 am, Nikola Pavlović wrote:
>
>
>
>
>
> > Hello people,
>
> > I'm writing my first Django applicatio
Thanks!
Related question: when displaying a ModelForm, how does Django
iterate/enumerate how many fields the model has?
On Jul 3, 1:16 am, Jonathan Buchanan
wrote:
> On Fri, Jul 3, 2009 at 6:06 AM, TechnicalBard wrote:
>
> > To clarify, the djangobook states:
>
> > &
ld has the label
“Publication date.” >>
Where in the django.contrib.admin code is this logic found? I would
like to utilize it.
On Jul 2, 4:02 pm, Technicalbard wrote:
> I'm curious how the admin creates the templates for any object in the
> database...
>
> I'm us
I'm curious how the admin creates the templates for any object in the
database...
I'm using the object_detail generic view, but would prefer having
Django use the parameters of the object to generate the template,
rather than me having to hardcode the parameter names into the
template.
The admin
Hey all,
I did the tutorial, yet when I try to apply what I've learned (or
think I've learned), to my own application it doesn't work...
My code looks like this:
# taskmgr/models.py
class Task(models.Model):
name = models.CharField(max_length=216)
summary = models.CharField(max_length=3
My reading of the documentation isn't clear on where form definitions
could or should be defined. Is it better to define forms inside an
apps views.py file, or should I put the form definitions into a
separate forms.py file and import it into the views as necessary? The
latter seems more reusabl
django-admin is executable. The problem appears to be that django-
admin doesn't have rights to the target directory...
On Jun 2, 11:52 am, James Bennett wrote:
> On Tue, Jun 2, 2009 at 12:46 PM, Technicalbard wrote:
> > The problem comes when I try to start the tutorial:
>
OK - newb here (in more ways than one). I'm trying to get going on an
Ubuntu VM (inside VirtualBox) and I installed Django via synaptic.
The problem comes when I try to start the tutorial:
mor...@morgan-laptop:~/www$ django-admin startproject mysite
Error: [Errno 13] Permission denied: '/home/m
Hi,
I'm planning a new project, and I want the following feature set
(eventually). It will of course be rolled out in parts as apps are
completed. The purpose of this is to manage knowledge in various
domains.
- wiki-type knowledge-base with full audit trail
- threaded forum
- embedding pdf
If you are looking for this, I compiled it using MSVC++2008 Express,
against MySQL 5.0.67 using Python 2.6 and the MySQLdb 1.2.2 source:
http://www.technicalbard.com/files/MySQL-python-1.2.2.win32-py2.6.exe
Hope it helps anyone who was looking.
--~--~-~--~~~---~--~---
build/doctrees
On win32:
mkdir _build\html _build\doctrees
and change this line:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build\html
to use backslash instead of forward slash in the path at the end.
And then it works like it should.
On Jan 31, 1:50 pm, Technicalbard wrote:
> I've foun
I've found a number of places on the net that tell me how to build
myself a copy of Django documentation from the Restructured Text
format, but they are all for Linux / BSD.
Any advice on how to do this on Windows without Cygwin?
--~--~-~--~~~---~--~~
You receive
16 matches
Mail list logo