What's wrong with the Basic configuration of apache and mod_python?

2013-05-09 Thread lx
hi: the the Basic configuration of apache is: LoadModule python_module /usr/lib64/httpd/modules/mod_python.so SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonOption django.root /mysite

Re: Django html input error

2013-05-09 Thread Rodolfo
Hi, I updated Django to version 1.5.1 and now everything is OK. Thank you Em segunda-feira, 6 de maio de 2013 22h35min45s UTC-3, Rodolfo escreveu: > Hi, > > I get an > "UnicodeEncodeError 'ascii' codec can't encode character '\xe3' in > position 1: ordinal not in range(128)" > >

Re: Hello everyone, can you tell me a good django's book that explains the various functions but at the same time develop a complete website chapter by chapter?

2013-05-09 Thread Russell Keith-Magee
I wouldn't be *too* concerned about the version numbers covered by books. Django has a strict backwards compatibility policy, specifically so that code will continue to work between versions. We've added features, and fixed bugs, but we've tried very hard to ensure that code will continue to work

Re: DJango MySQL database connection problem

2013-05-09 Thread Larry Martell
On Thu, May 9, 2013 at 4:33 PM, wrote: > yum install MySQL-python > Loaded plugins: fastestmirror, kmod > Loading mirror speeds from cached hostfile > * base: mirror.hmc.edu > * extras: mirror.sanctuaryhost.com > * rpmforge: mirror.hmc.edu > * updates:

DJango MySQL database connection problem

2013-05-09 Thread webgamer . sc
yum install MySQL-python Loaded plugins: fastestmirror, kmod Loading mirror speeds from cached hostfile * base: mirror.hmc.edu * extras: mirror.sanctuaryhost.com * rpmforge: mirror.hmc.edu * updates: mirror.veracruz.co Setting up Install Process Package MySQL-python-1.2.3-0.1.c1.el5.x86_64

Fetching data from related tables

2013-05-09 Thread Sam
I have 3 tables: Continent, Country and Story. Country has ForeignKey(Continent) and Story has ManyToManyField(Country, blank=True) field. What I need is to get a list of countries which at least have one story belonging to it, and I need these countries grouped by continents. How can I

problem setting up DJANGO Database MySQL, library MySQL-python seemed installed

2013-05-09 Thread webgamer . sc
Unable to setup MySQL on CentOS5.9 for DJango raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb [schu@bigdata1 firstsite]$ which pip /usr/bin/which: no pip in

Why would Django (1.5.1) call Loader.load_template_source() over and over again?

2013-05-09 Thread Wesley Kincaid
I've got a fairly standard ListView trying to render a template stored in my DB (originally via the dbtemplates lib, finally trying my own template loader). However, the view times out in the browser. After some investigation, it seems that Loader.load_template_source() is called 69 times in

Re: [ANN] Python in the browser by Python

