Re: error in sql..

2013-03-20 Thread Bulkan
Hi there, Looks like the EXISTS part in your sql is wrong as it needs another sub query. See the documentation at [1] 1 - http://dev.mysql.com/doc/refman/5.0/en/exists-and-not-exists-subqueries.html Cheers http://bulkan-evcimen.com On Thu, Mar 21, 2013 at 4:25 PM, Avnesh Shakya

error in sql..

2013-03-20 Thread Avnesh Shakya
Hi,i m facing problem in mysql line, plz help me,i m unable to get solution... import MySQLdb import urllib import json from bs4 import BeautifulSoup tdd=json.loads(urllib.urlopen('https://www.coursera.org/maestro/api/topic/list2').read()) tsl=tdd['unis'] try:

Re: PostgresSQL or MySql with django?

2013-03-20 Thread Jian Chang
postgres! do what you like 2013/3/18 frocco > Hello, > > What is the recommended database for django? > > I have used MySQL, but am interested in Postgres. > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. >

Re: Can Django do this?

2013-03-20 Thread Rodrigo Morgado
I prefer not using flash and developing agile. Without problem you can do that :) Cheers, El 20/03/2013 22:26, "Harry Ord" escribió: > Hello > > Can i create a website just like this with Django? > > http://www.hbn.cl/ > > -- > You received this message because you are

Re: Can Django do this?

2013-03-20 Thread Bulkan
Yes you certainly can. Here is the tutorial to get you started https://docs.djangoproject.com/en/1.5/intro/tutorial01/ On Thu, Mar 21, 2013 at 1:25 PM, Harry Ord wrote: > Hello > > Can i create a website just like this with Django? > > http://www.hbn.cl/ > > -- > You

Can Django do this?

2013-03-20 Thread Harry Ord
Hello Can i create a website just like this with Django? http://www.hbn.cl/ -- 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

Re: Goodbye, Malcolm

2013-03-20 Thread Kurtis Mullins
R.I.P. On Wed, Mar 20, 2013 at 8:16 PM, Ray Loyzaga wrote: > Hi Jacob, > > Would you be able to email me regarding the future funeral arrangements for > Malcolm. > So far the family are looking at 4th April, in Sydney, but the time (and > the date), haven't been totally

Best practice for making AJAX-heavy Django pages crawlable?

2013-03-20 Thread rogueleaderr
Hi everyone! Here's my problem. I seem to have made a rookie mistake that is preventing Google for indexing my site and I'm trying to figure out how to fix that. I made a Django-powered site that dynamically builds pages by stitching together information from my database with a bunch of

Re: 1.5 custom user model: Add User with default UserCreationForm results in "no such table: auth_user"

2013-03-20 Thread scottanderso...@gmail.com
On Friday, March 1, 2013 2:51:50 AM UTC-5, Russell Keith-Magee wrote: > > The good news is that you can still re-use the form logic in those two > forms -- a form is just a class, so you can subclass them. If you User > model subclasses AbstractUser, all the core fields have the same name and

Re: Goodbye, Malcolm

2013-03-20 Thread Ray Loyzaga
Hi Jacob, Would you be able to email me regarding the future funeral arrangements for Malcolm. So far the family are looking at 4th April, in Sydney, but the time (and the date), haven't been totally settled. It would be great if your could update the notice to include the details, as his family

Re: save as

2013-03-20 Thread Felipe Coelho
> > 2013/3/20 Larry Martell > I'm not outputting any PDF. I have a zip file I want to download to > the user's computer, and I also want my template rendered. That means you have should have two requests, possibly processed by two different views, which is what Felipe

Re: Citing Django

2013-03-20 Thread Russell Keith-Magee
On Thu, Mar 21, 2013 at 5:18 AM, Casey Greene wrote: > Does anyone have a standard way of citing Django? This ticket: > https://code.djangoproject.com/ticket/15379 > seems to indicate that the preferred way might be: > Django core team (2011). Django: A Web framework

