Re: django.urls.exceptions.NoReverseMatch: Reverse for 'index' not found. 'index' is not a valid view function or pattern name.

2017-09-28 Thread James Schneider
On Sep 27, 2017 8:59 PM, "harsh sharma" wrote: i m a noob in django And i dont know why i am getting this error my views.py file: from django.shortcuts import render,render_to_response from django.http import HttpResponse from all.models import ALL from

Re: Big data

2017-09-28 Thread Larry Martell
I am taking about using hbase as a db for Django. My use case is that a have a Django app and the data in mysql has grown to the point where performance has greatly suffered. We have around 2TB of data with some very wide tables with many millions of rows. So I am beginning my research into how

Re: Big data

2017-09-28 Thread Vivek Shrivastava
Are you asking HBase as database for Django or accessing HBase from Django? The popular framework Hue http://gethue.com/ is based on Django only.. On Thu, Sep 28, 2017 at 9:34 PM, Larry Martell wrote: > Has anyone ever used any big data solutions, such as hbase, with

Big data

2017-09-28 Thread Larry Martell
Has anyone ever used any big data solutions, such as hbase, with django? -- 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: make a button element outside be on the right side of another element inside

2017-09-28 Thread Vijay Khemlani
An input with type "button" instead of "submit" should not trigger the form submit. On Thu, Sep 28, 2017 at 7:56 PM, fábio andrews rocha marques < fabioandrewsrochamarq...@gmail.com> wrote: > In my template, I have a form. This form has a lot of textfields and a > submit button. There's another

make a button element outside be on the right side of another element inside

2017-09-28 Thread fábio andrews rocha marques
In my template, I have a form. This form has a lot of textfields and a submit button. There's another button, lets name it "?", that displays a popup window whenever it's clicked. I want the "?" button to be on the right side of one of the textfields on my form. The problem is: since the form

Re: online training application

2017-09-28 Thread Mike Dewhirst
On 28/09/2017 10:38 PM, Joshua Hepburn wrote: Hi Mike, The immediate thought that comes to mind is moodle.org. I know it's not django or python - it's php. I only suggest it as I have worked for a number of years in IT for primary/secondary education institutions and I'm currently back at

Re: get_ip_address() not working when used Custom Decorators

2017-09-28 Thread Mannu Gupta
I am just using it in a view function. For example:- @owner_required def all(request, **kwargs): pass On Friday, September 29, 2017 at 12:33:09 AM UTC+5:30, Mannu Gupta wrote: > > While making a customer decorator in django, the code is here :- > > def owner_required(function): > def

Re: get_ip_address() not working when used Custom Decorators

2017-09-28 Thread Daniel Roseman
On Thursday, 28 September 2017 20:03:09 UTC+1, Mannu Gupta wrote: > > While making a customer decorator in django, the code is here :- > > def owner_required(function): > def wrap(request, *args, **kwargs): > print(request) > ip_address = get_client_ip(request) >

get_ip_address() not working when used Custom Decorators

2017-09-28 Thread Mannu Gupta
While making a customer decorator in django, the code is here :- def owner_required(function): def wrap(request, *args, **kwargs): print(request) ip_address = get_client_ip(request) ip_exist = Node.objects.get(ip_address=ip_address) if ip_exist:

Re: Problem testing user is None when extending auth backend.

2017-09-28 Thread graeme
On Thursday, September 28, 2017 at 2:16:44 PM UTC+1, Derek wrote: > > Note that > > user.is_authenticated() > > has become > > user.is_authenticated > > in Django 1.10 > Still on 1.8 in this case > > Otherwise if user is really (or could really) be None, then try... except > may be better:

Re: Problem testing user is None when extending auth backend.

2017-09-28 Thread Derek
Note that user.is_authenticated() has become user.is_authenticated in Django 1.10 Otherwise if user is really (or could really) be None, then try... except may be better: try: if user.is_authenticated() and user.is_staff: do something else: do something else except

Problem testing user is None when extending auth backend.

2017-09-28 Thread graeme
In a custom authentication backend, I was getting this error with this (previous developer's!) code: if user.is_authenticated() and user.is_staff: AttributeError: 'NoneType' object has no attribute 'is_authenticated' The cause seemed clear, the parent classes method was run first with

Html Page rendered when i hit this below url instead of json objects

2017-09-28 Thread Rakhee Menon
Hi Everyone, When i hit the url localhost:8000/forms it gives a html page and on the other hand when i do it through the django admin ie localhost:8000/admin/forms it gives me the result...What can be the reason??Can anyone help?? Thank You. Regards, Rakhee Menon -- You received this