Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-12 Thread Javier Guerra Giraldez
On Thu, Jul 12, 2012 at 2:37 PM, Cal Leeming [Simplicity Media Ltd] wrote: > Just a reminder that the poll will be closing in two days time, if you > haven't already booked, please do so now! I thought somebody asked this but can't find it now... is there any recording of the first one available

dashboard for user profile

2012-07-12 Thread psychok7
i there, i am trying to write a dashboard page to present after user login. i have been searching google and only found *django-admin-tools . won*dering if there is something like that for a user profile page (tried django-profiles with no luck) thanks -- You received this message because you

Re: model translationissue

2012-07-12 Thread Ian Clelland
On Thursday, July 12, 2012, Phil wrote: > Hi, > > I'm trying to translate form names from a model. I have a working contact > form for example and have the following code > > > > from django import forms > from django.core.mail import mail_managers > from django.ut

Re: use same database across various applications in a django project?

2012-07-12 Thread Gink Labrev
https://docs.djangoproject.com/en/dev/topics/db/models/#meta-options 2012/7/12 Gink Labrev > If the problem is the table name, use > db_table > to set database table name. > > 2012/7/12 Burhan > >> Hi

Re: use same database across various applications in a django project?

2012-07-12 Thread Gink Labrev
If the problem is the table name, use db_table to set database table name. 2012/7/12 Burhan > Hi, > > I have a project which has two applications, app_1 and app_2, when I run > "python manage.py syncdb"

Re: Error in blog

2012-07-12 Thread jun
Sorry if the question wasn't clear enough, and yes, I did read up on urlpatterns on djangoproject but did not understand everything yet :( I followed the code here http://lightbird.net/dbe/blog.html up to the section 'Front Page View' and is supposed to obtain a display like this http://lightbi

use same database across various applications in a django project?

2012-07-12 Thread Burhan
Hi, I have a project which has two applications, app_1 and app_2, when I run "python manage.py syncdb" it creates tables defined in model.py (same for both apps), but it creates tables like app_1_table1, app_1_table1, app_2_table1, app_2_table2, however, i want both applications use the same t

ajax loading html

2012-07-12 Thread ledzgio
Hi, I have to load with ajax (using qtip2) a certain HTML file, and I have to specify a URL to the html page, that is located within the template directory. I have tried but the path doesn't mach. Should I have to add a line to the urls.py and views.py? or can I load that HTML page in other wa

model translationissue

2012-07-12 Thread Phil
Hi, I'm trying to translate form names from a model. I have a working contact form for example and have the following code from django import forms from django.core.mail import mail_managers from django.utils.translation import ugettext_lazy as _ class ContactF

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-12 Thread Cal Leeming [Simplicity Media Ltd]
Just a reminder that the poll will be closing in two days time, if you haven't already booked, please do so now! On Tue, Jul 3, 2012 at 12:35 AM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Just in case anyone missed the URL, you can book your slot here: >

Re: django-admin.py makemessages issue

2012-07-12 Thread Phil
Now I'm getting the following error... Error: errors happened while running xgettext on __init__.py /bin/sh: 1: xgettext: not found It creates the right folders, but no .mo files. On Thursday, July 12, 2012 7:13:14 PM UTC+1, Phil wrote: > > ugh, that would explain it! Thanks a lot Tomas. > > O

Re: django-admin.py makemessages issue

2012-07-12 Thread Phil
ugh, that would explain it! Thanks a lot Tomas. On Thursday, July 12, 2012 7:02:11 PM UTC+1, Tomas Neme wrote: > > "django-admin.py makemessages -l de" > "django-admin.py makemessages -l es" > > > > Hi, > > > > (django version 1.3.1, Python2.7) > > > > (at the end of my settings file) > > =

Re: object has no attribute '_state'

2012-07-12 Thread aria
Hello, I realize this post is from 2010, but I also had this problem as of July 12 2012. It's still one of the first results in a search for the error, so I'm posting for future googlers. According to the Django Model reference

Re: django-admin.py makemessages issue

2012-07-12 Thread Tomas Neme
"django-admin.py makemessages -l de" "django-admin.py makemessages -l es" On Thu, Jul 12, 2012 at 2:59 PM, Phil wrote: > Hi, > > (django version 1.3.1, Python2.7) > > (at the end of my settings file) > > # translation support > ugettext = lambda s: s > > LANGUAGES = ( >

django-admin.py makemessages issue

2012-07-12 Thread Phil
Hi, (django version 1.3.1, Python2.7) (at the end of my settings file) # translation support ugettext = lambda s: s LANGUAGES = ( ('en', ugettext('English')), ('es', ugettext('Spanish')), ('de', ugettext('German')), ) LOCALE_PATHS = ( '/home/phil/project

Re: Static File - help, for a question

