Re: New field in django

2013-09-09 Thread Mike Dewhirst
On 10/09/2013 3:28pm, Harjot Mann wrote: On Mon, Sep 9, 2013 at 10:59 AM, Xavier Ordoquy wrote: The message is: "Table 'tcc_report' already exists" This means that you already created the tables with syncdb which bypassed south and you're trying to created them again with south. You'll be abl

Re: New field in django

2013-09-09 Thread Harjot Mann
On Mon, Sep 9, 2013 at 10:59 AM, Xavier Ordoquy wrote: > The message is: "Table 'tcc_report' already exists" > > This means that you already created the tables with syncdb which bypassed > south and you're trying to created them again with south. > You'll be able to recover from this by: > - ensu

Jobs in Newcastle NSW Australia

2013-09-09 Thread Peter Williams
Hi all The NSW Rural Doctors Network seeks a GRADUATE SYSTEMS ENGINEER and a SYSTEMS ENGINEER TEAM LEADER to be based in our Head Office in Newcastle’s CBD. These positions will provide services to the Information Management team utilising high-level development languages and libraries such a

Re: Advanced Tutorial (how to write reusable app), last step does not work

2013-09-09 Thread Robin Lery
In order to create a reusable app, you have to create a new 'templates' folder in your app and place the the absolute path in the templates directory in your settings.py. And then create the html files as concerned with your app in the templates directory you created within the app. Robin On Tue

Re: URL Mapping Confusion

2013-09-09 Thread Thomas Lockhart
On 9/9/13 5:40 PM, Chris Kavanagh wrote: This is just a tutorial I'm going through Tom. I'm not trying to write anything, just trying to understand this part. And I apologize for making my question(s) confusing, I'm not exactly sure how to ask it. Let's back up for a second. I'm not trying to

Using PredictionIO with Django - where to put client creation?

2013-09-09 Thread Victor Hooi
Hi, I have a Django app that I'm using with PredictionIO (http://prediction.io/), which is a wrapper around Apache Mahout. They also have a Python client that sends data to the backend server: http://pythonhosted.org/PredictionIO/predictionio.html As part of this, I've attached post_save signa

Re: Mezzanine Gunicorn Problem

2013-09-09 Thread Mario Gudelj
What's the issue Kelvin? Is the gunicorn process dying? I remember having some issues with starting gunicorn and mezzanine and it was due to locale. Make sure you have a correct locale in the settings. You can run the locale command in the shell to obtain it it for the machine you're on: $ locale

Re: URL Mapping Confusion

2013-09-09 Thread Chris Kavanagh
This is just a tutorial I'm going through Tom. I'm not trying to write anything, just trying to understand this part. And I apologize for making my question(s) confusing, I'm not exactly sure how to ask it. Let's back up for a second. I'm not trying to match anything, I was telling you what I alre

Re: URL Mapping Confusion

2013-09-09 Thread Thomas Lockhart
Tom, thanks so much for the reply. . .Yes, that was a typo, it should've been "/articles" not "/article". I know this is going to be a stupid question, but why do my "urlconf" paths need to have "/articles" in it as you said? There are three steps in the interpretation of the patter

Re: URL Mapping Confusion

2013-09-09 Thread Thomas Lockhart
On 9/9/13 3:30 PM, Chris Kavanagh wrote: I haven't used this group in a long time, so I hope I do everything correctly. If I don't, I apologize in advance. I thought I understand the way django uses URL's in the urlconf to match URL's, but I was wrong. Here's my question: Here's my urlconf.

Re: URL Mapping Confusion

2013-09-09 Thread Chris Kavanagh
On Monday, September 9, 2013 6:41:23 PM UTC-4, Thomas wrote: > > On 9/9/13 3:30 PM, Chris Kavanagh wrote: > > I haven't used this group in a long time, so I hope I do everything > > correctly. If I don't, I apologize in advance. > > > > I thought I understand the way django uses URL's in the

URL Mapping Confusion

