Thanks. It seems so obvious something kept telling that forms worked
differently in the Admin interface compared to normal developer defined
forms. This is exactly what I would have done if it was form that I had
defined.
Cheers,
nav
On Wednesday, December 5, 2012 5:21:37 AM UTC+5:30, Chris Co
UPDATE:
This is fixed with the latest git code pull. I pulled approx. 5mins ago.
On Saturday, December 1, 2012 2:03:03 PM UTC-8, Detectedstealth wrote:
>
> Hi I just found when creating a custom user then using a StackedInline
> everything will show up as expected however, when I then try to sav
Thanks for your help Chris...what I did was to use the shell with python
manage.py shell and tried to import the view that wasn't there and could
see the error, it was a lowercase character that must be uppercase.
El martes, 4 de diciembre de 2012 19:32:10 UTC-5, Chris Cogdon escribió:
>
> tl;dr
Because Lee Hinde's thread is broken, I'm going to take a punt at what the
question is :)
in a formset (inline, model, or just a plain one), the "initial" parameter
to the instantiation of the form takes an list of dictionaries. Each
element in the list is the initial data for _that_ row... so
tl;dr :)
I am going to guess that the server is not recognising tyour changes when
you save them, and perhaps one copy of a server thinks the state is X, and
the other thinks its Y, so you'll get different results each time you
refresh.
Are you running with manage.py runserver? When you save y
Hey I have the same error... the views just dissapeared... can't find a way
to solve it as I'm working in Notepad++... any suggestion?
El sábado, 7 de abril de 2012 11:33:32 UTC-5, Bussiere escribió:
>
> the problem is solved.
>
> Just saving the view file under vim solved it.
>
> It must have be
That's a message returned by your Mail Transport Agent. Django has no
control.
Either adjust the settings in your MTA or adjust your mail-send to send in
batches.
And, given that it sounds like you're sending to tens of thousands of
users, please make sure those users are in the "Bcc" rather t
My suggestion is to not have any kind of model-linked-file. Use a standard
Form that accepts a file, then as part of the POST processing, you open the
file, do all the necessary reading and object creation, then return a
render/redirect for success. You might want to wrap the entire view in a
c
We just issued a security release for the django CMS to fix a vulnerability
in the page_attribute template tag, which allowed admins with restricted
permissions to elevate their permissions through XSS.
All django CMS users are encouraged to update their django CMS
installations immediately.
Read
While testing out a Django application which uses django's core mail
'send_mail' the following occurs while sending a message to a large number
of email recipients.
(552, '5.6.0 Headers too large (32768 max)')
is there a configuration setting on the django send_mail side which will
resolve
Best thing I can suggest is to create a clean_FIELDNAME method in the
ModelForm... this method should use self.cleaned_data['FIELDNAME'] to
retrieve the value. check it, and return it if things are good, or raise
ValidationError if things are bad.
An alternate is to make the adjustment to the M
I believe you only get the per-request logs when you're running the
development server (runserver). When you're running in fastcgi mode (and
its been a while since I have), you'll only get entries in outlog and
errlog if you actually send stuff to stdout and stderr yourself. And THAT
will requi
For a product up to three different vendors have been identified and I want
to present a row per vendor (which is a fk) so that the user could select
order quantities from each vendor.
If a vendor doesn't have an order quantity, I'd want to ignore it at
form.save() time, rather than reject it.
Po
Hello,
I'm running a django app on lighttpd with fastcgi.
For debugging matters I would need the output logs that usually are
displayed on the console.
Because I run my application in a daemonize mode I tried to use the outlog
and errlog options but it did not work.
Here is the command I run:
I also have a case where I would need to bulk add items from a file, the
client receives an excel file with products (up to a couple of hundreds).
I still haven't implemented nothing yet as the feature doesn't
have priority, in any case I thought adding a file upload option on the
admin, or maybe a
Hi,
We are pleased to announce the availability of pytest-django 2.0.0. This
release is rewritten to make use of fixture API introduced in py.test 2.3,
which fixes a lot of bugs and edge cases in previous releases. Get it directly
from PyPI or install with pip:
pip install -U pytest-django
py
Dear Folks,
I have an Admin form which has two textfields namely country and state. I
have made it more user friendly by making textfield a dropdown with the
value to select for those fields.
The model i have has some constraints which I cannot change i.e. that the
country value must be a 2 le
On 12/04/2012 12:08 PM, Chris Cogdon wrote:
raw_id_fields is the first step.
also look at django-ajax-selects, which gives you a lot of interesting
abilities.]
Thanks Chris for the tips.
Will try it!
On Monday, December 3, 2012 8:13:02 PM UTC-8, Bo Lang wrote:
Hi all,
need some in
18 matches
Mail list logo