2012-07-12 Thread Dott. Tegagni Alessandro
Ok, but Static_root in settings.py is empty, so i import static_url or staticfiles_dirs ? In static_url there is define '/static/' In staticfiles_dirs are define: ( '/home/alessandro/Scrivania/progetto/media/photos/custodia/', '/home/alessandro/Scrivania/progetto/media/definitiva/', '/h

Django Development Opp in DC!

2012-07-12 Thread Amy Jacques
Hi All! I am currently recruiting for multiple full time, permanent Django Development opps in DC! Will relocate for the right person! Only 2 years of professional Django Development experience required! Please contact me! a...@themidtowngroup.com! Thanks- Amy Jacques Senior Technical

Re: Error in blog

2012-07-12 Thread luthur
i think you probably could visit http://stackoverflow.com/questions/625047/django-newbie-reverse-not-found for solution -- luthur On Thursday, July 12, 2012 at 11:30 PM, Tomas Neme wrote: > Have you done the django tutorial, first? it covers named urls > > On Thu, Jul 12, 2012 at 11:06 AM

Re: Error in blog

2012-07-12 Thread Tomas Neme
Have you done the django tutorial, first? it covers named urls On Thu, Jul 12, 2012 at 11:06 AM, luthur wrote: > why not post your example? It's too abstract. > > -- > luthur > > On Thursday, July 12, 2012 at 9:56 PM, jun wrote: > > > > On Thursday, July 12, 2012 7:40:46 PM UTC+8, lawgon wrote: >

Re: Error in blog

2012-07-12 Thread luthur
why not post your example? It's too abstract. -- luthur On Thursday, July 12, 2012 at 9:56 PM, jun wrote: > > > On Thursday, July 12, 2012 7:40:46 PM UTC+8, lawgon wrote: > > On Wed, 2012-07-11 at 23:29 -0700, jun wrote: > > > I was trying out the blog example in Django by Example but ran

Oracle error when filtering on one2many related TextField (nclob)

2012-07-12 Thread c.poll...@bangor.ac.uk
Hi All I hope someone can help with a really frustrating problem I'm having. I have the following models class Output(models.Model): title = models.CharField(u'Title', max_length=1024, db_index=True) ingest_time = models.DateTimeField(u'Ingest timestamp' , default=datetime.now())

Re: Set two fields to the same value

2012-07-12 Thread luthur
you could only assign a Field variable in the Model, "time" absolutely not a Field, the error appears. -- luthur On Thursday, July 12, 2012 at 9:51 PM, Jaroslav Dobrek wrote: > Hello, > > how can I design a model such that two fields are set to the same value when > a new object of the ty

Re: Django connection pooling using sqlalchemy connection pool

2012-07-12 Thread Javier Guerra Giraldez
On Wed, Jul 11, 2012 at 6:45 PM, Russell Keith-Magee wrote: > There is a reason that Django doesn't manage connection pooling -- > it's because it's handled quite well by third party tools like pgPool. is there any similar tool for mysql? i've seen a few, but doesn't look so well accepted as Pos

RE: Set two fields to the same value

2012-07-12 Thread lacrymol...@gmail.com
You could override .save... -Mensaje original- De: Jaroslav Dobrek Enviados: 12/07/2012 10:51:08 Asunto: Set two fields to the same value Hello, how can I design a model such that two fields are set to the same value when a new object of the type defined by the model is created? Exa

Re: Error in blog

2012-07-12 Thread jun
On Thursday, July 12, 2012 7:40:46 PM UTC+8, lawgon wrote: > > On Wed, 2012-07-11 at 23:29 -0700, jun wrote: > > I was trying out the blog example in Django by Example but ran into > > this error: > > Reverse for 'blog_post_add' with arguments '()' and keyword arguments > '{}' not found. > >

Set two fields to the same value

2012-07-12 Thread Jaroslav Dobrek
Hello, how can I design a model such that two fields are set to the same value when a new object of the type defined by the model is created? Example: class Test(models.Model): start_time = models.DateTimeField() end_time = models.DateTimeField() time = start_time Users may create

Re: Error in blog

2012-07-12 Thread kenneth gonsalves
On Wed, 2012-07-11 at 23:29 -0700, jun wrote: > I was trying out the blog example in Django by Example but ran into > this error: > Reverse for 'blog_post_add' with arguments '()' and keyword arguments '{}' > not found. > > I think it has something to do with the urlpatterns since there is > no

Error in blog

2012-07-12 Thread jun
Hi, I was trying out the blog example in Django by Example but ran into this error: Reverse for 'blog_post_add' with arguments '()' and keyword arguments '{}' not found. I think it has something to do with the urlpatterns since there is no /blog/post/add

SelectDateWidget labels

2012-07-12 Thread James Rivett-Carnac
I am trying to put labels on subwidgets in SelectDateWidget, but I cannot see how to do this easily. The only way I can see to do this is to rewrite the render function to add in a label before each input. The problem with this is the label then is embeded with the select boxes and can't be ac

Re: Hiding auto-generated Django form fields

2012-07-12 Thread Leandro Alves
You might find something here: https://docs.djangoproject.com/en/1.4/ref/forms/api/#configuring-html-label-tags Leandro On Thursday, July 12, 2012 8:57:30 AM UTC+2, DF wrote: > > I'm attempting to hide an auto-generated form field in a Django form using > CSS. Unfortunately, to remove the enti

Re: mysql warnings raise exception

2012-07-12 Thread Derek
George When issues with existing bugs get raised on this list. someone from "higher up" usually suggests you need to post on the developers list (apologies if you have already done; I do not subscribe to that list). Derek On Tuesday, 10 July 2012 19:10:54 UTC+2, George Lund wrote: > > I notice