Re: pyodbc utf-8

2012-12-03 Thread Nebros
Can that be, that my computer have the problem and not python itself? Am Dienstag, 27. November 2012 09:49:37 UTC+1 schrieb Nebros: > Hello community > > i have a next problem. i have connected with pyodbc to a mssql db. i read > values out of it, all works, but i have problems with "ä" "ö" an

Re: pyodbc utf-8

2012-12-03 Thread Nebros
I use win7 32bit... dont know what you need to know aswell. ^^ Am Montag, 3. Dezember 2012 11:01:53 UTC+1 schrieb Nebros: > Can that be, that my computer have the problem and not python itself? > > -- You received this message because you are subscribed to the Google Groups "Django users" gr

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2012-12-03 Thread Garth Cumming
I've noticed this same behaviour as well but only with a higher loaded production server and using the gunicorn gevent class, i've never seen this happen with a sync class. I'll take a wild guess that gevent worker class is handling requests before django has had a chance to initialize. Perhaps

Template syntax error: Could not parse the remainder: '-login' from 'accounts-login'

2012-12-03 Thread Loai Ghoraba
Hi I have this in my urls.py url(r'^accounts/login/$', login,name="accounts-login") and in a template base.html login And when I try to open the site, this error is raised: Template syntax error: Could not parse the remainder: '-login' from 'accounts-login' But when I change the name of

Re: Template syntax error: Could not parse the remainder: '-login' from 'accounts-login'

2012-12-03 Thread Nikhil Verma
Try Sign in On Mon, Dec 3, 2012 at 6:01 PM, Loai Ghoraba wrote: > Hi > > I have this in my urls.py > > url(r'^accounts/login/$', login,name="accounts-login") > > and in a template base.html > login > > And when I try to open the site, this error is raised: Template syntax > error: Could not

Re: Template syntax error: Could not parse the remainder: '-login' from 'accounts-login'

2012-12-03 Thread Loai Ghoraba
not working, giving: Reverse for '' with arguments '()' and keyword arguments '{}' not found. also I want to know about this dash (sorry for using the term score in the previous post ) thing On Mon, Dec 3, 2012 at 2:34 PM, Nikhil Verma wrote: > {% url auth_login %} -- You received this message

Re: Template syntax error: Could not parse the remainder: '-login' from 'accounts-login'

