Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Branton Davis
It sure seems like #2 that I mentioned before is the issue. Your context processor is overriding the 'user' template context variable that the admin uses. I just looked at some admin templates and they definitely use the 'user' variable. Name it something else or add logic to the context process

Jython zxJDBC / Python cx_oracle wrong number or types of arguments when calling to oracle's stored procedure

2011-12-20 Thread Akira Kir
Trying to make a django test application which will use stored oracle's procedures to insert/get data. Using jython with zxJDBC but same error applies with python and cx_oracle too. here is some code snipets: models.py > from django.db import models > from django.db import connection > > c

Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Branton Davis
On Tue, Dec 20, 2011 at 11:09 PM, Divick Kishore wrote: > On Wed, Dec 21, 2011 at 6:04 AM, Branton Davis > wrote: > > It sounds like your custom user template context variable might be > causing a > > conflict with the default if you're also using django.contrib.auth > (which is > > what the admi

Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Divick Kishore
Hi Branton, On Wed, Dec 21, 2011 at 11:09 AM, Branton Davis wrote: > > That stack trace is unrelated to the other problem.  Somewhere (guessing > gifts/urls.py) you've referenced a view > at gifts.views.ajax_handle_wishinvite, which doesn't exist.  Check > gifts/views.py for a method named 'ajax_

Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Divkis
On Dec 21, 7:05 am, Karen Tracey wrote: > People would be able to help you more effectively if you included the stack > trace that goes with the exception. > > Karen > --http://tracey.org/kmt/ The stack trace for the error is: ERROR Caught AttributeError while rendering: 'User' object has no at

Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Divick Kishore
On Wed, Dec 21, 2011 at 6:04 AM, Branton Davis wrote: > It sounds like your custom user template context variable might be causing a > conflict with the default if you're also using django.contrib.auth (which is > what the admin uses by default).  I'm guessing that the admin > views/templates use

Re: new tables missing from admin page

2011-12-20 Thread Python_Junkie
You should confirm that the tables that you added to the database, do in fact exist, by querying the database, before wondering why they did not show up in the admin page On Dec 20, 9:08 pm, Karen Tracey wrote: > No, it doesn't happen automatically. (Unless prior to this change you were > using p

Re: new tables missing from admin page

2011-12-20 Thread Karen Tracey
No, it doesn't happen automatically. (Unless prior to this change you were using plug-in apps that all provided an admin.py file to register their models.) For any models in apps you write, you must explicitly register them with admin in order for them to be visible in admin. Karen -- http://trac

Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Karen Tracey
People would be able to help you more effectively if you included the stack trace that goes with the exception. Karen -- http://tracey.org/kmt/ -- 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@g

Re: ModelForms and ProcessFormViews w models containing BooleanFields

2011-12-20 Thread Karen Tracey
Specify blank=True on the model field. When a ModelForm is created, the default value for a model form field's "required" attribute is based on the corresponding model field's "blank" attribute. Karen -- http://tracey.org/kmt/ -- You received this message because you are subscribed to the Googl

Re: Treebeard admin issues: Fieldsets break code...

2011-12-20 Thread Micky Hulse
On Tue, Dec 20, 2011 at 5:42 PM, Micky Hulse wrote: > Traceback: > Sorry, moved here: Let me know if I can provide more trace info. Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" gro

Treebeard admin issues: Fieldsets break code...

2011-12-20 Thread Micky Hulse
Hello, I am building a simple flat pages app and I am running into problems using Treebeard. For those not familiar with Treebeard: Treebeard example app: Ok, here's my code:

Re: Anyone got time for a large scale project ?

2011-12-20 Thread Robert Steckroth
Is this a paying project? I have a wide range of skills including Django. On Tue, Dec 20, 2011 at 3:17 PM, JohnyB wrote: > Hello guys, > I am in the process of creating an informational website combined with > a desktop application, and mobile version all connected, but I am > overwhelmed by it,

Anyone got time for a large scale project ?

2011-12-20 Thread JohnyB
Hello guys, I am in the process of creating an informational website combined with a desktop application, and mobile version all connected, but I am overwhelmed by it, and would need some help on django part. If you are intereseted please contact me. Thank you for your time, Ionut Boboc -- You r

