pyodbc utf-8

2012-11-27 Thread 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 "ä" "ö" and "ü". on my html.page i made this into the header: on all my pages this umlauts works, but not the values of the pyodbc... when i only g

Django from UML diagram

2012-11-27 Thread Abbass Khalil
Hello, I'm a new to Django , and I'm looking for UML Tools that can generate Django site from UML diagram. -- 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/-/

Re: Javascript in external file not working

2012-11-27 Thread lokesh
Hi, Please check the DEBUG is True or False in settings. If the DEBUG is True it will not serve the static files in development server, So you need to serve the static files from some other server or you need to change the DEBUG level as False if you are in development mode. Thanks, Lokesh O

Fwd: Ignoring _ character an showing % character in the Django

2012-11-27 Thread Satinderpal Singh
How do i write the column names in the django models so that it ignores _ character and show % in the output label of templates. -- Satinderpal Singh http://satindergoraya.blogspot.in/ http://satindergoraya91.blogspot.in/ -- Satinderpal Singh http://satindergoraya.blogspot.in/ http://satindergor

Re: Django 1.5 custom User model error. "Manager isn't available; User has been swapped"

2012-11-27 Thread Pankaj Singh
Hi, You need to unregister `User` model from admin site before registering new one. admin.site.unregister(User) admin.site.register(CustomUser, UserAdmin) Please have a look at http://stackoverflow.com/a/2270704/353550 Pankaj Singh http://about.me/psjinx On Mon, Nov 26, 2012 at 9:14 PM, Benoi

Re: how should I get the request object?

2012-11-27 Thread Wade Williams
I share the disdain for global variables as well. I'm fairly new to Django, and what I'm not understanding is when the request object is available for inclusion. I have a custom session backend that I've built in order to support a legacy user model and session table -- when I tried to simply a

Re: Vim Django template syntax checker

2012-11-27 Thread Tom Evans
On Mon, Nov 26, 2012 at 3:39 PM, Some Developer wrote: > I've been using Syntastic along with Vim for Django development for sometime > but I'd like to see if I could improve my Vim configuration. The problem > with Syntastic is that it does not work too well when checking partial HTML > documents

Re: django 1.6.0: admin pages not using unicode methods declared in my model

2012-11-27 Thread Anton Baklanov
Hi Héctor. check this out https://docs.djangoproject.com/en/dev//topics/python3/#str-and-unicode-methods -- Regards, Anton Baklanov -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.

Re: Is this a bug or am I doing it wrong? (trans tag)

2012-11-27 Thread Tom Evans
On Mon, Nov 26, 2012 at 9:43 PM, Some Developer wrote: > On 10/11/12 21:49, Some Developer wrote: >> >> In the documentation it is quite clear that the following syntax is >> correct in templates: >> >> {% load i18n %} >> >> {% trans "my_string" as blah_string %} >> >> {{ blah_string }} >> >> etc

Re: Django Oscar "Add to basket" issue

2012-11-27 Thread David Winterbottom
Hi Achu, Note that there is a google group for Oscar questions - that's a better place to ask questions such as this. https://groups.google.com/forum/#!forum/django-oscar Re your question: it looks like you are missing the basket middleware. You need to add 'oscar.apps.basket.middleware.Basket

How to get the source code of an url?

2012-11-27 Thread wbc
I'm trying to parse an xml url with minidom. I have an url with my xml data. This is my code: url = "http://myurl.com/wsname.asp"; datasource = urllib2.urlopen(url) dom = parse(datasource) handleElements(dom) my handleElements function to parse xml: def handleElements(dom): Elements

django/celery - celery status: Error: No nodes replied within time constraint

2012-11-27 Thread Hector Armando Vela Santos
I'm trying to deploy a simple example of celery in my production server, I've followed the tutorial in the celery website about running celery as daemon http://docs.celeryproject.org/en/latest/tutorials/daemonizing.html#daemonizing, and I got the config file in*/etc/default/celeryd* * * 1 # Na

Re: Django Oscar "Add to basket" issue

2012-11-27 Thread Achu
Thanks David -- 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/-/y1g9onBJuI0J. To post to this group, send email to django-users@googlegroups.com. To unsubsc

Retrieve current user id in urls.py

2012-11-27 Thread Peter Edström
Hello, I've set up a user profile according to thisand now I'm trying to access the id of the currently logged in user in my urls.py, like this: # urls.py > from django.contrib.auth.decorators impo

Hiring full-time hybrid developer/systems person at profitable, growing startup in Austin