Re: Apache JQuery deployment advice

2013-03-20 Thread Michael Pimmer
Have you ever worked with anything like SVN or GIT? Templates are a very basic and useful thing, make sure you know what Django offers and why you don't want to use it. As already mentioned: take a look at django South, too. On 21/03/13 05:28, Sells, Fred wrote: I'm converting a Java jnlp

Re: Changing User model

2013-03-20 Thread Lachlan Musicman
Hey, since I've got this working, I was going to explain it. BUT, in teh intervening period, http://django-userena.org/ was bought to my attention - I will read that coe first and potentially use. cheers L. On 19 March 2013 12:29, Lachlan Musicman wrote: > On 18 March 2013

Citing Django

2013-03-20 Thread Casey Greene
Does anyone have a standard way of citing Django? This ticket: https://code.djangoproject.com/ticket/15379 seems to indicate that the preferred way might be: Django core team (2011). Django: A Web framework for the Python programming language. Django Software Foundation, Lawrence, Kansas, U.S.A.

Re: save as

2013-03-20 Thread Larry Martell
On Wed, Mar 20, 2013 at 3:01 PM, Felipe Prenholato wrote: > I mean, you output PDF. > It's a simple view that output PDF, this view is called via ajax after page > that show HTML loads. I'm not outputting any PDF. I have a zip file I want to download to the user's computer,

Re: save as

2013-03-20 Thread Felipe Prenholato
I mean, you output PDF. It's a simple view that output PDF, this view is called via ajax after page that show HTML loads. Felipe 'chronos' Prenholato. Linux User nº 405489 Home page: http://devwithpassion.com | http://chronosbox.org/blog GitHub: http://github.com/chronossc/ | Twitter:

Re: Apache JQuery deployment advice

2013-03-20 Thread Felipe Prenholato
You can do deploy using git and git tags for version and south migration scripts for db changes. v099 is a git tag in your repository. In some automated way (check fabric). In my case I not gone to fabric yet, so I have a bash script that do: git reset --hard && git pull && git checkout $1

Re: save as

2013-03-20 Thread Larry Martell
On Wed, Mar 20, 2013 at 2:27 PM, Felipe Prenholato wrote: > When page loads (document.ready), do a ajax call to a view that returns PDF > file. How is a PDF file involved here? > 2013/3/20 Larry Martell >> >> On Wed, Mar 20, 2013 at 5:34 AM, Tom

Re: save as

2013-03-20 Thread Felipe Prenholato
When page loads (document.ready), do a ajax call to a view that returns PDF file. Felipe 'chronos' Prenholato. Linux User nº 405489 Home page: http://devwithpassion.com | http://chronosbox.org/blog GitHub: http://github.com/chronossc/ | Twitter: http://twitter.com/chronossc 2013/3/20 Larry

Re: PostgresSQL or MySql with django?

2013-03-20 Thread Felipe Prenholato
I'll bookmark this answer and show to anyone who ask about mysql \m/ Felipe 'chronos' Prenholato. Linux User nº 405489 Home page: http://devwithpassion.com | http://chronosbox.org/blog GitHub: http://github.com/chronossc/ | Twitter: http://twitter.com/chronossc 2013/3/18 Russell Keith-Magee

Re: TDD with Django/Splinter/plupload queue

2013-03-20 Thread Elliot Bradbury
PhantomJS is a headless webkit browser that can be programmed to perform automated webpage tasks (like maybe select a file for upload). The standard API is Javscript but I believe there is a Python port. Maybe that could help? http://phantomjs.org/ On Wed, Mar 20, 2013 at 3:34 PM, Bill Freeman

Re: TDD with Django/Splinter/plupload queue

2013-03-20 Thread Bill Freeman
You can always write a stand alone python tool that pretends that it is a browser, does the GET, confirms that the form looks right, gathers the cookies or other CSRF token souces, and does the POST, including attaching the uploaded data parts. But since this requires dipping into HTTP and HTML

