Hi!
I am using Django for developing a website and I want to allow my staff to be able to add/edit/delete pages with multiple text fields. I am planning to use Django's admin framework for this as the staff is a non-technical one.But I have no clue on how to go about doing this so that people can login and edit the contents on these ...
hello!
By default, after authentication on /admin, function authenticate() returns User object, what if i want to get proxy model for the User (i.g. called HandyUser) in return ? In my project, in all custom auth backends, i'm using HandyUser instead of User.
thanks
...
Let's see if I can explain myself, I have this models:
class BillHeader(models.Model):
number = models.CharField(_('Bill number'), max_length=10, unique=True, \
default=__number)
client = models.ForeignKey(ClienteYProveedor, verbose_name=_('Client'))
date = models.DateTimeField(_('Date'), default=datetime.now)
def _...
I recently upgraded to Django 1.2.1 because I was specifically interested in the ability to have basic many-to-many inline fields. When using the admin like so:
Initial models:
class Ingredient(models.Model):
name = models.TextField()
class Recipe(models.Model):
ingredients = models.ManyToManyField(Ingredient)
Initial admin...
i have a LogEntry in django admin for superadministrator users, but, now i need a LogEntry for the other "staff" users, it's this possible?
Thanks folks!
...
Hi All,
I have been playing for a couple of days with Django Admin to explore it, but I am still clueless of how it can be customized in the way we need.
Every time I look for any help for the customization in the admin panel, what I find is, a bunch of articles on various communities and forums, explaining how to customize the templa...
Hi folks,
I need to track/log activity on the Django admin.
I know there are messages stored by admin somewhere, but I don't know how to access them in order to use them as a simple log.
I'm trying to track the following:
User performing the action
Action committed
Datetime of action
Thanks guys.
...
I have an app called pta.apps.users which is loaded in the Loaded apps setting in my settings.py.
The app works fine, I now want to test it and have placed json files in the fixtures directory inside my users app.
I have a test which runs fine but the fixtures wont load.
from django.test import TestCase
from django.test.client import...
We're using the Django Admin to maintain some data that's exported to a few of our sites. Sometimes when clicking through the standard changelist view to get a model edit form instead of being routed to the correct page we're getting the Django 404 page/template.
It was happening somewhat sporatically, and we could for a while reproduce...
I have a comment model with a GenericForeignKey. The comments key to content which has a site assignment; they themselves have none. This becomes a problem when certain users should only be able to see comments that belong to sites they can see; that is, comments which point to content that is assigned to a site they can see.
Right now,...
Hi Everyone I m dealing with some serious issue in django-admin.I have created models with app_label in class Meta
But when i tried to create a group for alloting specific permissions I cant find them in my selection list.But if i remove app_label from my model I can see the model in my permission list.But I cant go without app_label, s...
I want to enter to administration application of my site.
on request: http://mysite.ru/admin/ - i get an error:
ImportError at /admin/
No module named admin.site.urls
Request Method: GET
Request URL: http://mysite.ru/admin/
Django Version: 1.2.1
Exception Type: ImportError
Exception Value:
No module named admin.site.urls
Except...
A previous answer points to http://code.djangoproject.com/wiki/CookBookNewformsAdminAndUser
I'm wondering if it's really necessary to define both save_model and save_formset methods in Django 1.2 in order to prepopulate the author?
...
Hey all,
I've been working through an ordered ManyToManyField widget, and have the front-end aspect of it working nicely:
Unfortunately, I'm having a great deal of trouble getting the backend working. The obvious way to hook up the backend is to use a through table keyed off a model with ForeignKeys to both sides of the relationship ...
Hi I am creating a trouble ticket app for my company, and I want to redirect the user to a new form where he will specify the diagnose and solution he offered.
my admin is
Basically, Right now my code is calling the first form, when the obj created is new or the status is open and it is calling the ClosedForm when my status is closed.
...
Hi,
I am learning django and building my own project.
I want to change the admin section to my own interface, I have added sub-directory to the templates names "admin".And started change the base.html
The problems are-
I want to add my own css file, how I can do it?My css file is located on my MEDIA_ROOT directory.How I can do that?
...
Im using Tiny mce for my wysiwyg.
Im using a subdomain to serving media files
#settings.py:
MEDIA_URL = 'http://media.mydomain.com/'
ADMIN_MEDIA_PREFIX = 'http://media.mydomain.com/admin_media/'
In my textareas.js i have this code:
document.domain = 'mydomain.com';
tinyMCE.init({
..
And in my tiny_mce_popup.js I also have
documen...
I have a JSONField (http://djangosnippets.org/snippets/1478/) in a model and I'm trying to find out the best way to display the data to the admin user rather than json.
Does anyone know the best way to do this in django admin?
For instance, I would like
{u'field_user_name': u'foo bar', u'field_email': u'[email protected]'}
to display as...
Hi,
I want to have 2 separate admin sites inside a Django project.
By separate I mean - they should have separate users authentication, they should administer different models, and have different looks and URLs.
The reason I want to do it is the customer wants separate section to administer the CMS part of the page, and separate to ...
Given the following models.py:
class Computer(models.Model):
mac_address=models.CharField()
serial_number=model.CharField()
hostname=models.CharField()
class CheckOut(models.Model):
computer=models.ForeignKey('Computer')
How can I limit the choices displayed in the Admin's dropdown based on whether that compu...