Re: pyodbc utf-8

2012-11-28 Thread Nebros
Its compatible with mysql, but it's not working with mssql. it gave only errors with the correct settings... thats why i have to make own settings for the odbc. Am Mittwoch, 28. November 2012 14:30:57 UTC+1 schrieb Daniel Roseman: > On Wednesday, 28 November 2012 13:17:39 UTC, Nebros wrote: >

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

2012-11-28 Thread JC Briar
Ah, that's pretty slick! Thanks for the explanation. -- 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/-/oLoM0-qA1gkJ. To post to this group, send email to djan

Re: Django setup with elsatic beanstalk

2012-11-28 Thread David Seelig
Did the eb update work? I ran into this same issue; seems like when creating the first instance it works, but the second time are problems: https://github.com/boto/boto/issues/1087 According to that thread, if you delete the WSGIPath line and then create a new environment, you might have better

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

2012-11-28 Thread Russell Keith-Magee
On Thu, Nov 29, 2012 at 12:32 AM, JC Briar wrote: > Option 1 doesn't hold much appeal, for all the reasons you mention. > > Option 2 is a possibility, I suppose. Checking to see if > password_reset_confirm returns an HttpRedirect is a possibility I hadn't > considered. > > Option 3 is intriguing.

Re: Is there a recommended pattern for creating "replaceable" apps?

2012-11-28 Thread Chris Cogdon
Alright! I've gone through the documentation, and waded through a lot of the Django source code that implements the AUTH_USER_MODEL setting (via Meta.swappable, and Model._meta.swapped, etc) and while I am not saying that this isn't a good idea, it seems very heavyweight for what I was trying t

Re: hstore support in postgis backend

2012-11-28 Thread Matthew Cooper
Hi Reiner Thanks for pointing out the latest version of django-hstore. That pull request looks great, seems only to be a couple of files, wondering if that can be right, will have a look. Many thanks Matt -- You received this message because you are subscribed to the Google Groups "Django u

Django throws ImproperlyConfigured error when loading URLconf on startup

2012-11-28 Thread Michael Dippery
I have a Django app running on a production server. It is handled with gunicorn 0.14.2 behind nginx. When I reload the app (by reloading the gunicorn workers), I get this error: --- Traceback (most recent call last): File "/opt/app/venv/myapp/lib/python2.6/site-packages/django/core/handlers/b

Re: Lab notebook in Django?

2012-11-28 Thread bobhaugen
Michele, Thanks a ton! Checking it out... -Bob -- 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/-/3RCTBWPM-zQJ. To post to this group, send email to django-

Re: Lab notebook in Django?

2012-11-28 Thread Michele Mattioni
Hi Bob, check out Sumatra: http://pypi.python.org/pypi/Sumatra . It was created with that aim specifically. Cheers, Michele. On Wed, Nov 28, 2012 at 8:09 PM, bobhaugen wrote: > Anybody made a lab notebook in Django? > > Or do any of the authors or users of any other Django package (maybe one >

Re: How to make a url pattern that catch any url ?

2012-11-28 Thread Loai Ghoraba
thanks for the important advise :) On Wed, Nov 28, 2012 at 10:28 PM, Tim Chase wrote: > On 11/28/12 14:19, Loai Ghoraba wrote: > > I just go it, it is > > > > url(r'^download/(?P.*)$', 'faculty.views.Main.download_file'), > > Just be careful to normalize the resulting path so that people don't >

Re: How to make a url pattern that catch any url ?

2012-11-28 Thread Tim Chase
On 11/28/12 14:19, Loai Ghoraba wrote: > I just go it, it is > > url(r'^download/(?P.*)$', 'faculty.views.Main.download_file'), Just be careful to normalize the resulting path so that people don't do things like http://example.com/download/../../etc/passwd Fortunately, the standard library ha

Re: How to make a url pattern that catch any url ?

2012-11-28 Thread Loai Ghoraba
I just go it, it is url(r'^download/(?P.*)$', 'faculty.views.Main.download_file'), Thanks :) On Wed, Nov 28, 2012 at 10:10 PM, Loai Ghoraba wrote: > Hi > > I am serving some files, and I want whenever I have a url > :/download/path/to/some/file to map this to a view function with > path/to/so