Re: save as

2013-03-20 Thread Larry Martell
On Wed, Mar 20, 2013 at 5:34 AM, Tom Evans wrote: > On Wed, Mar 20, 2013 at 11:28 AM, Larry Martell > wrote: >> Yes, I have convinced them to not require this. Now my issue is how to >> cause a file to be saved and to also render a template.

Appomatic: A django app packaging system based on pip

2013-03-20 Thread egil . moeller
Hi! I'd like to introduce a new mini-framework for Django: Appomatic. Appomatic automates and abstracts away most of the boilerplate code and code generation of a typical Django project, reduces the amount of settings.py clutter and allows for distributing self contained single-click

Apache JQuery deployment advice

2013-03-20 Thread Sells, Fred
I'm converting a Java jnlp app with a tomcat backend to an HTML5/jQuery/AJAX UI with a Django/Apache backend. This is an intranet application with <50 users and a very light workload. Idle 90% of the time and ~5 users active at a time. There are only 2 or 3 pages in the entire project. I

TDD with Django/Splinter/plupload queue

2013-03-20 Thread Daniel França
Hi all, I'm trying to set up tests for a upload using the plupload queue widget: http://www.plupload.com/ I'm using Splinter for in-browser test, but I couldn't find a way to make it happen. Splinter has some methods to attach files, but only if it's a simple file field. Another way would be click

Re: Goodbye, Malcolm

2013-03-20 Thread Jian Chang
Rest in peace 2013/3/21 Ernest Mundia > M.H.S.R.I.P > > > On Wed, Mar 20, 2013 at 6:16 PM, Javi Romero wrote: > >> El martes, 19 de marzo de 2013 18:01:39 UTC+1, Jacob Kaplan-Moss escribió: >> >> Hello fellow Djangonauts, >>> >>> We have difficult

Re: Goodbye, Malcolm

2013-03-20 Thread Ernest Mundia
M.H.S.R.I.P On Wed, Mar 20, 2013 at 6:16 PM, Javi Romero wrote: > El martes, 19 de marzo de 2013 18:01:39 UTC+1, Jacob Kaplan-Moss escribió: > > Hello fellow Djangonauts, >> >> We have difficult news: Malcolm Tredinnick has passed away. >> >> Malcolm was a long-time

Re: Goodbye, Malcolm

2013-03-20 Thread Javi Romero
El martes, 19 de marzo de 2013 18:01:39 UTC+1, Jacob Kaplan-Moss escribió: > Hello fellow Djangonauts, > > We have difficult news: Malcolm Tredinnick has passed away. > > Malcolm was a long-time contributor to Django, a model community member, > a brilliant mind, and a friend. His

RE: PostgresSQL or MySql with django?

2013-03-20 Thread Patrick Craston
Alternatively, I've found this tool works very well: https://pypi.python.org/pypi/py-mysql2pgsql (only thing to look out for are Django IPAddressFields as they are char(15) fields in MySQL and inet fields in Postgres - py-mysql2pgsql is obviously not aware of this) HTH Patrick -Original

Re: PostgresSQL or MySql with django?

2013-03-20 Thread Tom Evans
On Wed, Mar 20, 2013 at 1:54 PM, frocco wrote: > Hello, > > I know this is not django related, but can someone help me with the syntax > to port mysql to postgresql? > I tried the mysqldump command with the postgresql compatibility option, but > I still cannot import the data.

Re: PostgresSQL or MySql with django?

2013-03-20 Thread frocco
Hello, I know this is not django related, but can someone help me with the syntax to port mysql to postgresql? I tried the mysqldump command with the postgresql compatibility option, but I still cannot import the data. Thanks On Monday, March 18, 2013 11:30:35 AM UTC-4, frocco wrote: > >

Re: stupid order by question

