Re: New design for class-based views

2011-12-03 Thread akaariai
On Dec 3, 8:56 pm, Tobia Conforto wrote: > I haven't taken the time to translate the whole django.views.generic > package to this new design, but I will do so shortly, assuming I get > some kind of positive feedback. The existing functionality (the > various generic

Re: Bulk import of data

2011-12-03 Thread Karen Tracey
On Sat, Dec 3, 2011 at 9:37 PM, Nathan McCorkle wrote: > when you say 'as long as you don't use the ORM for inserts', You do not want to be building and saving objects individually with the ORM. You want to be using some form of bulk insert. Django 1.4 will add bulk create

Re: Bulk import of data

2011-12-03 Thread Nathan McCorkle
On Fri, Dec 2, 2011 at 6:22 AM, Cal Leeming [Simplicity Media Ltd] wrote: > Faster in what sense? Prototyping/development time, or run time? Well I can count the lines in each file in a few seconds, so I think the SQL stuff is slowing everything down (using

Re: Pointing to Memcached on Remote Server

2011-12-03 Thread huseyin yilmaz
Also check memcached configuration (/etc/memcached.conf) from this file,you can limit IP addresses that memcached listening to here is a configuration parameter that you might have # Specify which IP address to listen on. The default is to listen on all IP addresses # This parameter is one of the

Re: Console output using runserver..

2011-12-03 Thread vivek_12315
I just figured out that if I use : http://127.0.0.1:8081/ner/ then I am getting print output in console, but if I use: http://localhost:8081/ner/ then i am not getting the output Whats the reason behind this / ?? On Dec 3, 12:34 pm, vivek_12315

Re: Is it possible to use MS SQL 2008 as the Django database engine?

2011-12-03 Thread David Fischer
It is possible. The two major projects that I know of are django-pyodbcwhich I have used quite a bit and django-mssql which I have not used. Django-mssql only works on Windows and I have no experience with it.

Re: Console output using runserver..

2011-12-03 Thread vivek_12315
This is what Django webpage is showing as error: OperationalError at /ner/ no such table: b_mp_TABLE Request Method: POST Request URL:

New design for class-based views

2011-12-03 Thread Tobia Conforto
Hello As you may know, current class-based views have been criticized for their complexity. Their design is a bit convoluted and difficult to understand by the average view author and therefore any work made with them may hide sneaky bugs. On top of that, it's difficult to apply common

Re: Error in syncdb

2011-12-03 Thread Jeff Heard
Never mind. My error was elsewhere. A little putzing around led me to realize that you can't put db_index=True into a geometry field of any sort in PostGIS backend. On Sat, Dec 3, 2011 at 11:25 AM, Jeff Heard wrote: > I have a custom field type that I defined, and

Error in syncdb

2011-12-03 Thread Jeff Heard
I have a custom field type that I defined, and now I can't do a syncdb. The relevant bits of the type are class PyMongoField(models.CharField): __metaclass__ = models.SubFieldBase ... def db_type(self, connection): return 'varchar(64)' ... But I just get this when I do reset

Is it possible to use MS SQL 2008 as the Django database engine?

2011-12-03 Thread Petr Přikryl
Hi, Do you have any experience with using Microsort SQL Server 2008 as the Django database engine? I understand that it is not supported directly. However, is it possible to add some kind of module that implements the Django database interface for the MS SQL? Thanks for your time and

Multiple access to static data

2011-12-03 Thread mf
I'm building an application and I'm having trouble making a choice about how is the best way to access multiple times to static data in a django app. My experience in the field is close to zero so I could use some help. The app basically consists in a drag & drop of foods. When you drag a food to