How to make a url pattern that catch any url ?

2012-11-28 Thread Loai Ghoraba
Hi I am serving some files, and I want whenever I have a url :/download/path/to/some/file to map this to a view function with path/to/some/file sent as a parameter of the function, so how could I accomplish that ? I want a url of the following schema : url(r'downloads/(?P\[Anything includi

Lab notebook in Django?

2012-11-28 Thread bobhaugen
Anybody made a lab notebook in Django? Or do any of the authors or users of any other Django package (maybe one of the CMS's) think their fave would be good for creating a lab notebook? Or does anybody else have ideas for, or interest in, a Django lab notebook app? (To be open source, for sure

Re: Where to put PDF files + how to authenticate the urls requesting them

2012-11-28 Thread Loai Ghoraba
Thanks for the reply, but I am still new to the web technology world, so I would like to fully use Django now before , moving to another ways to host my files. Actually I am totally new to serving stuff, so if there is some best practice or that my way is totally wrong, please tell me. So in sh

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

2012-11-28 Thread JC Briar
Option 1 doesn't hold much appeal, for all the reasons you mention. Option 2 is a possibility, I suppose. Checking to see if password_reset_confirm returns an HttpRedirect is a possibility I hadn't considered. Option 3 is intriguing. But this part has me scratching my head: > Then, write a m

Re: hstore support in postgis backend

2012-11-28 Thread Reiner Marquez
Hi Matt, firstly, I would like mention that https://github.com/jordanm/django-hstore is not the most updated version. My suggestion is to use https://github.com/aino/django-hstore (referenced at pypi http://pypi.python.org/pypi/django-hstore/1.1.1) Now, as well you said, if you use the backend

Re: Where to put PDF files + how to authenticate the urls requesting them

2012-11-28 Thread Javier Guerra Giraldez
On Wed, Nov 28, 2012 at 10:03 AM, Javier Guerra Giraldez wrote: > i think there are a couple Django apps that help with that, while also > abstracting the differences between servers. found these: https://gist.github.com/1776202 https://github.com/johnsensible/django-sendfile -- Javier -- Yo

Re: Where to put PDF files + how to authenticate the urls requesting them

2012-11-28 Thread Javier Guerra Giraldez
On Wed, Nov 28, 2012 at 5:51 AM, Loai Ghoraba wrote: > Hi > > I have a little question: First, I am hosting my PDF files within / > static directory, (as my understanding is that they are static files), > so is this the correct way to host PDF files and downloadable files > generally ? > > Second:

Re: Django 1.5 b1 django-admin.py error

2012-11-28 Thread Sultan Imanhodjaev
Hi, 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. On Nov 28, 2012, at 8:45 PM, Ramiro Morales wrote: > On Wed, Nov 28, 2012 at 3:43 AM, Sultan Imanhodjaev > wrote: >> Hello, >> >> I just downloaded and type dja

Re: Django 1.5 b1 django-admin.py error

2012-11-28 Thread Ramiro Morales
On Wed, Nov 28, 2012 at 3:43 AM, Sultan Imanhodjaev wrote: > 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): >> [..] > But when I just type django-adm

Re: celery broken after upgrade

2012-11-28 Thread Mike
I'm running Django 1.4.2 On Wednesday, November 28, 2012 1:37:30 PM UTC+1, Sergey Russkih wrote: > > Looks like problem for django 1.3 only. Works for django 1.4 without > downgrading > > среда, 28 ноября 2012 г., 14:26:07 UTC+2 пользователь Mike написал: >> >> I finally tracked the problem down

Re: Newbie -- ForeignKey to auth_user?

2012-11-28 Thread 王峰伟
Great thank about this! On Friday, September 12, 2008 5:38:50 AM UTC+8, Karen Tracey wrote: > > On Thu, Sep 11, 2008 at 5:20 PM, Chris Stromberger > > > wrote: > >> Oh, thanks. Ok, I just tried taking that out (so model now says >> "staff_id = models.ForeignKey(User)"), but that gave this erro

Re: pyodbc utf-8

2012-11-28 Thread Daniel Roseman
On Wednesday, 28 November 2012 13:17:39 UTC, Nebros wrote: > edit: in the db the values are correct and i cant change there > something... > Meanwhile we still don't know why you won't use Django's proper ORM functionality, which is perfectly compatible with MSSQL and ODBC. -- DR. -- You re

Re: pyodbc utf-8

2012-11-28 Thread Nebros
edit: in the db the values are correct and i cant change there something... -- 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/-/D5pcYfIMUqEJ. To post to this g

Re: celery broken after upgrade

2012-11-28 Thread Sergey Russkih
Looks like problem for django 1.3 only. Works for django 1.4 without downgrading среда, 28 ноября 2012 г., 14:26:07 UTC+2 пользователь Mike написал: > > I finally tracked the problem down to the kombu 2.5.0. Prior versions > seem to work fine. Then I found this thread: > > https://github.com/c

Re: celery broken after upgrade

2012-11-28 Thread Mike
I finally tracked the problem down to the kombu 2.5.0. Prior versions seem to work fine. Then I found this thread: https://github.com/celery/kombu/issues/177 According to the developer a fix is on the way. In the meantime, you can downgrade to 2.4.10 On Wednesday, November 28, 2012 1:09:5

Re: celery broken after upgrade

2012-11-28 Thread Sergey Russkih
Same problem среда, 28 ноября 2012 г., 12:21:56 UTC+2 пользователь Mike написал: > > I decided to update some packages in the virtualenv for my Django project > but in doing so I seem to have broken celery. After upgrading to the > latest version, I now get this TypeError when calling a view th

hstore support in postgis backend

2012-11-28 Thread Matthew Cooper
Hi all We are using geodjango and postgis for a projects and I'm becoming more and more impressed with Postgres and is GIS features. Specifically I want to use hstore fields in my models with projects like https://github.com/jordanm/django-hstore These require you to use a modified backend tho

So you decided that you want to join a startup, right?

2012-11-28 Thread Davide Pluda
Well, You are smart and and if you are still reading you are probably looking for a fun and interesting place to work. I am david and the CTO of Wedding Snap (weddingsnap.com) a photo sharing application that collects pictures during events. To build and manage the infrastructure that keep all

Re: Formset - PlainTextOutput-Widget?

2012-11-28 Thread Stefano Probst
I think i have found a TextOutput-Widget :-) Writing your own django widget Am Dienstag, 27. November 2012 15:44:24 UTC+1 schrieb Stefano Probst: > > > Hi! > I have a Table with intitialdata from my

