You cannot post messages because only members can post, and you are not currently a member.
Description:
Discussion group for Django users. Django is a high-level Python Web framework (djangoproject.com).
|
|
|
Custom constraints on User fields
|
| |
Hi,
I'm looking for the right way to add custom constraints on some fields
in the User model provided by django.contrib.auth. I'm not only
talking about form validation, but also database constraints (for
instance, unique).
Basically what I want to do is make the field "email" mandatory and... more »
|
|
Django setup on Win7 - can't import some things
|
| |
I am trying to get started with Django and having some trouble. I'm
using Django 1.2 to reserve the ability to go to Google's app engine
if I want. I have python 2.7 installed and working on Win7. I
unstalled Django 1.2 using the install script and it copied Django
into the site-packages directory.... more »
|
|
Model field that links to a page ID, or external URL
|
| |
Hi, In CMS interfaces I generally encounter a problem with URL fields. In most situations, the following options need to be supported: - An URL to an external page (Django's URLField can handle that) - An URL to an internal page (e.g. Django CMS) - An URL to an other model (e.g. article) How can I reasonably store this information in a model field?... more »
|
|
sqlite3 database error
|
| |
Hey guys,
i am using sqlite3 for my django app. BUT I have problems installing
it. Here are my configs:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add
'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'C:\Users\Maximus\Desktop\Webs eite\Django\sqlite-shell-... more »
|
|
django admin templates: filter<div> hides table contents
|
| |
Hi, I wanted to know whether anybody modified the django admin templates such, that the filter div could be hidden. At the moment the <div> containing the filters may hide the contents of the table. As I can imagine, that I'm not the only one who might have large tables and doesn't like, that part of the table data is hidden behind these... more »
|
|
Comments Link- How to?
|
| |
Hi Guys, How can I link to “Django Comment form”, so that when a user
clicks on the “Comment Link Name” It will display the Comment Form on
the same page with the post. I hope you get my point? If you do please
answer and if you don’t ask me to explain further.
|
|
error
|
| |
Hi, I get this message when I try to acces to the admin page: AlreadyRegistered at /admin The model Location is already registered does anybody know which is the problem?
|
|
error while testing
|
| |
I'm getting this error when I try to do my tests, can anybody help me please? Traceback (most recent call last): File "/home/xino/workspace/unnameda pp/accounts/tests.py", line 209, in test_request_invitation resp = self.client.get('/accounts/inv ite/request/') File "/home/xino/.virtualenvs/xinov irtualenv/local/lib/python2.7/ site-packages/django/test/clie nt.py",... more »
|
|
Admin inline for inherited model cant find pointer to parent model
|
| |
I have a child model that I wish edit inline in the admin site. When trying to save edits I get a MultiValueDictKeyError: "Key 'childmodel_set-0-parentmodel_ ptr' not found in <QueryDict: ..>" It seems to me the admin is trying to get the reference to the parent model from the form data. How can I fix this? Do I need a custom form?... more »
|
|
|