Re: ORA-00942: table or view does not exist

2016-11-10 Thread Jani Tiainen
Ok, since your model is not managed it doesn't create migrations either. If table name is written in uppercase, you can remove double quotes, Oracle is by default uppercase and quoted format is only required for tables or fields that are written in mixed or lowercase. Are you sure that proble

Re: Adding view permission by default to auth_permission

2016-11-10 Thread Luis Zárate
Great I have been waiting this functionality for years :). Please let me know when your PR is merge. El sábado, 29 de octubre de 2016, Olivier Dalang escribió: > Indeed I just have to squash the commits then it can be merged. I'm out of office until next week but will do so when back. > > Best

Re: localStorage to save answer to form until it is sent to server

2016-11-10 Thread Mike Dewhirst
On 11/11/2016 2:41 AM, Raniere Silva wrote: Hi all, I have some text area on my form that I expected that the user will take a few minutes to answer and I want to avoid them to need to type everything again if something happen (e.g. their device got out of battery). Something that I think I coul

Re: ORA-00942: table or view does not exist

2016-11-10 Thread Jeffrey Uvero
Jani Tiainen, Thank you for your response . Yes, I am using legacy database , that's why I can't control the naming of columns and tables On Thu, Nov 10, 2016 at 4:16 PM, Jani Tiainen wrote: > Oracle migrations are problematic due that fact that Oracle DDL is not > transactioned. So if somethin

Re: Running daphne in production - Mac OS X Server 10.11

2016-11-10 Thread Adam Teale
Ahhh great that's probably what I was misunderstanding - setting up Apache to proxy all requests to Daphne. I'll look into this and post back to this thread just in case anyone else is in the same boat. Cheers Andrew! Adam On Thursday, 10 November 2016 17:53:18 UTC-3, Andrew Godwin wrote: >

Re: Running daphne in production - Mac OS X Server 10.11

2016-11-10 Thread Andrew Godwin
Hi Adam, That document is the totality of what I have personally written, so I can't direct you to others. If we can work out what you're missing we can add it. Basically, all you need to do is: * Run Daphne to listen on a port (8000 by default, but you can pick) * Make your frontend webserver (

Re: Running daphne in production - Mac OS X Server 10.11

2016-11-10 Thread Adam Teale
Hi Andrew, Thank you very much for you help. Can you direct me to where I might be able to find some info about configuring Daphne for production? I've gone through what you have available on the Read the docs (https://channels.readthedocs.io/en/stable/deploying.html) however I think I need

Re: Running daphne in production - Mac OS X Server 10.11

2016-11-10 Thread Andrew Godwin
Hi Adam, It looks like you're running the main site through mod_wsgi, which means that it does not support WebSockets; daphne won't help as you're running it on a different port. Either you need to access the whole site via Daphne, or change the code so that it appends a different port to the WebS

Running daphne in production - Mac OS X Server 10.11

2016-11-10 Thread Adam Teale
Hi everyone, I am looking into Andrew Godwin's example project "channels-example" ( https://github.com/andrewgodwin/channels-examples). The multichat demo runs fine using the development/localhost server and now I am attempting to put it into production mode so I can access across our network and

Re: Setting up jQuery in debian with virtualenv

2016-11-10 Thread ludovic coues
{% static 'admin/js/vendor/jquery/jquery.min.js' %} Assuming you have django.contrib.admin in your INSTALLED_APP, this will do what you want. 2016-11-10 19:22 GMT+01:00 Luis Zárate : > Mmm why not just download Jquery and create a folder called static inside > one controlled app, maybe pone ins

Re: localStorage to save answer to form until it is sent to server

2016-11-10 Thread ludovic coues
localStorage is a client-side technology. You interact with that using javascript. Django only deal with the server-side. If the text area you are talking about is in the django's admin, you should take a look at how third party providing rich editing textarea are doing. 2016-11-10 16:41 GMT+01:

Re: External access

2016-11-10 Thread Luis Zárate
First, start testing you machine port is available in your local network run python manage.py runserver 0.0.0.0:8000 In other machine in the same network test it Suppose your django machine has internal ip address 192.168.1.100, then try to access 192.168.1.100:8000 from your web browser in the

Re: Setting up jQuery in debian with virtualenv

2016-11-10 Thread Luis Zárate
Mmm why not just download Jquery and create a folder called static inside one controlled app, maybe pone inside the project. If you want, you can use django admin jquery but $ is not available because django use django.JQuery for prevent conflict with custom user jquery El jueves, 10 de noviembre

Re: Setting up jQuery in debian with virtualenv

2016-11-10 Thread Gary Roach
Hi, Sorry about the confusion. I misspoke. I was trying to imply that there was a jquery.min.js file in the venv (djenv) file. As you implied, it was installed with pip django. A very bad choice of words. I am trying to set up my project so that I am not using a system version of jquery sin

Re: UnboundLocalError

2016-11-10 Thread GMail
Also, you're missing 'else' statement, so if elemCategory is neither 'routing' nor 'switching', testElement will never be defined. You should either assign default value to testElement before if-else block or add 'else' statement, like so: testElement = ApprovedTestElement.objects.filter(testEle

Re: UnboundLocalError

2016-11-10 Thread GMail
Hi! That's about Python. You can't use variable if it wasn't defined earlier. In your code return statement should have one less indentation level: ... if(elemCategory=='routing'): testElement = ApprovedTestElement.objects.filter(testElemType=elemType,routing='Y'); elif(elemCategory=='switch

localStorage to save answer to form until it is sent to server

2016-11-10 Thread Raniere Silva
Hi all, I have some text area on my form that I expected that the user will take a few minutes to answer and I want to avoid them to need to type everything again if something happen (e.g. their device got out of battery). Something that I think I could use is localStorage to store the temporary a

UnboundLocalError

2016-11-10 Thread Sharanya Purushothaman Nair
Hi Everyone, Class FilterSearch(View): template_name = 'approved/approvedElementsSEView.html def post(self, request, testPlanId): elemType = request.POST.get('testElementType); elemCategory = request.POST.get('category'); if(elemCategory=='routing'):