2013-09-09 Thread Chris Kavanagh
I haven't used this group in a long time, so I hope I do everything correctly. If I don't, I apologize in advance. I thought I understand the way django uses URL's in the urlconf to match URL's, but I was wrong. Here's my question: Here's my urlconf. . . url(r'^all/$', 'article.views.articles

Re: Email Validation when adding a user to the backend

2013-09-09 Thread Gladson Simplício Brito
I tell you to upgrade to django 1.5 But to solve palliation: https://github.com/GoodCloud/django-longer-username 2013/9/9 Russell Keith-Magee > Hi, > > If you're using Django 1.1, you're probably hitting up against the 30 > character limit for usernames. first name.secondn...@domain.com, for >

Re: Mezzanine Gunicorn Problem

2013-09-09 Thread Kelvin Wong
> > This is the command (single line) that I am using for a Django app using > Gunicorn (and Supervisor). It is running with a virtualenv which explains > the python executable. > > /home/myapp/.virtualenvs/productionmyapp/bin/python > /home/myapp/webapps/production_fido/fido/manage.py run_guni

Re: Email Validation when adding a user to the backend

2013-09-09 Thread Russell Keith-Magee
Hi, If you're using Django 1.1, you're probably hitting up against the 30 character limit for usernames. first name.secondn...@domain.com, for example, is 32 characters. You might also be hitting against a specific character invalidation -- I'd need to go back and check when we started allowing fu

Re: Geodjango and Kriging

2013-09-09 Thread Derek
As Stefano said - "not really". GeoDjango is more designed around data storage and display, and not processing. There is an interesting discussion here: https://groups.google.com/forum/#!topic/scipy-user/3wrplHcl9YY and a potential library here: http://hpgl.aoizora.org/ Derek On Saturday, 7 Se

Meta class ordering by related field in ManyToMany model?

2013-09-09 Thread Brian
I'm setting up a database for data related to sporting event stats. My database has a Game model, which is linked to a TeamGame model (stats related specifically to each team that played in that game). These two models are linked as ManyToMany, as we're going to have multiple games and each ga

Re: sorl-thumbnail or easy thumbnail with apache

2013-09-09 Thread Robin Lery
I have used it in the templates. Do i use it in the models for uploaded images??? On Tue, Sep 10, 2013 at 1:31 AM, Robin Lery wrote: > Hello, > Has anyone tried sorl-thumbnail or easy_thumbnail with apache for users > uploaded media images??? I am really stuck with these. When I upload it > usi

sorl-thumbnail or easy thumbnail with apache

2013-09-09 Thread Robin Lery
Hello, Has anyone tried sorl-thumbnail or easy_thumbnail with apache for users uploaded media images??? I am really stuck with these. When I upload it using the apache server, it does not load the uploaded image, it only loads the ones that have been run through the django's inbuilt server. And onl

Re: Advanced Tutorial (how to write reusable app), last step does not work

2013-09-09 Thread asherakhet06
Hello. I'm a rookie as well and I'm having exactly this same issue. Trying to figure out what to do, but haven't been successful unfortunately. Based on what I read (convention over configuration), I understand that I should to make a poll_list.html file and store this in templates, to get

Django 1.6, Savepoints, and assertNumQueries

2013-09-09 Thread marky1...@gmail.com
1.6 introduces savepoints, which create additional queries to the databse. This behavior breaks tests that use assertNumQueries and did not consider savepoints (For example, if you test using a sqlite database). How should these tests be fixed? The docs

Django and soaplib xmlns problem

2013-09-09 Thread kl4us
Hi all, I'm developing a soap service with django 1.5.2, python 2.7.3 and soaplib 0.8.1. For now a simple method works fine but ... how i can add *xmlns* to response? This is my view.py from sms.soaplib_handler import DjangoSoapApp, soapmethod, soap_typesfrom django.views.decorators.csrf impor

Re: Complex query

2013-09-09 Thread Drew Ferguson
On Mon, 9 Sep 2013 06:57:46 -0700 (PDT) Yegor Roganov wrote: > Thanks for you replies. > But I wonder how real production web sites deal with this problem. The > problem is that I want to display about 30 topics per page which would > result in 30+1 queries if implemented naively. If I write th

Re: Complex query

2013-09-09 Thread Yegor Roganov
Thanks for you replies. But I wonder how real production web sites deal with this problem. The problem is that I want to display about 30 topics per page which would result in 30+1 queries if implemented naively. If I write the required query in raw SQL, it should be faster, but probably not ver

Re: bad request 400

2013-09-09 Thread Marcin Szamotulski
The problem has solved somehow (reboot). Marcin On 19:08 Sun 08 Sep , Germán wrote: > If you don't post your code it's quite difficult to help yo > On Sunday, September 8, 2013 3:34:33 PM UTC-5, Marcin Szamotulski wrote: > > > > Hello, > > > > I start working on a new app. I started in the

Re: How do I output a variable from Models.py to Detail.html?

2013-09-09 Thread Daniel Roseman
On Monday, 9 September 2013 10:24:54 UTC+1, Pepsodent Cola wrote: > This is my Models code and I want to output the contents of variable * > blackbox* to my screen. > > 1.) Do I need to write some code in Views.py to transfer my variable > "blackbox" from Models to Views to Detail.html? > 2.) O

How do I output a variable from Models.py to Detail.html?

2013-09-09 Thread Pepsodent Cola
This is my Models code and I want to output the contents of variable * blackbox* to my screen. 1.) Do I need to write some code in Views.py to transfer my variable "blackbox" from Models to Views to Detail.html? 2.) Or can I access my variable "blackbox" directly from Detail.html? #___

Email Validation when adding a user to the backend

2013-09-09 Thread vanderkerkoff
Hello there. We're running a 1.1 django application and have run into a bit of a problem. Recently our organisation decided to change its email addresses. Moving from myn...@domain.com, to firstname.secondn...@domain.com I've just tried adding a user to the site and I'm bumping up against an i

Re: Exception Value: global name 'dictfetchall2' is not defined

2013-09-09 Thread Pepsodent Cola
Yeah I will revert back to standalone function later on after I have confirmed something. I just want to output this variable on my screen still don't know how to accomplish that with confusing MVC code... desc = p.description Somebody gave me a link to the document specification regarding how

how to turn off logging debug to be printed in apache's error log when django's DEBUG=False

2013-09-09 Thread Nick Jiang
I have set a debug logger to print debug infos to console. This works fine in development environment. But in production, debug info redirect to apache error log file, i guess this is one behaviour related to mod_wsgi. People say there's a setting control in django 1.5 version, but how can i tu

Re: Complex query

2013-09-09 Thread akaariai
On Monday, September 9, 2013 12:13:09 AM UTC+3, Yegor Roganov wrote: > > I found out this is a so called "top n per group" problem and it's not > that easy to implement in django. Maybe someone could help me to find > another way (for example, alter the schema in some way)? > This is something t