Dear all,
I want to extend django's history function to show more information about
activities inside the admin interface. I want to add in the detail of what
is the original value of a field that has been changed and the value that it
has been changed into.
Can someone tell which part of django
Read up on serving static files from django. The documentation is quite
complete and you should be up and on your way in no time by just adapting
examples from there.
On Fri, Oct 24, 2008 at 2:46 PM, srini <[EMAIL PROTECTED]> wrote:
>
> Dear users,
>
>I am beginner in Djago, Well i ha
Maybe this would shed some light:
http://code.djangoproject.com/ticket/2203
On Fri, Oct 24, 2008 at 4:57 PM, Lars Stavholm <[EMAIL PROTECTED]> wrote:
>
> I've got...
>
> TIME_ZONE = 'Europe/Stockholm'
> DATE_FORMAT = "Y-m-d"
> TIME_FORMAT = "H:i"
> DATETIME_FORMAT = DATE_FORMAT + " " + TIME_FORM
I am trying to build an app in django which has a few components:
1. Stocks
2. Customers and
3. Sales
I noticed that my models.py is getting huge and unwieldy. I tried
digging around but could not find anything good but is there a guide
on properly breaking a huges models.py into smaller chunks
--- stocks.py
>> etc.
>>
>> # __init__.py
>> from stocks import StockModel
>> from customers import CustomerModel
>> etc.
>>
>> Now you can still use the same import commands as before, and syncdb should
>> be able to find them as well.
&g
Dear all,
I am using generic views to create my forms without using the admin interface.
When I try to recreate the form in my template using the form function:
{{ form.as_p }}
Everything is okay except that my date fields have no datepicker. My
question is there a way to re-create the admin i
guess it does:
http://mail.python.org/pipermail/python-list/2007-July/448007.html
On Mon, Oct 27, 2008 at 5:24 AM, walterbyrd <[EMAIL PROTECTED]> wrote:
>
> I was going to go with zend framework, then I read about php using "\"
> character as it's namespace separator.
>
> A few things I like abo
This sounds good. Keep me informed. I am currently writing a carpet
inventory based on django.
On Mon, Oct 27, 2008 at 2:27 PM, Jeff Anderson <[EMAIL PROTECTED]> wrote:
> Johnny Utah wrote:
>> Hi Guys,
>>
>> If I'm posting this on the wrong site, my apologies.
>>
>> I'm a beginner to both Python
Why not use the login.html of the admin interface?
{% extends "admin/base_site.html" %}
{% load i18n %}
{% block stylesheet %}{% load adminmedia %}{% admin_media_prefix
%}css/login.css{% endblock %}
{% block bodyclass %}login{% endblock %}
{% block content_title %}{% endblock %}
{% block brea
You are supposed to put the admin template you want to override in
your own template directory definition in settings.py
So, if you defined it as /home/stava//template/admin/change_list.html
On Sat, Nov 1, 2008 at 5:32 PM, Lars Stavholm <[EMAIL PROTECTED]> wrote:
>
> I'd like to override part
I think this might be useful:
http://www.zoia.org/blog/2007/04/23/using-dynamic-choices-with-django-newforms-and-custom-widgets/
On Fri, Oct 31, 2008 at 5:36 AM, webcomm <[EMAIL PROTECTED]> wrote:
>
> Bump.
>
> There must be a way to do this, right? I have looked all over... the
> documentation
Finding out a bit about urls.py and how it functions would do a world
of good. It is very flexible and powerful once you learn how to wield
it.
Low Kian Seong
http://lowkster.blogspot.com
On Sat, Nov 1, 2008 at 5:20 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hello,
&g
: 'upload_thanks.html' },
>name="upload_thanks"
>),
> )
> ---
>
> Hope this helps.
>
>
> Cheers,
>
> Giles
>
> --
> Giles Thomas
> MD & CTO, Resolver Systems Ltd.
> [EMAIL PROTECTED]
>
http://www.djangobook.com/en/1.0/chapter17/
On Sat, Nov 1, 2008 at 6:20 PM, Lars Stavholm <[EMAIL PROTECTED]> wrote:
>
> Low Kian Seong wrote:
>> You are supposed to put the admin template you want to override in
>> your own template directory definition in settings.py
ore complete example for using the signals
and post_save? It seems like a very powerful component of the django
architecture.
Thank you in advance.
--
Low Kian Seong
blog: http://lowkster.blogspot.com
--~--~-~--~~~---~--~~
You received this message because yo
e documentation.
>>
>> Suggestion:http://docs.djangoproject.com/en/dev/ref/contrib/admin/http://groups.google.com/group/django-users/browse_thread/thread/536e...
>>
>> HTH,
>> Thomas
>>
>> --
>> Thomas Guettler,http://www.thomas-guettler.de/
>>
use
> of /django/contrib/admin/templates/admin/includes/fieldset.html file.
> I tried it but failed. How can i specify the fieldset tags by not
> create any fieldsets using ModelAdmin.
> I can't use ModelAdmin for creating my own form to display it in my
> own page.
> Is the
My code is here
http://dpaste.com/88831/
It's not working I really don't know why the other part of the
post_save is not even being executed
On Wed, Nov 5, 2008 at 4:04 PM, Antoni Aloy <[EMAIL PROTECTED]> wrote:
>
> 2008/11/5 Low Kian Seong <[EMAIL PROTECTED]>:
>
Dear all,
In the quest to build my web sales inventory system, I want to specify
that only stock that are available be listed in the dropdown.
So my question is can I use a custom query to feed the choices for my field?
Thank you.
--
Low Kian Seong
blog: http://lowkster.blogspot.com
g redirected to
http://localhost/stocks_edit and bombs plus it's not updated.
Please let me know if I am missing out on something important here.
P/S - For Create and Delete using a similar syntax it works fabulously.
Thank you in advance.
--
Low Kian Seong
blog: htt
hange History' for Audit and
>> Compliance purposes.
>>
>>
>> An application should provide information who changed what data, when
>> did they change the data , the old value and the new value etc
>>
>>
>> Can Django help automate this?
several options.Then, depending on this selection, update
> (maybe through ajax) the values available on the second one.
>
>
> Could anyone give me some guidelines or documentation about how is the
> best way to do this?
>
>
> Thanks a lot.
>
>
> >
&
Dear all,
Could anyone here please let me know of the logic or example of doing
a form with dynamic number of fields (ie. a field with a 'Add more
field' button). I know how to do it using javascript. However it's the
logic behind that gets me. Suggestions?
--
Low Kian S
*, we still have to create an instance
> form = DynamicForm({'foo': 'foo', 'bar': 42})
>
> Does this help? It would let you dynamically add elements and handlers
> to the form that django is aware of, thus you get all the benefits of
> using the
ext_instance = RequestContext
> (request),
> )
>
>
>response = HttpResponse(temp, mimetype='application/vnd.ms-excel')
>response['Content-Disposition'] = 'attachment;
> filename=report_school.xls'
>return res
ither have Routes, the mapping between urls
>> and views (plain functions taking a ``request`` object as first param).
>
> s/plain functions/callable objects/
>
> Remember that classes are callable too, and that Python let you define
> your own callable types.
>
> (snip)
&g
Dear all,
Is there another form the foreignkey field can take besides the dropdown? I
mean if there are 10,000 enteries for a particular foreign key and I am not
using the admin interface won't it slow things down?
Thanks.
--~--~-~--~~~---~--~~
You received this m
Just curious but has anyone done this is a production environment?
On Sun, Oct 19, 2008 at 1:05 PM, Russell Keith-Magee <[EMAIL PROTECTED]
> wrote:
>
> On Sun, Oct 19, 2008 at 2:40 AM, Low Kian Seong <[EMAIL PROTECTED]>
> wrote:
> > Dear all,
> >
> > Is
Dear all,
Does anyone know what is the status of support for compound primary
keys in Django?
Thanks.
--
Low Kian Seong
blog: http://lowkster.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"D
On Sat, May 23, 2009 at 11:01 AM, Alex Gaynor wrote:
>
>
> On Fri, May 22, 2009 at 9:57 PM, Low Kian Seong
> wrote:
>>
>> Dear all,
>>
>> Does anyone know what is the status of support for compound primary
>> keys in Django?
>>
>
I have about 3k plus record in my db table and am trying to do a
simple render_to_response of a template sending it the results of a
query. I debugged this and found that the total time taken for an
operation like this is 50 seconds! Is there anyway to speed this up?
--
Low Kian Seong
blog
On Tue, Nov 3, 2009 at 1:33 PM, Jani Tiainen wrote:
>
> Low Kian Seong kirjoitti:
>> I have about 3k plus record in my db table and am trying to do a
>> simple render_to_response of a template sending it the results of a
>> query. I debugged this and found that the
cd into the untar directory and run the
command 'python setup.py install'. Make sure though before this you
can run the 'python' command from the command line.
>
> can i handle this?? thanks
>
> >
>
--
Low Kian Seong
blog: http://lowkster.blogspot.com
-
On Tue, Nov 3, 2009 at 3:07 PM, Jani Tiainen wrote:
>
> Low Kian Seong kirjoitti:
>> On Tue, Nov 3, 2009 at 1:33 PM, Jani Tiainen wrote:
>>> Low Kian Seong kirjoitti:
>>>> I have about 3k plus record in my db table and am trying to do a
>>>> simpl
; Your model was not-so-good Python/Django code style so it was bit hard
> to read but...
>
> Low Kian Seong kirjoitti:
>> On Tue, Nov 3, 2009 at 3:07 PM, Jani Tiainen wrote:
>>> Low Kian Seong kirjoitti:
>>>> On Tue, Nov 3, 2009 at 1:33 PM, Jani Tiainen wrote:
>
On Tue, Nov 3, 2009 at 3:41 PM, James Bennett wrote:
>
> On Tue, Nov 3, 2009 at 1:17 AM, Low Kian Seong wrote:
>> There is a query page where the start_date and end_date is being sent.
>> Then the do_defender_advanced will process it and generate an Excel
>> using th
less than 2 seconds. Put back all the data called from the db,
whomp! It goes back to 50 seconds.
Now debugging the rendering of the template. Could an alternative
templating engine like jinja help this?
On Tue, Nov 3, 2009 at 6:07 PM, bruno desthuilliers
wrote:
>
> On 3 nov, 09:09, Low
data and
display it.
>
> it displays the amount of time taken for all of the rendering steps.
> It will defiantly help you narrow down the major culprits.
>
> On Nov 3, 5:12 am, Low Kian Seong wrote:
>> Pretty much confirmed it's the rendering or pulling of data from dat
edit records taken away. Hacking the admin stuff
is do-able but then if there is something simpler I would opt for
that.
Any suggestions?
Thanks in advanced.
--
Low Kian Seong
blog: http://lowkster.blogspot.com
--
You received this message because you are subscribed to the Google Groups
39 matches
Mail list logo