Re: psycopg2

2012-11-18 Thread Mike Dewhirst
A very useful resource for Windows users is http://www.lfd.uci.edu/~gohlke/pythonlibs/ ... where you can download the compiled psycpg2 package you need. Also, I prefer pip rather than easy-install Good luck. Mike On 18/11/2012 6:36pm, Jun Tanaka wrote: Thank you for your advise. I used t

Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb

2012-11-18 Thread Sandeep kaur
On Sun, Nov 18, 2012 at 4:11 AM, Cj Taylor wrote: > That package installs into my python directory but not python3. I'm > currently trying to get Django 1.5 to work with python3. Are there other > ways currently to get mysql to work with django and the python3 environment? See if this helps : h

http://lightbird.net/dbe/ ... django by example help

2012-11-18 Thread boxcarlo
Hi, I'm not very expert on python and django, I'm investigating now these incredible tools. I found online http://lightbird.net/dbe/ - "Django by example", an excellent tutorial to experiment with simple apps. I'm trying to work on the example n. 3 "Photo Organizer and Sharing App", but when I

Re: Should we have a database independent SQL like query language in Django?

2012-11-18 Thread Peter of the Norse
It sounds to me like you are saying “Django ORM should be better”, which is true. But the entire point of SQL is that it’s a common database language. You don’t know what it was like back in the day when every vendor had a different language. Most queries that use a common feature set work fine

Re: http://lightbird.net/dbe/ ... django by example help

2012-11-18 Thread donarb
When you look at the web page, the code in the "Enhancing Admin" section is code that should be added to the code in the first listing. So the import statements that you need are already there. On Sunday, November 18, 2012 7:05:54 AM UTC-8, boxcarlo wrote: > > Hi, > I'm not very expert on pyth

Re: index_together...shouldn't indexes be created AFTER populating the table?

2012-11-18 Thread Cal Leeming [Simplicity Media Ltd]
Hello Chris, You are correct that creating indexes AFTER importing data is generally the fastest approach, but there is currently no automated tool that will do this all for you. I actually did a blog post about this not so long ago, and it goes into some detail; http://blog.simplicitymedialtd.co

Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb

2012-11-18 Thread I単igo Medina
On Sat, 17 Nov 2012, Cj Taylor wrote: That package installs into my python directory but not python3. I'm currently trying to get Django 1.5 to work with python3. Are there other ways currently to get mysql to work with django and the python3 environment? Check out pymysql: https://github.c

Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb

2012-11-18 Thread I単igo Medina
On Sat, 17 Nov 2012, Cj Taylor wrote: That package installs into my python directory but not python3. I'm currently trying to get Django 1.5 to work with python3. Are there other ways currently to get mysql to work with django and the python3 environment? Check out pymysql: https://github.c

Re: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb

2012-11-18 Thread I単igo Medina
On Sat, 17 Nov 2012, Cj Taylor wrote: That package installs into my python directory but not python3. I'm currently trying to get Django 1.5 to work with python3. Are there other ways currently to get mysql to work with django and the python3 environment? Check out pymysql: https://github.c

Django handles inheritance tables with entries in them plugged in?

2012-11-18 Thread Federico Erbea
To give an example: I create a table "Library" in which I create 3 Libraries. Then create a table "Author" in which three authors associate each of the three libraries created before, so far I can manage very well with ForeignKey ... I then create another table "Book" which will specify the title

Is there a way to generate documentation for the URLs supported by the app

2012-11-18 Thread Eswar Vandanapu
Hello, We are developing our Django application such that the UI is completely client side MVC, and Django will serve either CSV data, or json responses for the UI to consume. In this regard, each URL is essentially an API for others to consume. (I am sure this is the new norm). Is the

Re: Need help with Query: Q Objects and .extra()

2012-11-18 Thread est
Sorry for bumping this old this, but I found solutionfor this problem qs = models.MyModel.objects.filter(a=1) qs |= models.MyModel.objects.filte(b=2).extra(where=[""]) I checke the generated SQL and it's working exactly as expected. Hope this helps anyone

Re: Reason for not allowing spaces in usernames?

2012-11-18 Thread Cal Leeming [Simplicity Media Ltd]
(imo) Allowing spaces in username just isn't a very sane approach. Rather than telling the user to choose a username, why not make them login with their email address instead? Users are less likely to forget their email address, and if anything, it would be less error prone than a username would,

Re: Django handles inheritance tables with entries in them plugged in?

2012-11-18 Thread I単igo Medina
On Sun, 18 Nov 2012, Federico Erbea wrote: To give an example: I create a table "Library" in which I create 3 Libraries. Then create a table "Author" in which three authors associate each of the three libraries created before, so far I can manage very well with ForeignKey ... I then create anot

Re: Reason for not allowing spaces in usernames?

2012-11-18 Thread Elena Williams
Apparently some weirdness can be caused by having email addresses as usernames in django, though I'm not sure specifically what this is. Does anyone know these cases? --- Elena :) @elequ On Mon, Nov 19, 2012 at 4:05 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk>

Questions about Installing Django & Python

2012-11-18 Thread New to Django / Python
Hi, I am completely new to programming (despite knowing basic HTML and CSS). I am trying to install python and django and have successfully installed the python shell (i think - see attachment 1). Where I am having difficulty is in install django. I have downloaded the django packages (lates

Re: Reason for not allowing spaces in usernames?

2012-11-18 Thread Russell Keith-Magee
If you need to do login via email address, it is possible right now -- it's just a little convoluted. You need to play around with custom authentication backends, and rewrite a bunch of forms. In Django 1.5, we're addressing this by making the User model customisable. That means you can specify th

Re: Reason for not allowing spaces in usernames?

2012-11-18 Thread Russell Keith-Magee
One obvious problem case -- email addresses longer than 30 characters. The current username field has a 30 character max, which is easy to exceed if you try and put email addresses into the username field. Django 1.5 addresses this by allowing your user model to be customisable, so you can make th

Re: Questions about Installing Django & Python

2012-11-18 Thread New to Django / Python
Hi I have just installed django by doing it through CMD. Going through the tutorial now. On Monday, 19 November 2012 16:23:05 UTC+11, New to Django / Python wrote: > > Hi, > > I am completely new to programming (despite knowing basic HTML and CSS). > > I am trying to install python and django a

Re: Questions about Installing Django & Python

2012-11-18 Thread Iñigo Medina
On Sun, 18 Nov 2012, New to Django / Python wrote: Hi, I am completely new to programming (despite knowing basic HTML and CSS). I am trying to install python and django and have successfully installed the python shell (i think - see attachment 1). Sorry, but I don't get any attachment. W