Re: Data migration using RunPython

2015-03-05 Thread aRkadeFR
Hello, In Django, you can instanciate objects from your model without persist it to the database. The way you do it is Country(name=..., ...). In order to create multiple objects at once, you can call the bulk_create method on the manager with a list of object to persist. The using(db_alias) is

Re: Data migration using RunPython

2015-03-05 Thread Murthy Sandeep
Thanks, Two further questions if you don’t mind: 1. I am in the Python interpreter and am working with one of my db models called SmallGroup. When I do SmallGroup.objects.all() I get the following message: File "", line 1, in File "/Library/Python/2.7/site-packages/django/db/models/query.py"

Re: Future for Django, Jobs, Confused :/

2015-03-05 Thread Derek
Good point Andrew - its certainly true for us. Another point is that if you work for yourself (e.g. doing contract work), then you need to pick a tool that you can be productive in, as this is usually more important to most smaller clients than using Tool A or Tool B. On Thursday, 5 March 201

how pass get parameter django bootstrap pagination

2015-03-05 Thread SHINTO PETER
{% load bootstrap_pagination %} {% bootstrap_paginate object_list range=10 %} -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googleg

Re: Data migration using RunPython

2015-03-05 Thread aRkadeFR
On 03/05/2015 10:01 AM, Murthy Sandeep wrote: Thanks, Two further questions if you don’t mind: 1. I am in the Python interpreter and am working with one of my db models called SmallGroup. When I do SmallGroup.objects.all() I get the following message: File "", line 1, in File "/Library/P

Where to post documentation suggestions?

2015-03-05 Thread Sakari Ellonen
It took me some time to realize that the names of unittest test methods must start with "test_". It says so in the python unittest documentation, but I think mentioning it in the Django documentation could save someone else a non-negligible amount of time. Just a brief mention here would be suf

Rewrite (port) project from PHP (Code Igniter) to Django

2015-03-05 Thread Alexey Milogradov
Hello everyone! I would like to collect thoughts, articles, posts, code bases, actually any shared experience on how to port existing project from PHP to Python/Django. Platform agnostic advises or thoughts are appreciated as well. There are my initial quick thoughts and findings on what shou

Re: Where to post documentation suggestions?

2015-03-05 Thread Tim Graham
Same ticket tracker: https://code.djangoproject.com/newticket Is there some place where you saw bug reports and feature requests mentioned that we should add "documentation updates" so we could have prevented your confusion? On Thursday, March 5, 2015 at 7:33:02 AM UTC-5, Sakari Ellonen wrote:

Re: Rewrite (port) project from PHP (Code Igniter) to Django

2015-03-05 Thread Scot Hacker
On Thursday, March 5, 2015 at 4:28:13 AM UTC-8, Alexey Milogradov wrote: > > Hello everyone! > > I would like to collect thoughts, articles, posts, code bases, actually > any shared experience on how to port existing project from PHP to > Python/Django. > The specifics of the process are really

Zinnia models migration error: InvalidBasesError: Cannot resolve bases for []

2015-03-05 Thread Felipe
I'm having a little trouble integrating a zinnia app into my current application. (project)username@computername:~/project/application$ python manage.py migrate Operations to perform: Synchronize unmigrated apps: bootstrap3 Apply all migrations: project, activity, zinnia, sessions, auth, badg

TemplateSyntaxError with {% cycle "Hello, how are you?" "Fine!" %}

2015-03-05 Thread Carsten Fuchs
Dear Django fellows, using Django 1.7.5, I have a problem with commas in string literals in the cycle tag, e.g. with {% cycle "Hello, how are you?" "Fine!" %}. Please consider (newlines added for clarity): $ ./manage.py shell >>> from django.template import * >>> t = Template('''{% cycl

Re: TemplateSyntaxError with {% cycle "Hello, how are you?" "Fine!" %}

2015-03-05 Thread Vijay Khemlani
Changing the double quotes for single quotes seems to do the trick, but I don't know why it works On Thu, Mar 5, 2015 at 1:24 PM, Carsten Fuchs wrote: > Dear Django fellows, > > using Django 1.7.5, I have a problem with commas in string literals in the > cycle tag, e.g. with > > {% cycle "He

Re: TemplateSyntaxError with {% cycle "Hello, how are you?" "Fine!" %}

2015-03-05 Thread Alasdair Nicol
On 05/03/15 16:53, Alasdair Nicol wrote: {% with hello="Hello, how are you?" {% cycle hello "Fine!" %}. {% endwith %} Oops, that should have read: {% with hello="Hello, how are you?" %} {% cycle hello "Fine!" %}. {% endwith %} -- Alasdair Nicol Developer, MEMSET mail: alasd...@memset.com we

Re: TemplateSyntaxError with {% cycle "Hello, how are you?" "Fine!" %}

2015-03-05 Thread Alasdair Nicol
Hi Carsten, Vijay On 05/03/15 16:24, Carsten Fuchs wrote: > Dear Django fellows, > > using Django 1.7.5, I have a problem with commas in string literals in > the cycle tag, e.g. with > > {% cycle "Hello, how are you?" "Fine!" %}. I can reproduce the problem with your sample code. I think t

Re: TemplateSyntaxError with {% cycle "Hello, how are you?" "Fine!" %}

2015-03-05 Thread Carsten Fuchs
Hi Vijay, hi Alasdair, many thanks for your quick replies! I've thus just filed a bug: https://code.djangoproject.com/ticket/24451 Am 05.03.2015 um 17:53 schrieb Alasdair Nicol: I think the reason is that the cycle tag supports an older syntax for backwards compatibility reasons. Yes, that wa

Forms admin

2015-03-05 Thread Aurélio Moreira
Hello guys , I 'm building a system in Django and is my first contact with the language , enjoyed the admin, but my tables have many, many fields even , I would like to know the following : Are you like me to change the output of forms ? I would like to control the layout of the form of each m

Re: Forms admin

2015-03-05 Thread Julien Castets
On Thu, Mar 5, 2015 at 6:49 PM, Aurélio Moreira wrote: > Hello guys , I 'm building a system in Django and is my first contact with > the language , enjoyed the admin, but my tables have many, many fields even > , I would like to know the following : Are you like me to change the output > of forms