2013-05-09 Thread Javier Guerra Giraldez
On Thu, May 9, 2013 at 11:55 AM, Amirouche Boubekki wrote: > I just released a new version of PythonScript, a "variant" of Python that > compiles to javascript. nice! how does it compare with Pyjamas (http://pyjs.org/) ? -- Javier -- You received this message

[ANN] Python in the browser by Python

2013-05-09 Thread Amirouche Boubekki
Héllo, I just released a new version of PythonScript , a "variant" of Python that compiles to javascript. It should be very similar to CPython, but not the primary goal. Having something that's easy to work with (right now), without sacryfing for speed or

Re: Dynamic forms and related models.

2013-05-09 Thread Andre Terra
On Wed, May 8, 2013 at 6:43 PM, noodlygod wrote: > > > < > Class Level (Text field)> > Definition.objects.filter(category__label='Skill'))> field)> > Definition.objects.filter(category__label=Attribute'))>< Attribute score > (Text field)> > > I was on my way to creating

Re: ManyToManyField and get_or_create

2013-05-09 Thread Mick T.
I have the same problem, looks like it's a bug: https://code.djangoproject.com/ticket/18896 On Friday, 31 August 2012 18:55:39 UTC-4, Matt Long wrote: > > Bump? > > Almost exactly 4 years later, I've ran into this exact same issue in > Django 1.4. Attempting to use get_or_create through a

Re: unique not working as expected

2013-05-09 Thread C. Kirby
Could you elaborate on what the resolution was for future people who may run into this problem? On Thursday, May 9, 2013 9:59:00 AM UTC-5, Amber Kulkarni wrote: > > Thanks Tom. > Got the problem.Problem solved on creating new model. > > > On Thu, May 9, 2013 at 6:53 PM, Tom Evans

Re: Customizing Admin

2013-05-09 Thread Cody Scott
I am trying to create a form to select but I don't want to list all of the options because there are too many. Is there a way to allow the visitor to search and only have the query show up in the form? Even if it is not in the admin. On Thu, May 9, 2013 at 8:17 AM, Rafael E. Ferrero

Receive data in a view

2013-05-09 Thread Hélio Miranda
Hi I have a client-server application, and need to send my customer data for a view in django. I wanted to send my client (AngularJS), a name I need to use the view in django. If you send this name by http post, as I do in view in django to receive and use? I'm new to django, someone can help

Re: unique not working as expected

2013-05-09 Thread Amber Kulkarni
Thanks Tom. Got the problem.Problem solved on creating new model. On Thu, May 9, 2013 at 6:53 PM, Tom Evans wrote: > On Thu, May 9, 2013 at 12:47 PM, Amber Kulkarni > wrote: > > I checked the table using python manage.py sql app_name > >

Re: Problem with django 1.5.1

2013-05-09 Thread kl4us
works, thanks a lot Il giorno giovedì 9 maggio 2013 16:37:11 UTC+2, ejb ha scritto: > > Hey kl4us, > > I think the problem is that you need to specify the URL name as a string, > like: {% url 'post' slug=post.slug %} > > https://docs.djangoproject.com/en/dev/topics/http/urls/#naming-url-patterns

Re: NoReverseMatch at /app/

2013-05-09 Thread Gonzalo Delgado
Try this instead in your template: {% url 'detail' registo.id %} When referencing named urls, the name must be exactly as defined in the url pattern. 2013/5/9 Carlos Aboim > {% url 'registo.detail' registo.id %} > -- Gonzalo Delgado -- You received this message because

Hello I am a newbie

2013-05-09 Thread Bola Balogun
I am trying to run my first django project on windows 7 unfortunately when I enter the command (django-test) C:\virtualenvs\django-test> python -m django-admin startproject django-test. in my command prompt I get No module named django-admin Pls kindly help Thank you. -- You received this

Re: Problem with django 1.5.1

2013-05-09 Thread Elliot Bradbury
Hey kl4us, I think the problem is that you need to specify the URL name as a string, like: {% url 'post' slug=post.slug %} https://docs.djangoproject.com/en/dev/topics/http/urls/#naming-url-patterns Elliot On Thu, May 9, 2013 at 10:29 AM, kl4us wrote: > I have this

Problem with django 1.5.1

2013-05-09 Thread kl4us
I have this code http://pastebin.com/xTJTmZws with django 1.4.3 on OSX works fine, on ubuntu with django 1.5.1 i have error "coercing to Unicode: need string or buffer, Post found" at line "{% url post slug=post.slug %}" of template post_list.html. Why and how can i adjust this? -- You

Re: middleware

2013-05-09 Thread Shawn Milochik
In your middleware you'll have access to the request object, so you can easily check the URL, user, etc. -- 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

middleware

2013-05-09 Thread Anderson
Does anyone know if is possible execute a middleware only to a specific application or url? -- Anderson Dias Borges Senior Analyst Developer Tu cumprirás o desejo do meu coração se eu Te buscar... I can't see but I'll take my chances To hear You call my name -- You received this message

Re: Accessing django development server using internet

2013-05-09 Thread Tim Chase
On 2013-05-09 09:21, Rafael E. Ferrero wrote: > you can do like Tim says if you want to share your project with > your local network if you want to share with the world then you are > talking about a "production" server. I personally would even be comfortable putting it online (non-local network)

Re: unique not working as expected

2013-05-09 Thread Tom Evans
On Thu, May 9, 2013 at 12:47 PM, Amber Kulkarni wrote: > I checked the table using python manage.py sql app_name > it shows the following > > create table "tp_app_server" ( > "id " integer not null primary key, > "link" varchar(200) not null unique >

Re: [newbie question] python manage syncdb doesn't create all the tables. Models has been splitted up.

2013-05-09 Thread crosa
I found the error. The application wasn't in the INSTALLED_APP in the settings file! On Thursday, May 9, 2013 2:13:19 PM UTC+2, Mike Dewhirst wrote: > > On 9/05/2013 10:04pm, crosa wrote: > > Hi guys, > > > > I'm testing django in order to build a little application. This > > application

Re: Accessing django development server using internet

2013-05-09 Thread Rafael E. Ferrero
you can do like Tim says if you want to share your project with your local network if you want to share with the world then you are talking about a "production" server. 2013/5/7 Kakar Arunachal Service > Sorry, i'm on win 7. > > > On Tue, May 7, 2013 at 9:30

Re: Customizing Admin

2013-05-09 Thread Rafael E. Ferrero
I think you can customize the django admin templates for your own purpose 2013/5/7 Cody Scott > Is there a way to put text in the django admin? > > I am trying to display information from another model, to help in your > select of ForeignKeys. > > Right now I am

Re: [newbie question] python manage syncdb doesn't create all the tables. Models has been splitted up.

2013-05-09 Thread Mike Dewhirst
On 9/05/2013 10:04pm, crosa wrote: Hi guys, I'm testing django in order to build a little application. This application will have several models, so I've decided to split up them, in order to do this more readable (Any other form to do this?) When I run python manage.py syncdb, the models

[newbie question] python manage syncdb doesn't create all the tables. Models has been splitted up.

2013-05-09 Thread crosa
Hi guys, I'm testing django in order to build a little application. This application will have several models, so I've decided to split up them, in order to do this more readable (Any other form to do this?) When I run python manage.py syncdb, the models tables have not been created, and I

Re: unique not working as expected

2013-05-09 Thread Amber Kulkarni
I checked the table using python manage.py sql app_name it shows the following create table "tp_app_server" ( "id " integer not null primary key, "link" varchar(200) not null unique "crawled_flag" varchar(1) not null ) ; COMMIT -- You received this message because you are

NoReverseMatch at /app/

2013-05-09 Thread Carlos Aboim
I am getting a strange error on my humble opinion.. *Why am I getting this error?* Reverse for 'registo.detail' with arguments '(1,)' and keyword arguments '{}' not found. *my views:* from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.shortcuts import

unique not working as expected

2013-05-09 Thread Amber Kulkarni
I have created a model as follows : class server(models.Mode): link = models.CharField(unique=True,max_length=200) crawled_flag = models.CharField(max_length = 1,default="F") I open the shell and do the following. from app_name.models import server a = server(link =

RE: error - MultiValueDictKeyError at /profilesetting/ramuss

2013-05-09 Thread Babatunde Akinyanmi
Two forms in one template? You need to be aware that you will only be able to submit one at a time. Maybe you should try using django's form wizard: https://docs.djangoproject.com/en/1.5/ref/contrib/formtools/form-wizard/ Sent from my Windows Phone -- From: Avnesh

Re: error - MultiValueDictKeyError at /profilesetting/ramuss

2013-05-09 Thread Avnesh Shakya
Thanks, but I am using two form in my single template, so how will it possible to create views for both form for post method. On Thu, May 9, 2013 at 2:08 PM, Babatunde Akinyanmi wrote: > Hi Avnesh, > Your form has only one input with name as "pic" but in your view you are

Re: Hello everyone, can you tell me a good django's book that explains the various functions but at the same time develop a complete website chapter by chapter?

2013-05-09 Thread Federico Erbea
Thanks but there isn't something more new, maybe make with django 1.4? Il giorno giovedì 9 maggio 2013 10:56:17 UTC+2, Federico Erbea ha scritto: > > I bought a Marco Beri's book "Sviluppare applicazioni web con django" but > after the first chapter only explains the different functions in

Re: Hello everyone, can you tell me a good django's book that explains the various functions but at the same time develop a complete website chapter by chapter?

2013-05-09 Thread Gerald Klein
Besides the great documentation and examples on the Django site I would look at http://www.djangobook.com/en/2.0/index.html You also bought three more books take a look at them before buying more, if you are just starting though I would start with the docs on the site and the link I have

Hello everyone, can you tell me a good django's book that explains the various functions but at the same time develop a complete website chapter by chapter?

2013-05-09 Thread Federico Erbea
I bought a Marco Beri's book "Sviluppare applicazioni web con django" but after the first chapter only explains the different functions in contrast to the first chapter where the functions were explained by developing them. I also bought "Instant Django Application Development

Re: Retrieving images from GridFS using django-tastypie-mongoengine

2013-05-09 Thread Hélio Miranda
No, I'm not using GridFSStorage. I was just using mongoengine, with FileField field. To get the image have to use GridFSStorage? How to use it? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

RE: error - MultiValueDictKeyError at /profilesetting/ramuss

2013-05-09 Thread Babatunde Akinyanmi
Hi Avnesh, Your form has only one input with name as "pic" but in your view you are checking the QueryDict for six keys and none of them is even named "pic". meanwhile, I see that you are trying to upload a file, so you might want to read