Re: Retrieve current user id in urls.py

2012-11-28 Thread Peter Edström
Thank you. It's quite logical when you know it. :-) > This isn't something you do in the urlconf. You do that in your view, > where the current user is available already as `request.user`. > -- > DR. > -- You received this message because you are subscribed to the Google Groups "Django users

Installing forum on django 1.4

2012-11-28 Thread Yogev Metzuyanim
Hi, Did someone here managed to install a working forum on django 1.4, I tried all these and I got all kinds of errors: PyBB django-forum django-forumbr askbot snapboard and more... Some of them i figured out and then i got another error until I reached a dead end in every single one of them. I

Where to put PDF files + how to authenticate the urls requesting them

2012-11-28 Thread Loai Ghoraba
Hi I have a little question: First, I am hosting my PDF files within / static directory, (as my understanding is that they are static files), so is this the correct way to host PDF files and downloadable files generally ? Second: Only authenticated users may view the links for those PDF files, bu

celery broken after upgrade

2012-11-28 Thread Mike
I decided to update some packages in the virtualenv for my Django project but in doing so I seem to have broken celery. After upgrading to the latest version, I now get this TypeError when calling a view that also submits a celery job with my_func.delay() Here's the error I get: set([]) is

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

2012-11-28 Thread Tom Evans
On Tue, Nov 27, 2012 at 6:17 PM, donarb wrote: > 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

Re: Django from UML diagram

2012-11-28 Thread Derek
Google can help you! http://code.google.com/p/uml-to-django/ On Tuesday, 27 November 2012 11:44:19 UTC+2, Abbass Khalil wrote: > > 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 subs

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

2012-11-28 Thread bpetit
Thanks for reply but this solutions doesn't seem to work. I've found a solution that is explained here . Regards On Tuesday, November 27, 2012 5:52:09 AM U