Re: Static Analysis Tool

2014-06-23 Thread Mario Gudelj
PyCharm IDE does a lot of this stuff. It's great at pointing out bad code. But you can try https://chris-lamb.co.uk/projects/django-lint which is a wrapper around pylint On 24 June 2014 10:19, Mayur Sharma wrote: > Hi, > > I am looking for industry level Django Static Analysis tools. Most of th

Static Analysis Tool

2014-06-23 Thread Mayur Sharma
Hi, I am looking for industry level Django Static Analysis tools. Most of the commercial tools don't support Django like Checkmarx and Coverity. Which tools are recommended for it then ? Thanks, Mayur Sharma -- You received this message because you are subscribed to the Google Groups "Django

"ResourceWarning: unclosed" error using mysql-connector-python

2014-06-23 Thread Zemian Deng
Hi there, I am using mysql-connector-python (1.1.6) with Django (1.6.5) and myapp is working fine. But each SQL call to DB will result the following warning messages: Exception ignored in: ResourceWarning: unclosed Has anyone seen this and know a way to resolve it? Also, FYI, I am using th

Re: unit test:AssertionError: False is not true

2014-06-23 Thread Kimitaka Nakazawa
Hi Russ, Thank you very much for your advice.  I’ll look into debugging and see how to resolve it:) Many thanks, Kim On 2014年6月23日 at 11:54:39, Russell Keith-Magee (russ...@keith-magee.com) wrote: Hi Kim, It seems to me that the error messages you're getting are pretty clear - you're asserti

Re: Time Zone Problem when following on tutorial

2014-06-23 Thread Mike Dewhirst
On 24/06/2014 8:34 AM, Jerry Wu wrote: Dear every one, I am following the tutorial and meet with some problem with Time Zone part. Since I am in Shanghai, China (UTC+8) , I think it is necessary to reset the time part. Below is what I tr

Time Zone Problem when following on tutorial

2014-06-23 Thread Jerry Wu
Dear every one, I am following the tutorial and meet with some problem with Time Zone part. Since I am in Shanghai, China (UTC+8) , I think it is necessary to reset the time part. Below is what I tried but failed with valuerror incorrec

Re: How to use 1.7 from git repository

2014-06-23 Thread Lachlan Musicman
Alternatively, git checkout stable/1.7.x cheers L. On 24 June 2014 08:16, Lachlan Musicman wrote: > git checkout tags/1.7b4 > > On 24 June 2014 07:53, John Rambo wrote: >> How do I switch to version 1.7 in git when I have the current repository? >> >> -- >> You received this message because yo

Re: How to use 1.7 from git repository

2014-06-23 Thread Lachlan Musicman
git checkout tags/1.7b4 On 24 June 2014 07:53, John Rambo wrote: > How do I switch to version 1.7 in git when I have the current repository? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receivi

How to use 1.7 from git repository

2014-06-23 Thread John Rambo
How do I switch to version 1.7 in git when I have the current repository? -- 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.c

Re: how to add additional data to that submitted by the user in a django form

2014-06-23 Thread Mario Gudelj
Use commit=False when saving the form, add all the other attributes and then call save(). E.g. obj = form.save(commit=False) obj.additional_stuff = additional obj.save() But some of that stuff such as creation date and time can be done automatically at the model with auto_now=True On 24 June 20

Re: OO in Django

2014-06-23 Thread Mario Gudelj
Ricardo is correct. But make sure you use abstract model for Customer in this case. I use the AbstractUser a lot because in most cases the customers need to be system users and have a log in etc. On 24 June 2014 02:08, Ricardo Daniel Quiroga wrote: > Hi > I think I would do as follows :P >

Re: OO in Django

2014-06-23 Thread Ricardo Daniel Quiroga
Hi I think I would do as follows :P #models.py code class Customer(model.Model): *** class Transation(model.Model): *** customer = models.ForeignKey(Customer) class Person(Customer): *** class Corporation(Customer): *** *** you object atributes 2014-06-23 11:

how to add additional data to that submitted by the user in a django form

2014-06-23 Thread Anurag Baidyanath
I am trying to create a form in which the user enter details like his email id and query. After the form is submitted i have to save the data that I get from the form along with some additional info such as userid , submitted date and time, etc into the database. What approach should be adopt

OO in Django

2014-06-23 Thread Eduardo Basílio
Hello, Can you help me on a question OO in Django? How the Transaction class can reference Person or Corporation? * Customer is an abstract class -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

Re: Question about minifying CSS and JS files.

2014-06-23 Thread Redmount
Hi you can use django-compressor or django-pipeline. Personnally I use django-compressor with Amazon S3. If you want more details, just ask. P. Le lundi 23 juin 2014 09:04:39 UTC+2, Chen Xu a écrit : > Hi Everyone, > I am writing a Django website, I am trying to minify my css and js fil

django : after pdf rendering for generating print, i want to update model objects

2014-06-23 Thread Neethu Jose
I have a django template containing 2 buttons. One is for show and another is for print. I am getting a list of objects from model to print. And there is a status field boolean in this model. The issue is after taking print, I want to update those objects by making their status field true .

django : after pdf rendering for generating print, i want to update model objects

2014-06-23 Thread Neethu Jose
I have a django template containing 2 buttons. One is for show and another is for print. I am getting a list of objects from model to print. And there is a status field boolean in this model. The issue is after taking print, I want to update those objects by making their status field true .

Re: Poll App part 3

2014-06-23 Thread Thomas Brightwell
Divyanshi, You may be looking at different versions of the documentation - see the bottom right of the page for what version you're on. I got caught out with that exact issue - poll/detail names when returning to the tutorial and accessing a different version. I believe they're consistent per

Re: How to replace Django management command in 1.7

2014-06-23 Thread Rafał Pitoń
Allright, thanks for answer. -- 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, send email to djan

Re: Question about minifying CSS and JS files.

2014-06-23 Thread Avraham Serour
There are django solutions for this, but personally I like to use Google Pagespeed On Jun 23, 2014 10:04 AM, "Chen Xu" wrote: > Hi Everyone, > I am writing a Django website, I am trying to minify my css and js files, > I wonder if there is a good Django package that does it well, or it does > not

Re: Problem Django Admin app is read only!

2014-06-23 Thread Enaut Waldmeier
The Problem was that I havn't had a sepparate file for the admin declarations (which should be ok according to the specs). But it didn't work. A more detailed step by step guide how to reproduce the issue was filed https://code.djangoproject.com/ticket/21262 . I think it happened because I regi

Re: Problem Django Admin app is read only!

2014-06-23 Thread Inixtrom
Hi, Did you find a solution for this issue? El viernes, 7 de junio de 2013 08:31:14 UTC+2, Enaut Waldmeier escribió: > > > > Am Donnerstag, 6. Juni 2013 23:42:25 UTC+2 schrieb Frank Bieniek: >> >> Hi, >> who is serving your media files? apache? >> In debug mode django is not delivering them, if i

Question about minifying CSS and JS files.

2014-06-23 Thread Chen Xu
Hi Everyone, I am writing a Django website, I am trying to minify my css and js files, I wonder if there is a good Django package that does it well, or it does not have to be a Django package, it could be any tools. Thanks in advance -- ⚡ Chen Xu ⚡ -- You received this message because you are