Re: Find variables marked for translations

2017-07-20 Thread Mike Dewhirst
My plan (not commenced yet) is to use an on-line translation API. I just googled "on-line translation api" and see there are quite a few options. On 20/07/2017 9:38 PM, prabhakar shanmugam wrote: Hi all, I am translating a message which is a variable. The variable is dynamic text. It can be

It's possible to cache entire model

2017-07-20 Thread Fellipe Henrique
Hi guys, I need to cache entire model, not a query, not a view.. entire model.. so, any query using these model will use the cache.. Can I do that using django cache? regards T.·.F.·.A.·. S+F *Fellipe Henrique P. Soares* e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \

Re: User accessibility to multiple versions of an app.

2017-07-20 Thread James Schneider
On Thu, Jul 20, 2017 at 11:34 AM, wrote: > Thanks James. I'm working with Data Labels =]. Give me a minute to go > over my project to see which of the two design patterns would best suit my > needs. I really appreciate the long and in-depth response. Will get back

Re: User accessibility to multiple versions of an app.

2017-07-20 Thread James Schneider
On Thu, Jul 20, 2017 at 11:23 AM, m1chael wrote: > James, you rock dude. lol > Yeah, apparently I got a bit excited. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: User accessibility to multiple versions of an app.

2017-07-20 Thread pieceofkayk2718
Thanks James. I'm working with Data Labels =]. Give me a minute to go over my project to see which of the two design patterns would best suit my needs. I really appreciate the long and in-depth response. Will get back to you after some analysis. K -- You received this message because you

Re: User accessibility to multiple versions of an app.

2017-07-20 Thread m1chael
James, you rock dude. lol On Thu, Jul 20, 2017 at 2:20 PM, James Schneider wrote: > > > On Thu, Jul 20, 2017 at 8:44 AM, wrote: > >> Hey, I've been running into issues trying to figure out how a user could >> be able to access multiple

Re: User accessibility to multiple versions of an app.

2017-07-20 Thread James Schneider
On Thu, Jul 20, 2017 at 8:44 AM, wrote: > Hey, I've been running into issues trying to figure out how a user could > be able to access multiple versions of an app. Here is the following > example: > > I have an app named ANNA. ANNA is used to build labels and these

Re: New to django

2017-07-20 Thread dkushwah5
Thanx Stefano :) On Wednesday, July 19, 2017 at 7:19:08 PM UTC+5:30, Stefano Probst wrote: > > Hi! > > New to Django? Read the Getting started > . > > Am Mittwoch, 19. Juli 2017 13:04:50 UTC+2 schrieb dkushwah5: >> >> I want to connect my bootstrap

User accessibility to multiple versions of an app.

2017-07-20 Thread pieceofkayk2718
Hey, I've been running into issues trying to figure out how a user could be able to access multiple versions of an app. Here is the following example: I have an app named ANNA. ANNA is used to build labels and these labels are dependent upon different standards that come out. For example, we

Re: How to discover which postgres vesion is in use (on 1.11)?

2017-07-20 Thread Tim Graham
You can use: >>> from django.db import connection >>> connection.pg_version 90507 On Wednesday, July 19, 2017 at 6:15:29 AM UTC-4, HM wrote: > > When https://code.djangoproject.com/ticket/18332 lands (No generic way > to get database backend version) this will be trivial but I need a >

Find variables marked for translations

2017-07-20 Thread prabhakar shanmugam
Hi all, I am translating a message which is a variable. The variable is dynamic text. It can be from any source like third party api or from the request get/post of user, meaning we won't know the text to be translated. So at run time when the actual value of the variable is received, and when

ModelForm with field subset saving all fields

2017-07-20 Thread Cristina Botez
I'm using a view that combines 2 forms (which were split in order to facilitate reuse and to separate concerns). The model instance I am sending to both is the same, so when one form sets the new values on the instance, the other can see them. The problem is that when the first form is saved,

Re: serving over either 80 or 443

2017-07-20 Thread Larry Martell
On Thu, Jul 20, 2017 at 1:27 AM, James Schneider wrote: > > > On Jul 19, 2017 1:56 PM, "Larry Martell" wrote: > > This is probably not strictly a Django question, but I'm hoping > someone here has had to solve this before. > > We have a django

Re: serving over either 80 or 443

2017-07-20 Thread Larry Martell
On Wed, Jul 19, 2017 at 5:14 PM, François Schiettecatte wrote: > This tells you whether the request is secure or not: > > > https://docs.djangoproject.com/en/1.11/ref/request-response/#django.http.HttpRequest.is_secure Thanks I did not know about that. > You

Re: Math filter

2017-07-20 Thread Vijay Khemlani
Don't worry, I only knew about the project because I use it in a small part of an application that can't execute computations on the view On Wed, Jul 19, 2017 at 10:02 PM, Mike Morris wrote: > On 07/19/2017 06:20 PM, Vijay Khemlani wrote: > >> I'm guessing he's using the

Re: serving over either 80 or 443

2017-07-20 Thread 'Tom Evans' via Django users
On Wed, Jul 19, 2017 at 9:55 PM, Larry Martell wrote: > This is probably not strictly a Django question, but I'm hoping > someone here has had to solve this before. > > We have a django app that is sometimes deployed in an environment with > SSL and talks over port 443,

Re: Multiple DB - Accessing another app's table/model?

2017-07-20 Thread miguel vfx
appA is on project A. appB is on project B. -- As it turns out, migrate names the tables as [app]_[model_name] and thus with different app names on different projects, I was initially accessing the table migrate --database=created. To access the table on another server, match the table names