Cannot import models from utility script

2014-10-05 Thread Sithembewena Lloyd Dube
Hi all, I am using Django 1.7 and I have a package called 'utilities' next to my app package like so: --> my project --> my_app -- __init__.py -- models.py --> utilities -- __init__.py -- do_something.py Inside do_something.py in utilities, I am getting an

Migration of logins from Google OpenID to Google+

2014-10-05 Thread Evgeny
Hello, I'm trying to develop migration of old style OpenID logins to g+ in Askbot app. Implemented g+ login, but so far was unable to obtain the openid_id field. I haven't seen an example of working code of migrating the logins anywhere. Was anyone able to do this? Thank you! -- You received t

Re: CSRF Token: is it okay if it is attached to my url when I enter my form?

2014-10-05 Thread Wyatt Baldwin
On Friday, October 3, 2014 6:26:43 AM UTC-7, Sabine Maennel wrote: > > Please help: I am confused whether it is okay that it is showing in the > url like this: > > > > http://netteachers.de/bewerbung/formular?csrfmiddlewaretoken=2jKsplZsQx5XpBfltUaDmgJjhRiCllxQ > > > This happens when I enter my f

Re: Upgrading Django (to 1.7)

2014-10-05 Thread Fred Stluka
On 10/1/14 11:36 PM, Andrew Pinkham wrote: Any feedback appreciated. I hope you find the material helpful. Andrew, Excellent 2nd article. Thanks! I especially liked the clear explanation of how South migrations interact badly with initial_data fixtures. OK to use fixtures, but load them exp

Re: I need some help to find a deployment strategy

2014-10-05 Thread Sabine Maennel
Thank you Lachlan for your advice, I will check out Two scoops of Django on that. I have it at home. Thanks for being so patient and helpful. with kind regards Sabine Am Sonntag, 5. Oktober 2014 22:09:26 UTC+2 schrieb Lachlan Musicman: > > I can't recommend the Two Scoops of Django me

Re: I need some help to find a deployment strategy

2014-10-05 Thread Sabine Maennel
Dear Marc, thank so much for this detailed response, I will study these links and decide what to do. I am actually already live and went up under a lot of time pressure, but with a temporary site. So I guess I can still fix the process, but the right time for this is now before the site gets out

Re: Calling Oracle Stored Procedures with REF CURSOR I get "unhandled data type CursorDebugWrapper"

2014-10-05 Thread Enyert Viñas
Hi Néstor, Please provide us your code, so we can help you with this issue. Best regards 2014-10-05 11:38 GMT-04:30 Néstor Boscán : > Hi > > I'm trying to use DJango to call Oracle Stored Procedures with REF CURSOR. > When I execute it I get: "unhandled data type CursorDebugWrapper". It looks >

Re: I need some help to find a deployment strategy

2014-10-05 Thread Lachlan Musicman
I can't recommend the Two Scoops of Django method enough, if only because it's made by people that deploy a lot and from sensible suggestions. 1. Just a single code base, but with different branches if needed (hence using DVCS). Then you commit once, and have no synchronisation problems. Any issue

Re: I need some help to find a deployment strategy

2014-10-05 Thread Mark Phillips
Sabine, How I deploy a django app...ymmv and I won't say this is the best way to do it;) I have two machines - one for development (my laptop) and one for production (a hosted site) on Linode. The development machine uses virtualenv and runserver to test etc. The production machine uses virtu

I need some help to find a deployment strategy

2014-10-05 Thread Sabine Maennel
I have my site up and running for the first time, and it was hard to catch the deadline, but now I need to get to a more professional setup of things. Can anybody help me with this please: *So on my host I have two installations : Test and Live* I guess that is fine, right? So now on bitbucket

Calling Oracle Stored Procedures with REF CURSOR I get "unhandled data type CursorDebugWrapper"

2014-10-05 Thread Néstor Boscán
Hi I'm trying to use DJango to call Oracle Stored Procedures with REF CURSOR. When I execute it I get: "unhandled data type CursorDebugWrapper". It looks like cx_Oracle doesn't like the DJango cursor wrapper. Regards, Néstor -- You received this message because you are subscribed to the Goog

Re: transpose values_list result from ORM

2014-10-05 Thread Collin Anderson
Ahh, yup. values_list(). I was thinking values() -- 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 django-users+unsubscr...@googlegroups.com. To post to this group

Re: Backwards migrations on a single app (Django 1.7)

2014-10-05 Thread Markus Holtermann
Hey Dan, Without further details I tend to say no. However, the behavior is different than the one you might be used to from South. There is a ticket that can be used for discussions on that topic (for now) [1]. /Markus [1] https://code.djangoproject.com/ticket/23410 On Sun, Oct 05, 2014 at

Re: transpose values_list result from ORM

2014-10-05 Thread Florian Auer
Ha, I think i got it the result from my databes is a values_list with tupels that cannot be acced via name. I have to use the indizes: for kz in kzlist: data.setdefault(kz[1], {})[kz[0]] = kz[2] Am Sonntag, 5. Oktober 2014 16:07:02 UTC+2 schrieb Florian Auer: > > Hi > > the original var

Re: transpose values_list result from ORM

2014-10-05 Thread Florian Auer
Hi the original variant was claiming a type mismatch: Traceback (most recent call last): File "", line 2, in TypeError: tuple indices must be integers, not str The same with your code example. Maybe the reason is that date is not an integer as it looks like, but a string representation of it?

Re: Failure to get data from database and onto template.

2014-10-05 Thread Collin Anderson
> > The only thing I can think of is to delete 3 and 4 and then re-create them > and hope that puts them in the right order. Any other ideas? > That should work just fine, as long as you only add at the end in the future. If it becomes an issue more, you may want to consider adding an "order" o

Backwards migrations on a single app (Django 1.7)

2014-10-05 Thread Dan
I am trying to migrate backwards on 1 app using: ./manage.py migrate app_name 0001 But it it is migrating all apps back to 0001 Am using django 1.7 am i doing something wrong? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fro