Re: how to set up jenkin's 'GitHub Pull Request Builder Plugin' for django ?

2016-01-08 Thread Luis Zárate
Do you know buildbot ? http://buildbot.net/ El viernes, 8 de enero de 2016, Abraham Varricatt < abraham.varric...@googlemail.com> escribió: > Hello everyone, > I've attained some success in my endeavor and wanted to talk about it (The following events take place over the past few days). > The

Re: CachedStaticFilesStorage and collectstatic for the very first time

2016-01-08 Thread Simon Charette
Hi Andrzej, If I understand correctly you can't run `collectstatic` with `DEBUG = False` if you didn't run it with `DEBUG = True` beforehand. I can't be sure without the full traceback but I suspect one of your applications calls `django.contrib.staticfiles.storage.staticfiles_storage.url` at

Re: How to show review's stars

2016-01-08 Thread 'Hugo Osvaldo Barrera' via Django users
On Fri, Jan 8, 2016, at 11:34, Sergey Bakotin wrote: > > Hello and thank your for your help: > > Task: The customer leaves text and digit (the number of stars) i must > display it on the page. The review[1] - link. > > How i done it: > > 1) Add method to the model: > > > > > >

Re: CachedStaticFilesStorage and collectstatic for the very first time

2016-01-08 Thread Andrzej Mateja
Thank you Simon for sharing your remarks although it is not the case what you described. I'm talking about deploying brand new project which is depending on external application with its own static files. Project should have also no static files collected yet, static files cashing enabled

Re: CachedStaticFilesStorage and collectstatic for the very first time

2016-01-08 Thread Simon Charette
Hi Andrzej, CachedStaticFilesStorage requires you run `collectstatic` before deploying your application in production (non-DEBUG) mode. The deployment should look like that: 1) Update your code to the latest version. 2) Run `collectstatic` to cache paths to hashed versions of your assets. 3)

Re: how to set up jenkin's 'GitHub Pull Request Builder Plugin' for django ?

2016-01-08 Thread Abraham Varricatt
Hello everyone, I've attained some success in my endeavor and wanted to talk about it (The following events take place over the past few days). The first thing I needed to do was rent out a cheap ubuntu server - I got one from digitalocean. A requirement for jenkins is java. I decided to go

Re: How to show a list of products as checkboxes?

2016-01-08 Thread Mario R. Osorio
Hmmm... not THE expert here , but it looks like your original question is not properly stated as you asked about checkboxes and did NOT mention radio buttons. They might look very much alike but are 2 very different controls, with very different behavior and uses. On Thursday, January 7, 2016

How to show review's stars

2016-01-08 Thread Sergey Bakotin
Hello and thank your for your help: Task: The customer leaves text and digit (the number of stars) i must display it on the page. The review - link. How i done it: 1) Add method to the model: class

Re: Performance difference between django query and stored procedure (MySQL)?

2016-01-08 Thread Sergiy Khohlov
better way is using storing procedure. You also can compare trivial SQL command and stored procedure performance. Result is a same such as django and stored procedure (or near to the same) Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Jan 8, 2016 at 4:30 PM, Maor Levy

Performance difference between django query and stored procedure (MySQL)?

2016-01-08 Thread Maor Levy
I was wondering what the performance hit on using a django query over a stored procedure would be? I realize that django doesn't support stored procedures so that's why I was hoping to avoid using stored procedures. However, then the query won't be compiled in the db and the calculations

CachedStaticFilesStorage and collectstatic for the very first time

2016-01-08 Thread Andrzej Mateja
Hi, I have a problem with using CachedStaticFilesStorage as a STATICFILES_STORAGE and with external package containing its own static files (easy_select2 to be specific). If I deploy my project for the very first time with DEBUG = False, empty cache and no external package static files copied

Re: Django as Server

2016-01-08 Thread John 
Hi Gaurav, Django is not “used to create” web frameworks. Django “is” a web framework. It has a included “web server” only for development purpose. They focus on django itself, so they do not work as much on the development web server included. Thats why we use nginx, gunicorn, and so on when

sqlite3 “OperationalError: no such table” on threaded operation

2016-01-08 Thread Jim Bell
By everything I read in the docs, both Django and py-sqlite3 should be fine with threaded access. (Right?) But the attached code snippet fails for me. The operations in the main thread work, but not in the thread(s) I create. There I get: File

Django as Server

2016-01-08 Thread Gaurav Jindal
This line was written in the 1st tutorial : "We’re in the business of making Web frameworks, not Web servers." Does that mean that Django can be used only for making Web Frameworks? If not then is there any good tutorial to get started with that, because my aim is to use python at my server