Anyone could recommend a good guide/tutorial/article with tips/guidelines in how to organize and partition a large Django project?
I'm looking for advices in what to do when you need to start factorizing the initial unique files (models.py, urls.py, views.py) and working with more than a few dozens of entities.
...
I am writing out a table using just the template system in Django, and it is not showing the border around empty table cells.
No problem I thought - I've solved this problem before. I put   in any cell that was to be left empty. Django kindly converted the ampersand to & so that I have &nbsp in the empty cells, and it shows ...
I am trying to get a basic blue-channel website running through fcgi, I have a django.fcgi file. How do I do this.
Thank you
...
I've got a django Form which contains a dictionary of strings. I've given the form a submit button and a preview button. When the preview button is pressed after entering some information, a POST is sent, and the strings in the dictionary are automagically recovered (I assume that it's done using session state or something). This is g...
I'm trying to setup Django on an internal company server. (No external connection to the Internet.)
Looking over the server setup documentation it appears that the "Running Django on a shared-hosting provider with Apache" method seems to be the most-likely to work in this situation.
Here's the server information:
Can't install mod_py...
Im trying to work out a url that will match domain.com\about-us\ & domain.com\home\
I have a url regex:
^(?P<page>\w+)/$
but it won't match the url with the - in it.
I've tried
^(?P<page>\.)/$
^(?P<page>\*)/$
but nothing seems to work.
...
I need to perform case-insensitive queries on username by default
when using the Django Auth framework.
I tried fixing the issue by writing a custom subclass of Queryset
and overriding the _filter_or_exclude method and then using that
subclass in a custom manager for the User model-
from django.db.models import Manager
from django.db.m...
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...
I'm working on a little django app for reserving prints of paintings.
Customers go to this ordering page, fill out some information (name, email, dedication, etc), pick the print number they want to reserve, and click order. On clicking, I have my django code storing all the customer information in a new OrderInfo object, and it call...
I have a Windows box with cygwin, python and django installed.
Now I want to run django-admin, but when I do I get the error:
$ django-admin.py
c:\Python26\python.exe: can't open file '/usr/bin/django-admin.py': [Errno 2] No such file or directory
...
I have the following models:
class Author(models.Model):
author_name = models.CharField()
class Book(models.Model):
book_name = models.CharField()
class AuthorBook(models.Model):
author_id = models.ForeignKeyField(Author)
book_id = models.ForeignKeyField(Book)
With that being said, I'm trying to emulate this query using the ...
Okay, how would I do this?
class Example(models.Model):
parent_example = models.ForeignKey(Example)
I want to have a model have a foreign key reference to itself. When I try to create this I get a django validation error that Example is not yet defined.
...
Hi there,
I'm struggling with the design of a django application. Given the following models:
class A(models.Model):
name = models.CharField(max_length=255)
class B(models.Model):
name = models.CharField(max_length=255)
a = models.ForeignKey(A)
class C(models.Model):
val = models.IntegerField()
b = models.ForeignKe...
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'm writing a simple real-estate listing app in Django. Each property needs to have a variable number of images. Images need to have an editable order. And I need to make the admin user-proof.
So that said, what are my options?
Is there a ImageList field that I don't know about?
Is there an app like django.contrib.comments that does ...
I have spent too much time on this problem and am beginning to think that it
can't be done in Django. I am pulling a list of pathogen names from a postgres
database to a drop down box. The user selects the pathogen, which requires the id
to be passed back through django to the database for further retrieval of
more data.
Please see
h...
My application is running on App Engine and is implemented using Werkzeug and Jinja2. I'd like to have something functionally equivalent of Django's own context processor: a callable that takes a request and adds something to the template context. I already have a "context processors" that add something to the template context, but how d...
As an exercise I am trying to create a custom django widget for a 24 hour clock. The widget will is a MultiWidget - a select box for each field.
I am trying to follow docs online (kinda sparse) and looking at the Pro Django book, but I can't seem to figure it out. Am I on the right track? I can save my data from the form, but when I pre...
I'm working on a Django project that's slated to be using Satchmo for its e-commerce aspects. I'd like to install it on my Windows Vista machine but some of the cPython modules it needs can't be compiled or easy_installed.
Has anyone been able to get Satchmo working on Windows, and if so, what additional steps does it take over the ins...
Does anyone know of good, well designed open sourced Django applications?
I'm really curious about different designs and I'd like to look at some good examples in order to learn about good design in a real world example.
Thanks.
...