Re: Abridged summary of django-users@googlegroups.com - 16 Messages in 10 Topics

2013-04-28 Thread Hadi
On Sat, Apr 27, 2013 at 9:06 AM, wrote: > Today's Topic Summary > > Group: http://groups.google.com/group/django-users/topics > >- check genre and insert <#13e4b9af034b930d_group_thread_0> [3 Updates] >- How to edit django_openid_auth login > template<#13e4b9af034b930d_group_thread_1>[

Must AUTH_USER_MODEL be in "models.py"?

2013-04-28 Thread Richard Eames
I like to split my models up into separate files, but it seems that the new customizable user model requires that it is defined directly in a "models.py" file. A condensed version of my project structure and code: manage.py project/ app1/ models.py "from _models import *" _models

Re: Must AUTH_USER_MODEL be in "models.py"?

2013-04-28 Thread François Constant
I wouldn't use "*import **" if I were you. I would put the imports in the models.py file rather than in _models/__init__.py Not sure if that will save your problem but might be worth trying it out. On Sunday, 28 April 2013 17:17:07 UTC+10, Richard Eames wrote: > > I like to split my models up in

django social auth with custom user model is not working

2013-04-28 Thread Gabriel - Iulian Dumbrava
Use Django allauth (check the correct name). It has everything you need and it works with Django 1.5. It has: - all social platforms supported - only email check, no username - multiple social accounts linked to a django account I hope it helps! -- You received this message because you are su

Re: Must AUTH_USER_MODEL be in "models.py"?

2013-04-28 Thread Richard Eames
Thanks for the reply, I used the "import *" syntax for brevity in my post, my actual code uses the "from .app1 import MyThing" syntax. I added "from project.app1._models.model1 import MyUser" to the models.py, and I get the same issue. The only workaround I've found is to make "MyUser" abstrac

Re: Must AUTH_USER_MODEL be in "models.py"?

2013-04-28 Thread Martin J. Laubach
I'd guess it's the usual model-magic dealing with app_label, which causes them not to appear under "app1" (because, well, you defined them somewhere else). Try to set app_label manually in your model's Meta class. Cheers, mjl -- You received this message because you are subscribed to

Popen works on system but fails on Django

2013-04-28 Thread gtpeel
OSX 10.7.5, System Python 2.7.1, Django 1.5.1 In system Python shell: from subprocess import Popen Popen("open /Library/Application\ Support/blender.app", shell=True) will open blender. Django views.py Popen("open /Library/Application\ Support/blender.app", shell=True) will open blender

django-guardian VS django admin

2013-04-28 Thread Roberto López López
Hi, I have problems setting up django-guardian to work properly in my web application. Object permissions seem to be correct after testing with the django shell, but somehow admin doesn't seem to react to the permission system. I have a Department model: class Department(models.Model):

Re: Must AUTH_USER_MODEL be in "models.py"?

2013-04-28 Thread Richard Eames
That was exactly the problem! I knew I was missing something simple. Thanks! On Sunday, April 28, 2013 1:26:08 PM UTC-6, Martin J. Laubach wrote: > > I'd guess it's the usual model-magic dealing with app_label, which > causes them not to appear under "app1" (because, well, you defined them >

Beta testers wanted for Linux access to Windows data stores.

2013-04-28 Thread Vernon D. Cole
If any of you have good Microsoft SQL Server connections, I could use some help testing. Adodbapi has been around a long time -- an old fork of it is used in django-mssql. This version is designed to replace that one. I have added a new module in the package to let a Linux box get to Windows ADO

Re: flot not working when page is served by Django

2013-04-28 Thread acheraime
I'm experiencing the same issue. Would be great if someone could help fix it. Sent from my iPhone On Apr 28, 2013, at 6:17 PM, mplumb wrote: > Hi all, > > I'm trying to get any simple flot graph to display at this point. my > index.html template file is as shown below. If I load the html f

Admin module - modify SQL Query used for Edit and Save Models

2013-04-28 Thread Marc R
I have a model where I have used AES_ENCRYPT(value, key) to save data in a MySQL database. It is set as a varbinary field. So the issue is; when trying to edit the model in Django, it does not render a widget for the field. I've tried the aesfield from github but that does some funky thing wit

Re: OperationalError: (2003, "Can't connect to MySQL server on 'localhost' (10061)")

2013-04-28 Thread Arturo Paul Castro Calvo
try to define the parameters so 'ENGINE': 'django.db.backends.mysql', 'NAME': 'yourdbname', 'USER': 'root', 'PASSWORD': 'your password', 'HOST': '127.0.0.1', 'PORT': '3306', El domingo, 6 de enero de 2013

Re: Blog writen by django?

2013-04-28 Thread gilberto dos santos alves
please could you point some one because this url [1], and this url [2] have conceptual problems and not only mistype error. while this i am update docs for url [1], but it shows very poor html display and models. url:: [1] http://www.djangorocks.com/tutorials/how-to-create-a-basic-blog-in-djang

Re: Blog writen by django?

2013-04-28 Thread Russell Keith-Magee
Here's a site that lists a whole lot of options: https://www.djangopackages.com/grids/g/blogs/ DjangoPackages is well worth bookmarking -- it's a good archive of Django packages for a wide range of website features, not just blogs. Yours, Russ Magee %-) On Mon, Apr 29, 2013 at 11:22 AM, gilbert

Re: django-filetransfers and HttpResponseRedirect

2013-04-28 Thread Venkatraman S
Following this up... any thoughts? On Thu, Apr 4, 2013 at 9:34 AM, Venkatraman S wrote: > > I use django-filetransfers in my app and had a quick Q on one of the > comments by the author in this post : > http://www.allbuttonspressed.com/projects/django-filetransfers > > He mentions "Note that i

Re: Django Admin - BooleanField issue

2013-04-28 Thread Derek
Well, both Django and Python are consistent in their use of the terms "True" and "False" to represent boolean objects: https://docs.djangoproject.com/en/dev/ref/models/fields/#booleanfield http://docs.python.org/2/library/stdtypes.html#boolean-values In addition, the whole point of the ORM is to

Re: Popen works on system but fails on Django

2013-04-28 Thread Axel Rau
Am 28.04.2013 um 21:47 schrieb gtp...@gmail.com: > OSX 10.7.5, System Python 2.7.1, Django 1.5.1 > > In system Python shell: > > from subprocess import Popen Popen("open /Library/Application\ > Support/blender.app", shell=True) > > will open blender. > > Django views.py Popen("open /Libra