2012-12-03 Thread Loai Ghoraba
okay I found it: it should be login with quotes. Thanks. On Mon, Dec 3, 2012 at 2:50 PM, Loai Ghoraba wrote: > not working, giving: Reverse for '' with arguments '()' and keyword > arguments '{}' not found. > > also I want to know about this dash (sorry for using the term score in the > previo

Re: Template syntax error: Could not parse the remainder: '-login' from 'accounts-login'

2012-12-03 Thread Larry Martell
On Mon, Dec 3, 2012 at 7:31 AM, Loai Ghoraba wrote: > Hi > > I have this in my urls.py > > url(r'^accounts/login/$', login,name="accounts-login") > > and in a template base.html > login > > And when I try to open the site, this error is raised: Template syntax > error: Could not parse the rem

Re: Template syntax error: Could not parse the remainder: '-login' from 'accounts-login'

2012-12-03 Thread donarb
Except, the Django documentation states that url names with dashes are acceptable and the examples show url tags using unquoted names. It even says you can use any character you want: *The string used for the URL name can contain any characters you like. You are not restricted to valid Python n

Re: Template syntax error: Could not parse the remainder: '-login' from 'accounts-login'

2012-12-03 Thread donarb
Correction, the syntax has changed between 1.4 and 1.5. You are now required to quote the name in the url tag. -- 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-user

Re: Help with manage.py sql

2012-12-03 Thread David Brotman
Thanks for the response. To answer your questions: 1. Have you set up a DB and put the details into your settings.py? If not, this is the problem. *Yes, all the details of my db are in the settings. I am convinced that the syncdb works since when I ran it the first time, a few tables were creat

Email makes it to Gmail, but not Squirrelmail

2012-12-03 Thread Paco de Kumite
Hi. I have a little view that sends an email. I looks like this msg = EmailMultiAlternatives(subject, text_content, from_email, [to]) msg.attach_alternative(html_content, "text/html") msg.send() where text_content is a simple text message and html_content is, well, some html content. The html

Re: Email makes it to Gmail, but not Squirrelmail

2012-12-03 Thread Andreas Pritschet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Paco, as the mail makes it to your Gmail account, but not to your self-hosted server runnig squirrelmail I indeed would assume that the problem lies with the mail server. To check this I would take a look at the mail log of the server running your D

django goes enterprise- your stories/numbers/setups

2012-12-03 Thread Frank Bieniek
Hi Django Users, I do need to do some recommendations related to django in the enterprise environment. Thats why I do need a bigger picture, larger than my teams expirience. So I do as YOU about YOUR experiences with django and larger audiences. What are your recommended infrastructure setups/c

Help with registration backend

2012-12-03 Thread Jason Pythonic
Hi All, First time poster here, so apologies if this question has been covered - believe me, I've searched, but I might be too far off base to know what to search for. Here's my issue. I'm working on a site that is currently setup to enroll users via the django-registration user registration b

Re: Help with registration backend

2012-12-03 Thread Chris Cogdon
modify the urlconf so that the function to send out registration keys can only be executed if someone is already logged in and/or has the right kind of permission. eg, instead of url( some-re some_function ) you can use url ( some-re, login_required(some_function) ) or has_perm, or a my

Re: Help with manage.py sql

2012-12-03 Thread Sam Solomon
I'm guessing that for some reason the classes in your app/models.py are not set up correctly, are you sure you inherit from models.Model in your class(es). Example: from django.db import models class MyModel(models.Model): rather instead of : class MyModel(): If it doesn't inherit models.Mod

python.el + django = python-django.el

2012-12-03 Thread Fabian Ezequiel Gallina
I just pushed to github an Emacs package to work with Django projects. It follows the magit-status buffer filosophy a bit. I has a tight integration with management commands and simple/intuitive bindings to do stuff you'd normally use (like grep an app's directory, open the directory with dired, o

Limiting the entry that loaded in django admin.

2012-12-03 Thread bolang
Hi all, need some input here. I have a site with > 15000 images, using django photologue. When we create a Post (that has Images field in it) from django admin, all of the images will be loaded in a dropdown. Before this, it was not create any problem. Now, after the number of images getting bi

Re: Limiting the entry that loaded in django admin.

2012-12-03 Thread Andrew Macgregor
On 04/12/2012, at 12:13 PM, bolang wrote: > Hi all, > need some input here. > > I have a site with > 15000 images, using django photologue. > > When we create a Post (that has Images field in it) from django admin, > all of the images will be loaded in a dropdown. > > Before this, it was not c

Bulk db insert with a file through admin form

2012-12-03 Thread MNG1138
Say I've got a model like this: class Product(models.Model): name = models.CharField(max_length=200) class ProductItem(models.Model): product = models.ForeignKey(Product) serialnumber = models.charField() sold = models.BooleanField(default=False) ProductItem represents physical p

Re: Django 1.5 b1 django-admin.py error

2012-12-03 Thread Aapo Rista
keskiviikko, 28. marraskuuta 2012 16.53.15 UTC+2 Sultan Imanhodjaev kirjoitti: > I use OSX Lion, virtualenv version 1.7.2, python 2.7.1. I just created a > new virtualenv, downloaded and install Django 1.5 b1. > I had the same problem: Mac OS X 10.8.2, Python 2.7.3 is installed with MacPorts,

Re: Limiting the entry that loaded in django admin.

2012-12-03 Thread Chris Cogdon
raw_id_fields is the first step. also look at django-ajax-selects, which gives you a lot of interesting abilities. On Monday, December 3, 2012 8:13:02 PM UTC-8, Bo Lang wrote: > > Hi all, > need some input here. > > I have a site with > 15000 images, using django photologue. > > When we creat

Re: Limiting the entry that loaded in django admin.

2012-12-03 Thread bolang
On 12/04/2012 11:24 AM, Andrew Macgregor wrote: Try using raw_id_fields: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.raw_id_fields Cheers, Andrew. It works! Thanks Andrew, -- You received this message because you are subscribed to the Google Grou