Django ManyToMany performance?

2013-10-26 Thread Ruturaj Dhekane
Hi all, I have a particular datastructure where there are two objects 1. A document - and a lot of its properties - like content, version, timestamp etc. 2. Contributors - basically people represented by unique IDs A document can have many contributors and a contributor can author many documents.

setting csrftoken to httponly and building ajax forms: not going to happen?

2013-10-26 Thread Spork Spork
Hi, I'm using Django 1.4.1b, and for security purposes would like to make the csrftoken cookie httponly, and therefore inaccessible from Javascript. Since this support is not available in my version of Django, I planned to follow this implementation approach: http://stackoverflow.com/question

Re: difference in datetime aggregation when using sqlite3 instead of mysql

2013-10-26 Thread Wesley George
On Saturday, October 26, 2013 3:49:42 PM UTC-4, Ramiro Morales wrote: > On Sat, Oct 26, 2013 at 3:47 PM, Wesley George > > > wrote: > > > > I'm working on a django application that uses the mysql backend in > production but the sqlite3 db backend during dev to speed up testing. > > > > I wa

I don't get how get_fieldsets() and get_inline_instances() work

2013-10-26 Thread Emmanuel Eytan
In Django's admin.py, why, even though this works: class StudentAdmin(UserAdmin): add_form = UserCreationForm form = CustomChangeForm fieldsets= UserAdmin.fieldsets these do not? class StudentAdmin(UserAdmin): add_form = UserCreationForm form = C

Re: difference in datetime aggregation when using sqlite3 instead of mysql

2013-10-26 Thread Ramiro Morales
On Sat, Oct 26, 2013 at 3:47 PM, Wesley George wrote: > > I'm working on a django application that uses the mysql backend in production > but the sqlite3 db backend during dev to speed up testing. > > I was surprised to find these backends differ when populating extra model > fields with aggrega

Re: difference in datetime aggregation when using sqlite3 instead of mysql

2013-10-26 Thread Avraham Serour
Using sqlite for dev is common practive, don't worry, it is not naive to do it. I remember seeing somehing about contenttypes and sqlite, I'm too hungry to remember now, maybe someone else in the list can give a better input than me. on the query result just do a if DEBUG or if DEVELOPMENT or if b

difference in datetime aggregation when using sqlite3 instead of mysql

2013-10-26 Thread Wesley George
I'm working on a django application that uses the mysql backend in production but the sqlite3 db backend during dev to speed up testing. I was surprised to find these backends differ when populating extra model fields with aggregated datetimes. Specifically, if you use Queryset.extra to create

AssertionError: Lists differ: [] != ['']

2013-10-26 Thread Pepsodent Cola
== FAIL: test_index_view_with_a_past_poll (navi_polls.tests.PollViewTests) -- Traceback (most recent call last): File "/home/linux/Django/navi/navi_polls/tests.p

Re: Django Tutorials

2013-10-26 Thread Pepsodent Cola
I just glanced at the page. My first experience was that the typography was very unpleasant for my eyes. So I wouldn't spend much time there reading compared to this page. https://docs.djangoproject.com/en/1.6/intro/tutorial01/ Maybe make the text typography easier to see and read? On Satu

Re: admin file not occuring

2013-10-26 Thread Nigel Legg
See the tutorial. It explains all this. Cheers, Nigel 07914 740972 On 26 October 2013 13:21, Mahantesh U wrote: > HI all, > >I am new to django. I am not able to see admin.py in my project file. > So not able to run '/admin' API.pls suggest the solution. > > Thanks > mahantesh > > -- > Y

formating

2013-10-26 Thread fabricio mata
even through the code {{form.valor_ultimacompra | floatformat: 2}} does not return anything. my model is valor_ultimacompra = models.DecimalField (u'Vlr. Ult.Compra 'max_digits = 18 , decimal_places = 2, default = 0, blank = True, null = True) when you step this way}} {{form.valor_ultimacompr

Django Tutorials

2013-10-26 Thread Jasvir Singh
I have started a series of Django tutorial for beginners. I am making them in such a way that a user get knowledge for working on Django in quick and efficient way. Till now, I have completed only introduction phase. I'll also make video tutorials for the same exercises. Here is link of my tutori

admin file not occuring

2013-10-26 Thread Mahantesh U
HI all, I am new to django. I am not able to see admin.py in my project file. So not able to run '/admin' API.pls suggest the solution. Thanks mahantesh -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and sto

CookieWizardView / SessionWizardView + extra fields + dynamic steps + formset and/or inlineformset?

2013-10-26 Thread Fabio Caritas Barrionuevo da Luz
Hello everyone Does anyone have any idea or any example to create a CookieWizard that the first step has some extra fields and the next steps based on the same extra fields, are created or updated automatically steps with formset or inlineformset? I am a relatively new django User. My curren

Re: Bulk add foreign keys in admin interface

2013-10-26 Thread Timothy W. Cook
Yes it is possible and quite easy to do. Take a look at https://docs.djangoproject.com/en/1.6/ref/contrib/admin/actions/ Cheers, Tim On Sat, Oct 26, 2013 at 12:17 AM, Kristofer Pettijohn < kristo...@cybernetik.net> wrote: > I am using the following type of model setup: > > class Product(models

Re: Customizing your project's templates

2013-10-26 Thread Sheharyar Hamayun
Hey Yes, thank you. It worked! Btw sorry for the late reply, my previous 'thank you' reply didn't seem to go through it seems. On Monday, October 21, 2013 2:52:48 PM UTC+11, Sheharyar Hamayun wrote: > > Ok, so i've copied the *base_site html* > to*lotus/pollapp/mysite/polls/templates/admin >