2012-11-27 Thread Jason Ford
FeedMagnet is a web platform for brand marketers (Top Gear, GE, Verizon, Logitech, etc.) providing social/content aggregation and curation for websites and event screens. We're growing, profitable, over 3 years old, and based in Austin, TX (with a couple remote emplo

Formset - PlainTextOutput-Widget?

2012-11-27 Thread Stefano Probst
Hi! I have a Table with intitialdata from my database. It is implement with a formset. Every row i a form. Now I want to show a text (names) per row. The right in the picture (in black) exist, the red is to do. It should not be an TextInput-widget, it should be a pla

Re: Retrieve current user id in urls.py

2012-11-27 Thread Daniel Roseman
On Tuesday, 27 November 2012 15:37:19 UTC, Peter Edström wrote: > Hello, > > I've set up a user profile according to > thisand > now I'm trying to access the id of the currently logged in user in my >

Re: How to get the source code of an url?

2012-11-27 Thread donarb
You're not parsing XML, it's HTML and it's not well formed, for example your title and author tags have closing tags that don't match. Your HTML needs to be valid XHTML before trying to use an XML parser on it. You might want to try something else to parse this, like Scrapy or Beautiful Soup. O

How to log a user in automatically after a password reset?

2012-11-27 Thread JC Briar
When a user has forgotten their password, I use django.contrib.auth.views.password_reset to send an email containing a temporary link. When the user follows that link, I use password_reset_confirm to let them set a new password. So far, so good. But password_reset_confirm doesn't automatically

Re: Seeding Foreign Key with known object with Class Based Views

2012-11-27 Thread Lee Hinde
Thanks Sergi; I just realized my earlier response to you is still sitting in my drafts folder. This is helpful. On Mon, Nov 26, 2012 at 12:08 AM, Sergiy Khohlov wrote: > I'm proposing to add form_valid function and make next trick > > > def form_valid(self, form) > # avoid to early savi

Re: Speeding up test database creation

2012-11-27 Thread John Maxwell
Hm, I tried commenting out the line 'NAME': '/home/john/database.sqlite', and it still seems to be just as slow, if not slower... On Monday, November 26, 2012 5:56:30 AM UTC-8, Andres Reyes Monge wrote: > > The tutorial uses a sqlite file database not a in memory database, try > omitting the na

Re: Is this a bug or am I doing it wrong? (trans tag)

2012-11-27 Thread Some Developer
On 27/11/12 12:33, Tom Evans wrote: On Mon, Nov 26, 2012 at 9:43 PM, Some Developer wrote: On 10/11/12 21:49, Some Developer wrote: In the documentation it is quite clear that the following syntax is correct in templates: {% load i18n %} {% trans "my_string" as blah_string %} {{ blah_strin

Re: how should I get the request object?

2012-11-27 Thread Russell Keith-Magee
On Tue, Nov 27, 2012 at 12:38 PM, Wade Williams wrote: > I share the disdain for global variables as well. > > I'm fairly new to Django, and what I'm not understanding is when the > request object is available for inclusion. I have a custom session backend > that I've built in order to support a l

Re: How to log a user in automatically after a password reset?

2012-11-27 Thread Russell Keith-Magee
On Wed, Nov 28, 2012 at 4:07 AM, JC Briar wrote: > When a user has forgotten their password, I use > django.contrib.auth.views.password_reset to send an email containing a > temporary link. When the user follows that link, I use > password_reset_confirm to let them set a new password. So far, so g

[ANNOUNCE] Django 1.5 beta 1 released

2012-11-27 Thread James Bennett
Our second milestone on the road to Django 1.5 came today, with the release of the first beta package. Blog post about it is here: https://www.djangoproject.com/weblog/2012/nov/27/15-beta-1/ Release notes are here: https://docs.djangoproject.com/en/dev/releases/1.5-beta-1/ And you can get the

Re: Speeding up test database creation

2012-11-27 Thread John Maxwell
I just tried changing 'NAME' to ':memory:' and I'm still getting the same results. I continued with the tutorial for a while, and it turns out that the unit tests for the polls app don't have this problem. So now I'm beginning to suspect that there's a problem with Django, and the implementation

Django 1.5 b1 django-admin.py error

2012-11-27 Thread Sultan Imanhodjaev
Hello, I just downloaded and type django-admin.py to start a new project and having errors (devel)ninja devel: django-admin.py startproject hello > Traceback (most recent call last): > File "/Users/sultan/.virtualenvs/devel/bin/django-admin.py", line 5, in > > management.execute_from_com