On 10/02/2011 04:12 PM, Michael Ludvig wrote:
> Hi guys and gals,
>
> I maintain a Django-CMS website running on Django 1.2.5 with a couple of
> pages - one for selling houses, one buying houses, etc. At the moment
> it's all under one domain name (http://patmat.co.nz) with some other
> domains be
Hi Jonas,
You can override validation by adding a "clean" method to the ModelAdmin
subclass. Look here for more details,
https://docs.djangoproject.com/en/dev/ref/forms/validation/#cleaning-and-validating-fields-that-depend-on-each-other
.
That is what I have been doing. It might be hacky, someone
Hi guys and gals,
I maintain a Django-CMS website running on Django 1.2.5 with a couple of
pages - one for selling houses, one buying houses, etc. At the moment
it's all under one domain name (http://patmat.co.nz) with some other
domains being redirected by Apache to specific pages on the main
heya,
This SO post seems to suggest that data and template tags shouldn't mix...
http://stackoverflow.com/questions/5046046/where-put-database-interaction-in-django-templatetags
Not sure how I feel about that myself - I see the philosophical argument
behind it, but I don't see another more effi
I want to log ERRORs to an error log and INFO to an info log file. I
have it setup like this, but the info log files gets both INFO and
ERROR logging (because it allows INFO and above severity). How do I
only run a handler for INFO and not higher items such as ERROR.
LOGGING = {
'version': 1,
No, I had Debug=True.
Xavier, you have a good point, my understanding of STATICFILES is
still foggy, and I do have confusion between media and static files.
However, I have to make some progress on the rest of
my code. I will revisit this when I have some cycles, but for sure,
when I try to use a
I have setup my application to use the settings from the django
documentation on logging, with a few items removed for simplicity. I
have found that the logger django.request is not running even though I
am trying to log an error from within a view. If I add '' logger
(thanks to some other posts f
Hi Brian,
that works so far for displaying the correct choices in the admin
interface. But the problem now is the validation. He always tells me
that my choice is not a correct value.
I have been looking for a way to change validation but I can't figure
out how to do this...
Thanks for your help
HI, Artemis,
If I understand you correctly you want to use a Select Widget for your
CharField. And feed your choices to the select widget.
In your admin.py file of your app you will want to override the model's
form field.
# models.py
from django.db import models
myModel(models.Model):
pers
HI, Artemis,
If I understand you correctly you want to use a Select Widget for your
CharField. And feed your choices to the select widget.
In your admin.py file of your app you will want to override the model's form
field.
# models.py
from django.db import models
myModel(models.Model):
perso
Hi,
I have an model which contains a CharField.
Now I want to have different subclasses of this model each one with
different *choices* for the CharFiel. How can I implement this?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
Hi,
I'm a bit curious about the ModPythonRequest object which makes me think you
are using mod_python.
If this is the case, you should note that its support is deprecated:
Support for mod_python has been deprecated, and will be removed in Django 1.5.
If you are configuring a new deployment, you
I recently updgraded to django 1.3. After the upgrade, I get the
following error whenever I used request.POST:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py",
line 86, in get_response
response = None
File "/public/gdp/trunk/src/ukl/lis/pr
Hi,
I am trying to build a menu system which can be controlled at the admin
area. For the content management purpose i am using django flatpage. So when
a page is getting saved i need to insert the page title and url in the menu
table i have created. So i guess a flatpage signal is the best way to
14 matches
Mail list logo