customise list editable based on user group in django-admin

2016-11-10 Thread Ajay Kumar
I have two types of users - 1 superuser and 2 support user I need to customise list_editable so that only superuser can edit and support user can only view that field in django-admin interface. Please let me know which function do I need to override and how to do this. -- You received this messa

How to inherit Meta class in django_table2?

2016-11-10 Thread Константин Городецкий
i have some class in tables.py: import django_tables2 as tables from django_tables2.utils import A from .models import Message class MessageTable(tables.Table): message_text = tables.LinkColumn('mssgs:detail', text=lambda record: record.message_text, args=[A('pk')]) group = tables.LinkColu

Re: Django and asynchronous tasks

2016-11-10 Thread ludovic coues
Websocket provide a way for server to send information to the client without waiting for input from the client. Django channels [1] is a project to bring native support of websocket to django. There are alternatives which might involve a bit more of work [1] https://channels.readthedocs.io/en/sta

Re: Django and asynchronous tasks

2016-11-10 Thread Antonis Christofides
> Is there no mechanism that when the background tasks finishes to have a web > page called which could display the results? Web pages cannot be "called". They are loaded by the browser. So, what you want is a mechanism that notifies the browser that an event has occurred in the server. That mechan

Re: Django and asynchronous tasks

2016-11-10 Thread Alain Muls
Hi What does 'persist the solution in a database' means and how can I react on it? bye/alain On Thursday, 10 November 2016 09:35:06 UTC+1, Daniel Chimeno wrote: > > Hello, > One simple approach is to persist the calculations in the database, then > you can use a view to display them in anothe

Re: Django and asynchronous tasks

2016-11-10 Thread Alain Muls
Hi Tx for the suggestion but how do I reload a page after eg 30 seconds? Is there no mechanism that when the background tasks finishes to have a web page called which could display the results? I had a look at the signal mechanism of Django but I think that is not working since the background

Re: Django and asynchronous tasks

2016-11-10 Thread Antonis Christofides
(Note: The most popular way to do asynchronous tasks is celery, but indeed some people prefer django-rq, which is said to be simpler. But your question is not affected by that.) I'm not an expert but I think that the "correct" way to do what you want would be to use comet (i.e. the opposite of aja

Re: Setting up jQuery in debian with virtualenv

2016-11-10 Thread Michal Petrucha
On Wed, Nov 09, 2016 at 01:54:57PM -0800, Gary Roach wrote: > Ludovic > > Thank you for the reply but I know how to use static files. The problem is > that I already have a jquery file under version control inside my virtual > environment wrapper and do not wish to use an external file . Use of a

Re: Django and asynchronous tasks

2016-11-10 Thread Daniel Chimeno
Hello, One simple approach is to persist the calculations in the database, then you can use a view to display them in another page. Hope it helps. El jueves, 10 de noviembre de 2016, 9:05:29 (UTC+1), Alain Muls escribió: > > Hi All > > I am building a website which makes calculations about the

Re: ORA-00942: table or view does not exist

2016-11-10 Thread Jani Tiainen
Oracle migrations are problematic due that fact that Oracle DDL is not transactioned. So if something goes wrong you can't rollback to previous state, your database ends up in broken state (in theory django could clean it up). Also try to avoid double quotes around table and column names. You

Re: External access

2016-11-10 Thread Antonis Christofides
When you reply to a message please include the previous emails of that thread. People who read this list on a mail client might have deleted them and they are probably not going to look them up elsewhere in order to remember what the problem was. So, how are you running the Django development serv

Django and asynchronous tasks

2016-11-10 Thread Alain Muls
Hi All I am building a website which makes calculations about the visibility of satellites. These calculations take about half a minute so I do not want to block the site during this time. I found django-rq and was able to start a asynchronous task which handles the calculations. The problem