2013-03-20 Thread Larry Martell
On Wed, Mar 20, 2013 at 6:56 AM, Branko Majic wrote: > On Wed, 20 Mar 2013 06:48:26 -0600 > Larry Martell wrote: > >> karlfs = Klarf.objects.filter(dr4i_id=dr4i.id).order_by(defect__name) >> >> But I'm getting NameError: "global name 'defect__name' is

stupid order by question

2013-03-20 Thread Larry Martell
I have these tables: class Defect(models.Model): name = models.CharField(max_length=100) class Klarf(models.Model): dr4i = models.ForeignKey(DR4i, db_index=True) defect = models.ForeignKey(Defect) xrel = models.FloatField(null=True) yrel = models.FloatField(null=True) I have

Re: Trouble in getting django session on app engine

2013-03-20 Thread Tom Evans
On Wed, Mar 20, 2013 at 10:19 AM, Suja C Varghese wrote: > I have read this and tried using django sessions. And i got error - > ImproperlyConfigured: settings.DATABASES is improperly configured. Please > supply the ENGINE value. Check settings documentation for more details.

Trouble in getting django session on app engine

2013-03-20 Thread Suja C Varghese
I have read thisand tried using django sessions. And i got error - ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.

Pickling of dinamically created models.Model subclasses: "attribute lookup failed", django 1.5

2013-03-20 Thread Sir Anthony
Hello, I'm using django-audit-log witch actively creates dynamic models by calling type('%sAuditLogEntry' % meta_name, (models.Model,), attrs). In

Re: save as

2013-03-20 Thread Tom Evans
On Wed, Mar 20, 2013 at 11:28 AM, Larry Martell wrote: > Yes, I have convinced them to not require this. Now my issue is how to > cause a file to be saved and to also render a template. When I return > this: > > response = HttpResponse('This is what I want to

Re: save as

2013-03-20 Thread Larry Martell
On Wed, Mar 20, 2013 at 2:50 AM, Branko Majic wrote: > On Tue, 19 Mar 2013 19:27:33 -0600 > Larry Martell wrote: > >> On Tue, Mar 19, 2013 at 7:07 PM, Tim Chase >> wrote: >> > On 2013-03-19 18:42, Larry Martell wrote: >>

Re: Can't create an object with a foreign key

2013-03-20 Thread Tom Evans
On Tue, Mar 19, 2013 at 5:13 PM, Cody Scott wrote: > I get the error when I try to make an object. > >> Cannot assign "u'Category object'": "Course.category" must be a "Category" >> instance. > > > here is my admin form > > admin.py > > admin.site.register(Category,

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2013-03-20 Thread Andrei
Hi again, I have managed to run into the issue on a project not using Django CMS. It also runs gunicorn with gevent. Andrei On Thursday, November 29, 2012 12:03:10 AM UTC+1, Michael Dippery wrote: > > I have a Django app running on a production server. It is handled with > gunicorn 0.14.2

Re: Help with Django form wizard.

2013-03-20 Thread Dilip M
On Thu, Mar 7, 2013 at 9:21 PM, Dilip M wrote: > Hi, > > Here is what I am trying to do. Get the root folder name in form 1 and > list the found sub directories (matching a pattern) and give an > option for user to select the sub dirs. Once selected, I want to save the >

Re: Authentication with Email

2013-03-20 Thread Frank Bieniek
Hi, take a look at http://www.django-userena.org/ customziable login and registration. Thanks Frank Am 20.03.2013 01:09, schrieb fire_water: Hi, I am fairly new to Django and have started building a website that will require users to create an account with a username, email address, and

Re: save as

2013-03-20 Thread Branko Majic
On Tue, 19 Mar 2013 19:27:33 -0600 Larry Martell wrote: > On Tue, Mar 19, 2013 at 7:07 PM, Tim Chase > wrote: > > On 2013-03-19 18:42, Larry Martell wrote: > >> https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ which > >> says