Re: [Python Brasil 10] Registrations are now open!

2014-07-14 Thread Renato Oliveira
have* Renato Oliveira @_renatooliveira Labcodes - www.labcodes.com.br On Mon, Jul 14, 2014 at 11:53 PM, Renato Oliveira < renatooliveira@gmail.com> wrote: > Hi all, > > The call for papers are now open! > > http://2014.pythonbrasil.org.br/dashboard/prop

Re: [Python Brasil 10] Registrations are now open!

2014-07-14 Thread Renato Oliveira
Hi all, The call for papers are now open! http://2014.pythonbrasil.org.br/dashboard/proposals/ We're going to hava an English Track, so feel free to submit your proposals! See you at Python Brasil 10! Renato Oliveira @_renatooliveira Labcodes - www.labcode

Re: how do i return an int as the returned object for admin panel

2014-07-14 Thread Tom Evans
On Mon, Jul 14, 2014 at 11:31 PM, Aeh. ABID wrote: > > In your def __unicode__ convert the current returned int to string : > >> def __unicode__(self): # Python 3: def __str__(self): >> return str(self.vm_id) > Stop, you are making my eyes bleed! It is really fairly important that you re

Re: how do i return an int as the returned object for admin panel

2014-07-14 Thread Aeh. ABID
In your def __unicode__ convert the current returned int to string : def __unicode__(self): # Python 3: def __str__(self): > return str(self.vm_id) > credit to https://janetalkscode.wordpress.com/2013/09/28/django-long-object-has-no-attribute-encode/comment-page-1/ On Monday, July 14, 2

Re: how do i return an int as the returned object for admin panel

2014-07-14 Thread Tom Evans
The __unicode__ method must return a unicode string. The function unicode(), or string formatting would suffice. Cheers Tom On Mon, Jul 14, 2014 at 10:38 PM, G Z wrote: > how do I fix this? > > > class Vm_licenses(models.Model): >vm_license_id = models.BigIntegerField(primary_key = True,

how do i return an int as the returned object for admin panel

2014-07-14 Thread G Z
how do I fix this? class Vm_licenses(models.Model): vm_license_id = models.BigIntegerField(primary_key = True, editable = False, db_column = 'vm_license_id') license= models.ForeignKey(License, on_delete = models.PROTECT) vm= models.ForeignKey(Vm, on_delete = models.PROTECT) class

Django Models Issue with Oracle

2014-07-14 Thread G Z
I'm getting the following error while trying to access my licenses page from the admin panel. I have no idea why im getting the error. ORA-00904: "LICENSES"."CODE": invalid identifier Here is a describe of my current table: desc licenses Name

Re: django-quiz modification

2014-07-14 Thread Tom Walker
Hi Orchid, I am the author of the quiz app that has been recently updated - check it out: https://github.com/tomwalker/django_quiz It should be a lot easier for you to work with now. Why dont you add it on as a feature request and I will try to get it added soon. If you have a solution alread

Re: Django Database Switching Issue

2014-07-14 Thread G Z
I solved it thanks for all your help though. On Monday, July 14, 2014 9:44:31 AM UTC-6, G Z wrote: > > Thomas, >> > > We are using an oracle database setup, we have a development database and > a production database, the production database is for billing. > The databases have the sane TNS resolv

Re: Admin UI not commiting to DB

2014-07-14 Thread Tom Evans
On Sat, Jul 12, 2014 at 11:59 PM, Timothy W. Cook wrote: > Thanks for the reply Derek. This post was just a stab to see if anyone had > seen this before and I just missed the post. > > I guess it is time to roll up my sleeves and take a formal approach at > debugging. This one of VERY few, non-o

Re: Django Database Switching Issue

2014-07-14 Thread G Z
> > Thomas, > We are using an oracle database setup, we have a development database and a production database, the production database is for billing. The databases have the sane TNS resolver name of DB1. To test that it was using the correct settings.py file I removed the database information

imagens com django templates

2014-07-14 Thread Carlos Andre
Olá pessoal, estou tentando usar um slideshow e uso um for para iterar as imagens que passam vidas de um repositório, problemas que funciona sem o comando for no template, quando adiciono ele mostra nada para! Pelo que vejo há problemas no reconhecimento dos comandos de templates, caso como o que t

Re: urls not maching

2014-07-14 Thread ngangsia akumbo
Thanks guys i actually solved my problem using class based views To be honest that was all the information i had , i did not hide any information. Thanks Guys -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: Django-admin set foreign key to Null for inlines selected item instead of delete

2014-07-14 Thread Aeh. ABID
Indeed introducing m2m relationship was just the solution for this case, now I have B form change with AB_B as Inlines tabular item. thanks a lot On Sunday, July 13, 2014 7:48:05 PM UTC+1, Aeh. ABID wrote: > > > > I Have a model AB that holds two foreign keys A_id and B_id. > > class AB(

django admin fieldsets - adding fields of related models

2014-07-14 Thread luke lukes
I have a model `*Employee*` with a OneToOne relationship with `*User*`. I'm trying to include in the Employee admin some User fields (`*first_name, last_name, username, email*`), in order to edit those fields directly from the Employee Add/Change form, but I still haven't figured out how to do i

Re: urls not maching

2014-07-14 Thread Daniel Roseman
On Monday, 14 July 2014 02:08:24 UTC+1, ngangsia akumbo wrote: > > > Those are actual urls , i am actually still developing this site, so i > decided to start with a blog first > You *have* to help us help you. Thomas specifically requested that you show *exactly* what URL you are requesting. Yo