alguien sabe donde puedo registrar correos corporativos gratis,

2015-04-13 Thread wilder Hernández Garcia
alguien sabe donde puedo registrar correos corporativos gratis Gracias -- 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

Re: login_required decorator in Django: open modal instead of redirecting to another page

2015-04-13 Thread Roh Codeur
I ended up going with Avraham's response in this. On Thursday, 9 April 2015 01:53:35 UTC+1, Roh Codeur wrote: > > Hi > > I have a django app which has certain sections which are reserved for > registered users. I have the views annotated with login_required decorator > which redirects the user

Django Admin should really support Twitter Bootsrap

2015-04-13 Thread Patrick Lemiuex
It's about time, the django admin tool should support twitter bootstrap markups and styling. This is the third django project where I've had to deal with custom form widgets because the admin tool supports kind of an outdated layout scheme in the admin template. This also affects a lot of

Python csv Module ValueError Exception

2015-04-13 Thread Henry Versemann
Up till now I've had no problems using the Python 2.7.8 csv module to write to Python dictionary objects to a csv file, using the csv.DictWriter, however now it appears that I'm sending it an object that it can't handle (See the attached file for an edited/readable version of the python object

Re: classic: unsupported operand type(s) for +: 'int' and 'NoneType'

2015-04-13 Thread Bill Blanchard
If you allow Null values in your model and one of the two is being populated with Null, then you'll get the error you're seeing. Example: Form: ram_1 = 56 ram_2 = Null (None) 56 + Null (None) doesn't work. What you should do instead is set Null to FALSE in both your field declarations and set

Re: classic: unsupported operand type(s) for +: 'int' and 'NoneType'

2015-04-13 Thread makayabou
It's ram_tot = self.ram_1 + self.ram_2 that returns me "cannot contenate int and NOne On Monday, April 13, 2015 at 10:05:49 PM UTC+2, makayabou wrote: > > Hello, > I'm sorry for that trivial problem, but I'm still a bit lost... > > [code] > #In models.py: > > class Ordi(models.Model): >

classic: unsupported operand type(s) for +: 'int' and 'NoneType'

2015-04-13 Thread makayabou
Hello, I'm sorry for that trivial problem, but I'm still a bit lost... [code] #In models.py: class Ordi(models.Model): RAM_CAP_1 = 1024 RAM_CAP_2 = 2048 RAM_CAP_CHOICES = ( (RAM_CAP_1, u'1G'), (RAM_CAP_2, u'2G'), ) ram_1 = models.IntegerField("memory slot 1", max_length=10,

Re: Please advise about pros/cons of cross-platform as Phonegap and Titanium in combination with Django.

2015-04-13 Thread Filipe Ximenes
About cross-platform mobile development: my advice is to only use then if it's a simple app. If you are planning to do something more complex, like some innovative interface or expecting a very fluid interaction, it's often not a good choice. Many times you will struggle to replicate mobile

Re: Please advise about pros/cons of cross-platform as Phonegap and Titanium in combination with Django.

2015-04-13 Thread Filipe Ximenes
I'm assuming your current application is not a SPA (single page application). Django is a good option for serving data for a mobile app, you just need to develop an API. Django default behaviour is to serve full html pages, but when you are working with mobile apps you are only interested in the

Please advise about pros/cons of cross-platform as Phonegap and Titanium in combination with Django.

2015-04-13 Thread 백병화
Hi All I'm using django+python+mariadb+mysql+redis+html5+css3+javascript+jquery+nginx 4 web development and I'm wondering cross-platform as Phonegap or titanium for mobile apps. Colud you plz advise about pros/cons of them(In combination with Django+Python)? Thank you for reading ma article.

Re: Django hstore widget not working

2015-04-13 Thread Tim Graham
That's the correct output according to https://docs.djangoproject.com/en/1.8/ref/contrib/postgres/forms/#hstorefield On Monday, April 13, 2015 at 7:10:01 AM UTC-4, ksingh wrote: > > Hello, > Had recently updated my project to 1.8, and now the widget for hstore on > admin is not proper. > It is

Re: Django ProgrammingError: no relation exists when using ManyToManyfield

2015-04-13 Thread Pavel Kuchin
Hi Chase, Can you please attach your settings.py (or at least DATABASES and INSTALLED_APPS options) and LocationModel class? Best regards, Pavel 2015-04-13 17:37 GMT+03:00 Chase Cooley : > Yes, I have tried makemigrations and migrate for all modules and it still >

Re: Django ProgrammingError: no relation exists when using ManyToManyfield

2015-04-13 Thread Chase Cooley
Yes, I have tried makemigrations and migrate for all modules and it still doesn't work. I have also tried makemigrations and migrate for individual modules with no luck. On Sunday, April 12, 2015 at 10:12:08 AM UTC-5, Pavel Kuchin wrote: > > Hi Chase, > > Did you try makemigrations and migrate:

Re: Django admin page display unnormal

2015-04-13 Thread aRkadeFR
Your static files are not served properly. Please, run the collectstatic command and see if the admin static files are copied. Check in your browser that the files media are served then. aRkadeFR On 04/13/2015 05:04 AM, zli wrote: It is my admin add user page

Re: view queryset object in admin view

2015-04-13 Thread makayabou
Thank you Jani, it solved it! I was just loosing around, I finally got it... thanks all On Monday, April 13, 2015 at 2:29:36 PM UTC+2, makayabou wrote: > > I made a clearer and full sample code. > When I use the code as is, I get results in a poor readable > format in PCAdmin view > [, ] >

Re: view queryset object in admin view

2015-04-13 Thread makayabou
I made a clearer and full sample code. When I use the code as is, I get results in a poor readable format in PCAdmin view [, ] although I just want Jean Dubois, martin franck Thanks for help My models.py [code] from django.db import models class

Re: view queryset object in admin view

2015-04-13 Thread Jani Tiainen
Hi, there are several flaws in your code. On Mon, 13 Apr 2015 04:12:55 -0700 (PDT) makayabou wrote: > Hello, > thanks for reply, > of course attribute name was defined, I just ommited to past it! > > Here's code: > > [code] > #In models.py: > > > class

Re: view queryset object in admin view

2015-04-13 Thread makayabou
Hello, thanks for reply, of course attribute name was defined, I just ommited to past it! Here's code: [code] #In models.py: class PC(models.Model): def users(self): pc = self.user_set.all() for o in pc: return o.__unicode__ def __unicode__(self):

Django admin page display unnormal

2015-04-13 Thread zli
It is my admin add user page It is static_root setting -- You received this message

Django hstore widget not working

2015-04-13 Thread ksingh
Hello, Had recently updated my project to 1.8, and now the widget for hstore on admin is not proper. It is just showing me the textarea field with dictionary data. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group