Re: new tables missing from admin page

2011-12-20 Thread Bill Beal
Thanks. I don't remember doing this when I created the first set of tables. Does it happen automatically once? Or maybe I was mindlessly working from an example in a book. I'm a sorcerer's apprentice without a sorcerer. (There's a spell-checker pun in there somewhere.) Bill On Tue, Dec 20,

TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Divkis
I get the following error when I try to access admin site. I am not sure what is causing this. I am not sure if it could be caused because one of the two reasons: 1. I have a User model in one of my apps which does not have a id as primary key. I have some other key as the primary key. 2. I have

Re: new tables missing from admin page

2011-12-20 Thread Anoop Thomas Mathew
Hi, You should register the new models in the admin.py. https://docs.djangoproject.com/en/dev/ref/contrib/admin/#modeladmin-objects Above link should help. Thanks, Anoop Thomas Mathew atm ___ Life is short, Live it hard. On 20 December 2011 23:32, Bill Beal wrote: > Hi all, > > I added some

Re: How to add a ManyToManyField "dynamically" to a model?

2011-12-20 Thread huseyin yilmaz
Generic forign key might help you https://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#django.contrib.contenttypes.generic.GenericForeignKey You might not even need a metadata here.(The metadata you need looks like ContentType model) Just do class GenericManyToManyDetail(Model) ct1 = .

new tables missing from admin page

2011-12-20 Thread Bill Beal
Hi all, I added some tables to models.py but they didn't show up when I logged in as admin. I knew already from harsh experience that syncdb will not pick up _changes_ to an existing table, so I deleted the old database before doing syncdb then runserver. When I didn't find the new tables listed

DjangoCon Europe 2012: June 4-6, in Zürich, Switzerland

2011-12-20 Thread Jonas Obrist
Hi all, We are excited to announce the dates for DjangoCon Europe 2012. The conference will be held in Zürich, Switzerland from June 4th to June 6th 2012, followed by two days of sprints. The conference will be at Stadion Letzigrund [1] and the sprints will be at Cigarettenfabrik Zürich direct

ModelForms and ProcessFormViews w models containing BooleanFields

2011-12-20 Thread Jeff Heard
I feel like this should be obvious but I can't figure it out. When creating a ProcessFormView or a ModelForm on a model with a BooleanField somewhere in, I get the classic problem of "This field is required" in the actual rendered page. Is there some way to turn off this behaviour and make the fi

Re: Which IDE should I use for Django?

2011-12-20 Thread Parisson
On 20/12/2011 08:23, Alex Mandel wrote: > Code completion is subpar, actually one of the worst python editors for > that because you have to pregenerate the lists. > Eric's completion is based on QScintilla and works fast here.. Do you know any completion system which doesn't have to generate any

Re: Which IDE should I use for Django?

2011-12-20 Thread Patricio Valarezo L.
1+ -- Enviado desde mi teléfono Android con K-9 Mail. Disculpa mi brevedad Vikas Ruhil escribió: Go for Vim it is great for django you really feel like a superuser , just search Google Vim as python Modern IDE !! On Tue, Dec 20, 2011 at 12:42 PM, huseyin yilmaz wrote: I was going to say

Re: Gallery plugin

2011-12-20 Thread Tomas Neme
I've got my own https://github.com/Lacrymology/cmsplugin_s3slider which works for http://www.serie3.info/s3slider/ out of the box, and the plugin I forked from is nice, too -- "The whole of Japan is pure invention. There is no such country, there are no such people" --Oscar Wilde |_|0|_| |_|_|0|

Re: Cascading Select Input Boxes (peek into request data)

2011-12-20 Thread Thomas Guettler
On 20.12.2011 11:59, Thomas Guettler wrote: Hi, I have three cascading select input fields. I data is different, but for example: state, city and street. They are all ModelChoiceFields. With jquery and view returning json, it is very easy to fill "city" if you select "state". But if the form

Re: Which IDE should I use for Django?

