URL_VALIDATOR_USER_AGENT

2012-11-25 Thread Alex Strickland
Hi According to : https://docs.djangoproject.com/en/dev/ref/settings/ URL_VALIDATOR_USER_AGENT is deprecated in 1.5. But it's actually been removed. Is that worth a bug report? -- Regards Alex -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Django MongoDB

2012-11-25 Thread yati sagade
Hi. I've used django-nonrel for interfacing with the Google datastore on appengine and I use mongoengine for the rest. I guess mongoengine is the recommended way to work with mongodb on django. I've set up a small example, a Twitter clone that uses mongoengine. The app can be deployed on

Re: overwrite field value in subclasses

2012-11-25 Thread Peter of the Norse
Foo.myfield is 0, but when you created a new models.Field object in the abstract class, it did some deep magic. There’s also Foo._meta.fields which has the old myfield in it. The only thing you can do is create a new myfield with default=0 and editable=False. On Nov 23, 2012, at 8:40 AM,

Re: Django ORM

2012-11-25 Thread Russell Keith-Magee
On Sun, Nov 25, 2012 at 10:51 PM, Alexandra Paredes <05-38...@usb.ve> wrote: > Hi Russ, > > Thanks for the response, well we're thinking in modifying Django ORM to > add some requeriments we consider important on databases. And specially if > you already have the DB already build and want to

Re: I install v1.5 Django, and run a my first site, then have an error: 'utf-8' codec can't decode byte 0xbc in position 0: invalid start byte. I use Sublime editor.

2012-11-25 Thread Sergiy Khohlov
check databse setting. look like your database uses non utf8 encoding 2012/11/25 Julien Phalip : > Hi, > > Can you please post the entire traceback? > > Thanks! > > Julien > > > On Sunday, November 25, 2012 4:03:11 PM UTC+1, 名宏贾 wrote: >> >> I don't know why, editer have

Re: Tutorial Part 3: loading index.html in browser

2012-11-25 Thread Sergiy Khohlov
Check this one : https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-TEMPLATE_CONTEXT_PROCESSORS 2012/11/25 Luisa Beck : > Also, I get the following error message when rendering the page with my > local server: > > TemplateSyntaxError at /polls/ > > Could not

Re: Comment user field

2012-11-25 Thread Lachlan Musicman
On Friday, November 23, 2012, Lachlan Musicman wrote: > It should be obvious, but I can't quite grok how to set the comment > user to request.user in the comments/form.html > > I have a copy of comments/form.html in my templates folder in which > I've removed the email and the url fields, but now

Re: Django MongoDB

2012-11-25 Thread Carlos Aguilar
You know which mongoengine and django-nonrel are 2 different libraries for mongodb??? Please select one and use it, but not both. Best Regards -- Carlos Aguilar Consultor Hardware y Software DWD http://www.dwdandsolutions.com http://www.houseofsysadmin.com Cel: +50378735118 USA: (301) 337-8541

Re: I install v1.5 Django, and run a my first site, then have an error: 'utf-8' codec can't decode byte 0xbc in position 0: invalid start byte. I use Sublime editor.

2012-11-25 Thread Julien Phalip
Hi, Can you please post the entire traceback? Thanks! Julien On Sunday, November 25, 2012 4:03:11 PM UTC+1, 名宏贾 wrote: > > I don't know why, editer have default utf-8 setting. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this

Django MongoDB

2012-11-25 Thread Victor Manuel Quiñones Victor
Hi guys I'm having problems settings Django 1.4 with MongoDB. I already have installed MongoEngine and Django-nonrel from git repos, but still with problem. I read somewhere that Django 1.4 it is not full compatible with MongoDB yet? Error Message: File

I install v1.5 Django, and run a my first site, then have an error: 'utf-8' codec can't decode byte 0xbc in position 0: invalid start byte. I use Sublime editor.

2012-11-25 Thread 名宏贾
I don't know why, editer have default utf-8 setting. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/NEWU6tlUpM0J. To post to this group, send email to

Re: Django ORM

2012-11-25 Thread Alexandra Paredes
Hi Russ, Thanks for the response, well we're thinking in modifying Django ORM to add some requeriments we consider important on databases. And specially if you already have the DB already build and want to import it to build the model part of the app. We're studying the code and we wonder if

Django-oscar Add to basket issue

2012-11-25 Thread Aswathy Raju
Hi All, I am trying to integrate an ecommerce section to my project using "Django - Oscar" .Here when I try to add a product to my basket I got following error .. AttributeError at /store/basket/add/ 'WSGIRequest' object has no attribute 'basket' Request Method: POST

Postgres pgadmin3 & pgpass permissioning question

2012-11-25 Thread Andrew Taylor
Hi all, Tenuous Django link but thought no one would mind if I asked the following: Can I bypass the need for password entry in pgadmin3 by changing/locating a .pgpass files instead of modifying pg_hba.conf to 'trust'? pg_hba.conf currently set at md5 for everything. 1. I can merrily connect

How to config my django project to use tastypie and mongoengine

2012-11-25 Thread Chanh Le
In the settings.py import mongoengine mongoengine.connect('cooking') AUTHENTICATION_BACKENDS = ( 'mongoengine.django.auth.MongoEngineBackend', ) SESSION_ENGINE = 'mongoengine.django.sessions' MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware',

Django Oscar "Add to basket" issue

2012-11-25 Thread Aswathy Raju
Hi All, I am trying to integrate ecommerce section to my project using Django Osacr . When I try to add one product to my basket I got this error AttributeError at /store/basket/add/ 'WSGIRequest' object has no attribute 'basket' Request Method: POST Request URL:

Re: Tutorial Part 3: loading index.html in browser

2012-11-25 Thread Luisa Beck
Also, I get the following error message when rendering the page with my local server: TemplateSyntaxError at /polls/ Could not parse the remainder: 'http://poll.id/;>poll.id' from 'http://poll.id/;>poll.id' On Sunday, November 25, 2012 8:34:26 AM UTC-5, Luisa Beck wrote: > > Mm, I don't have

Re: Tutorial Part 3: loading index.html in browser

2012-11-25 Thread Luisa Beck
Mm, I don't have a TEMPLATE_CONTEXT_PROCESSORS section in the setting.py section. The setting.py file in my version of Django only includes TEMPLATE_DEBUG, TEMPLATE_LOADERS and TEMPLATE_DIRS. Could you specify what you mean? Thank you. On Sunday, November 25, 2012 8:16:00 AM UTC-5, Sergiy

Re: Tutorial Part 3: loading index.html in browser

2012-11-25 Thread Sergiy Khohlov
looks like you have a problem with template processor could you please check setting.py section TEMPLATE_CONTEXT_PROCESSORS 2012/11/25 Luisa Beck : > Thank you Xavier and Sergiy for your responses. > > To clarify: I put the following code (see below) into my index.html file

Re: Tutorial Part 3: loading index.html in browser

2012-11-25 Thread Luisa Beck
Thank you Xavier and Sergiy for your responses. To clarify: I put the following code (see below) into my index.html file and got a page displaying the code (rather than a list) when I rendered it in my browser by my local server: Could the problem have to do with my file system? I created a

Seeking pattern for building URLs with all query parameters intact

2012-11-25 Thread Darren Spruell
I've got a handful of applications that feature paginated object lists as well as a search dialog allowing users to search for simple object attributes. What is the common pattern to use in Django apps to build URI query strings in view code that can preserve parameters for rendering links in