I am working through the examples in a Django book that I have, but the book was written for 0.96 and I am using 1.0.2, yeah, I know, not the best idea. But reading Django's "porting your apps from 0.96 to 1.0" doc has cleared up most of the differences for me. Until I get to the point where I need to implement inline editing of a second...
The situation is:
I have Apache with mod_python on windows xp and my django project is not in the document root.
The Django project location is defined with the tag. The django.root ist also defined there.
All the urls work fine in the built-in server but unfortunately not in Apache. In some urls, especially the ones not pointing to the...
I need to create an inline formset which
a) excludes some fields from MyModel being displayed altogether
b) displays some some fields MyModel but prevents them from being editable.
I tried using the code below, using values() in order to filter the query set to just those values I wanted returned. However, this failed.
Anybody wit...
I have a manytomany relationship between publication and pathology. Each publication can have many pathologies. When a publication appears in the admin template, I need to be able to see the many pathologies associated with that publication. Here is the model statement:
class Pathology(models.Model):
pathology = models.CharField(...
My Models:
OrderInfo is one-to-one with Print, which is a Many-to-One with Painting, which itself is a Many-to-One with Club.
class OrderInfo(models.Model):
print_ordered = models.OneToOneField(Print, blank=True)
class Print(models.Model):
painting = models.ForeignKey(Painting)
class Painting(models.Model):
club = models....
I have got tinyMCE working in the django admin, but all the popups are blank
(eg. edit HTML, add image)
The paths to the popup html pages all exist in the right places
http://thatch.media/js/tiny_mce/themes/advanced/source_editor.htm?mce_rdomain=thatch
The permissions are set to 777 on the whole js folder
This is my Model
class Pag...
I want to let a logged-in and registered user create extra user accounts that he will be the admin of. These accounts will be special "subordinate" accounts that are tied to the user creating them. He should be able to add/modify/delete these accounts kind of like the theory of how a Google apps administrator manages the accounts for h...
Ok, I'm sure I'm missing something stupidly simple, since nobody else seems to be asking the same question. Either way, the problem's annoying me, so I'll suck up my pride and just ask it. I'm mainly just playing around right now with creating a simple Training/Testing application. For starters, I need to be able to create a quiz type ap...
I want to inherit a model class from some 3rd party code. I won't be using some of the fields but want my client to be able to edit the model in Admin. Is the best bet to hide them from Admin or can I actually prevent them being created in the first place?
Additionally - what can I do if one of the unwanted fields is required? My first ...
I like the very simple but still really elegant look and feel of the django admin and I was wondering if there is a way to apply it to my own application.
(I think that I've read something like that somewhere, but now I cannot find the page again.)
(edited: what I am looking for is a way to do it automatically by extending templates, i...
I had asked a question pertaining to this. But I think it would be better to ask my question directly.
I have a "User" table with manytomany relationship with two other tables "Domain" and "Groups".
So in the admin interface I see the Groups and Domains as 2 ModelMultipleChoiceFields.
But I want to present them on the UI in a more user f...
I am using Django admin for managing my data.
I have a Users, Groups and Domains tables
Users table has many to many relationship with Groups and Domains tables.
Domains table has one to many relationship with Groups table.
and when I save the User data through admin I also need some addtional database updates in the users_group and the...
Is it possible to override the html naming of fields in TabularInline admin forms so they won't contain dashes?
I'm trying to apply the knowledge obtained here to create a TabularInline admin form that has the auto-complete feature.
It all works except that Django insists in naming the fields in a tabularinline queryset as something in...
In my model I have many to many relationship between 2 tables Users and Groups.
In the admin interface I see the SelectMultiple widget for Groups. Actually, I am using filter_horizontal, I see the available groups and the selected groups in 2 separate lists.
Is it possible to filter the list of available groups that I can see (based on ...
I am using Django admin for managing my data. I have the following tables: Users, Groups, and Domains. Users has a many-to-many relationship with both Groups and Domains. Domains has a one-to-many relationship with Groups. When I remove a User from a Domain, I also want to remove any entries in Users_Groups for that particular User and G...
I've been using a pre 1.0 version of django (a dev version somewhere around .97),
And now I'm considering upgrading to 1.x (I grabbed the latest thing from the svn).
There have been some changes to the way the admin interface works, so now I have to edit all my models.py files and create new admin.py files.
I remember seeing a tool t...
I have a many to many relationship between 2 tables Users an Domains.
I have defined this relationship in the Domains class.
So in the admin interface I see the Users when I am viewing Domains.
But I do not see Domains when I am viewing Users.
How can I achieve this.
...
On my django 0.96 admin page, there was a "Documentation" link which led to all kinds of nice introspection features. After installing django 1.02, I no longer have this link. How can I get it back?
...
Have 2 tables Domain and Group having one to many relationship.
These tables have many to many relationship with User table
On the User admin interface I am rendering the Group and Domain as CheckboxSelectMultiple
widgets.
Is it possible to present this in a table form with 2 columns: Domain in one column and the list of groups belong...
Basically I want to have an editable form for related entries instead of a static listing.
...