2011-12-20 Thread Masklinn
On 2011-12-20, at 09:51 , Alex Mandel wrote: > On 12/20/2011 12:40 AM, Masklinn wrote: >> On 2011-12-20, at 08:30 , Alex Mandel wrote: >>> For the most part commercial editors are off the list too because many >>> of them are more than $100 a license per year which is too expensive for >>> a univer

Re: Which IDE should I use for Django?

2011-12-20 Thread Joey Espinosa
Please start a new thread for your other problem. -- Joey "JoeLinux" Espinosa* * On Tue, Dec 20, 2011 at 1:57 AM, Rayner Pailus wrote: > Thanks Man... > > However, now I have another puzzle that I need

Re: Which IDE should I use for Django?

2011-12-20 Thread Rayner Pailus
Thanks Man... However, now I have another puzzle that I need to solve. thank you... it is good to know that you guys are there to help ... us...thanks again.. IndexVersionError at /forum/3/topic/add/ Can't read format -110 Request Method: POST Request URL: http://forum.cseap.com/forum/3/topic

Cascading Select Input Boxes (peek into request data)

2011-12-20 Thread Thomas Guettler
Hi, I have three cascading select input fields. I data is different, but for example: state, city and street. They are all ModelChoiceFields. With jquery and view returning json, it is very easy to fill "city" if you select "state". But if the form gets submitted, and only "state" and "city"

How to add a ManyToManyField "dynamically" to a model?

2011-12-20 Thread Hanne Moa
I have some apps app1, app2, .. appN and a special app for metadata. The model metadata.Metadata should have ManyToManyFields to models (to primary key, nothing fancy) in some of the other apps. I don't want to have to update the models of the existing apps and the apps/models shouldn't be hard-cod

Re: Which IDE should I use for Django?

2011-12-20 Thread Alex Mandel
On 12/20/2011 12:40 AM, Masklinn wrote: > On 2011-12-20, at 08:30 , Alex Mandel wrote: >> For the most part commercial editors are off the list too because many >> of them are more than $100 a license per year which is too expensive for >> a university lab of 20 people where most of the people only

Re: User Profile Creation

2011-12-20 Thread Piotr Zalewa
You can't do it in admin site without tinkering. If you create users inside a view (i.e. during the registration process), there is no need to use signals - you can simply create a profile with data from registration form. If you use django forms, use them with prefix kwarg, this will allow to

Re: django south and new installed app how to?

2011-12-20 Thread Piotr Zalewa
Explained here: http://south.aeracode.org/docs/commands.html#schemamigration On 12/15/11 15:58, Gijsbert de Haan wrote: Hi, I have an existing django project with south enabled using buildout. Now I want to add a new egg to get and install another django application for my project, this new app

Re: Serving Django Admin Static Media Files with Apache WSGI on Ubuntu

2011-12-20 Thread Timothy Makobu
Also, here is a working wsgi settings file: *** import os import sys sys.path.append(os.path.dirname(__file__).replace('\\','/')) os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.core.handlers.wsgi import WSGIHandler application = WSGIHandler() *** On Tue, Dec 20, 2011 at 11:39

Re: Which IDE should I use for Django?

2011-12-20 Thread Masklinn
On 2011-12-20, at 08:30 , Alex Mandel wrote: > For the most part commercial editors are off the list too because many > of them are more than $100 a license per year which is too expensive for > a university lab of 20 people where most of the people only write short > scripts. If you code for a liv

Re: Serving Django Admin Static Media Files with Apache WSGI on Ubuntu

2011-12-20 Thread Timothy Makobu
The way I do it, is I use the staticfilesapp https://docs.djangoproject.com/en/dev/howto/static-files/ then i have the web server use the static folder in my project folder to serve requests for /static works well on ep.io On Tue, Dec 20, 2011 at 10:58 AM, Ganesh Kumar wrote: > Hi guys, I tryi

Serving Django Admin Static Media Files with Apache WSGI on Ubuntu

2011-12-20 Thread Ganesh Kumar
Hi guys, I trying with Serving Django Admin Static Media Files with Apache WSGI on Ubuntu.10.04 This my config files. example_proj.wsgi http://dpaste.com/675674/ apache config file. 000-default http://dpaste.com/675675/ my setting.py http://dpaste.com/675678/ please guide me. what mistakes I