Re: Envío de formulario con una tabla dinámica

2017-12-21 Thread Matemática A3K
Antonio, Tu duda / problema corresponde a jQuery más que a Django, en una lista enfocada en Javascript en Español podrás encontrar mas ayuda. También te recomiendo que uses sitios como jsfiddle para postear tu código en estos casos, así le va a ser mas fácil para quienes pueden ayudarte el hacerl

Re: I want to display my restaurant list for which i used a function based view and it is working fine but when i import generic list view then it's not displaying that list

2017-12-21 Thread Matemática A3K
On Thu, Dec 21, 2017 at 3:05 PM, Ruhail Ahmad wrote: > def resturant_listview(request): > template_name = 'resturants/resturants_list.html' > queryset = ResturantLocation.objects.all() > context= { >"obj_list": queryset >} > return render(reques

Error while installing channels

2017-12-21 Thread John Conner
Here's version info : - Django 1.9 - Python 3.5 - trying to install latest version of Channels. The error : running build_ext building 'twisted.test.raiser' extension error: [WinError 2] The system cannot find the file specified Full error message : ClickMe

I want to display my restaurant list for which i used a function based view and it is working fine but when i import generic list view then it's not displaying that list

2017-12-21 Thread Ruhail Ahmad
#VIEWS.PY from django.db.models import Q from django.shortcuts import render from django.http import HttpResponse from django.views.generic import TemplateView from django.views.generic import ListView from .models import ResturantLocation # Create your views here. def resturant_listview(request)

Re: Response is None in exception handling?

2017-12-21 Thread Andrew Buchan
Hi Jason, The stack was all just the normal stuff that happens, all of which is Django code, except for the bit about processing middleware, so I disabled what I could of those,, and indeed it was middleware classes which had been badly upgraded. The middleware classes used to have a process_r

Re: Response is None in exception handling?

2017-12-21 Thread Jason
what I would do is put a breakpoint at File "/home/andrew/projects/healthmatters/website/env/lib/ python3.5/site-packages/django/core/handlers/exception.py", line 35, in inner response = get_response(request) and follow the method call stack. Questions: 1. what is response in the ex

Django-hotsauce-oauthclient 0.2 is out

2017-12-21 Thread Etienne Robillard
Hi all, I'm glad to announce the 0.2 release of django-hotsauce-oauthclient, a WSGI middleware to authenticate with OAuth 2.0 framework. Django-hotsauce-oauthclient is a experimental WSGI middleware  on top of django-hotsauce and oauthlib. It is a fork of the wsgi_oauth2 library. Changes:

Re: Are URL namespaces optional or are they used by default by Django?

2017-12-21 Thread Andréas Kühne
Hi again, I don't understand what you mean then. Because you say that they are namespaced. What I mean by that is that when using reverse, you have to use: reverse("license:edit_license", args=(1, )). However, if this is the code you have used: for app in settings.SITE_APPS.get_application_list()

Re: Are URL namespaces optional or are they used by default by Django?

2017-12-21 Thread Stodge
Thanks, My edit license URL is: url(r'^license/edit/(?P\d+)/$', views.edit_license, name= 'edit_license'), However, this is what I want and it has been this way for years. My URLs are organised: /// I don't think this explains why my URLs are all namespaced when I haven't changed my code

Re: Are URL namespaces optional or are they used by default by Django?

2017-12-21 Thread Andréas Kühne
Ok, You have not namespaced anything, but you have added the api name infront of the URLs you are adding. So for example, I am guessing that you in your urls.py file for the license app have added "/license/edit//" for the license detail page? Because you have already added the license part with

Response is None in exception handling?

2017-12-21 Thread Andrew Buchan
I'm upgrading from Django 1.11 to Django 2.0 and getting the following error trying to load any page: Internal Server Error: /favicon.ico Traceback (most recent call last): File "/home/andrew/projects/healthmatters/website/env/lib/python3.5/site-packages/django/core/handlers/exception.py", li

Re: Are URL namespaces optional or are they used by default by Django?

2017-12-21 Thread Stodge
I am using a prefix when I include the URLs for each app: for app in settings.SITE_APPS.get_application_list(): url_prefix = r'^%s/' % app urlpatterns += [ url(prefix, include(url_include)), ] I just assumed this isn't using namespaces because I'm not using th

Re: Are URL namespaces optional or are they used by default by Django?

2017-12-21 Thread Stodge
Thanks Andreas, I'm seeing three things; 1) Reverse URLs are failing until I specifically add the app's name as a namespace 2) The show_urls management command from the django_extensions project appears to show that all URLs have a namespace: /license/license/edit// core.decorators.WVCheckLogi

Re: Are URL namespaces optional or are they used by default by Django?

2017-12-21 Thread Andréas Kühne
Hi, Namespaces are completely optional - you don't have to use it if you don't want to. What is happening that makes you think otherwise? What errors are you seeing? Regards, Andréas 2017-12-21 16:38 GMT+01:00 Stodge : > I am porting an app from Django 1.6.x to 1.10.x and I'm hitting a proble

Are URL namespaces optional or are they used by default by Django?

2017-12-21 Thread Stodge
I am porting an app from Django 1.6.x to 1.10.x and I'm hitting a problem with URL namespaces. I don't specifically configure any namespaces in my URLs but Django seems to think that all my app URLs are namespaced. The documentation seems to imply that namespaces are optional and only configure

Re: How do I know what version a patch is included in?

2017-12-21 Thread Andrew Buchan
Thanks, I think I understand... On Wednesday, December 20, 2017 at 6:32:52 PM UTC, Andrew Buchan wrote: > > I'm being affected by this bug: > https://code.djangoproject.com/ticket/28562 which was fixed 4 months ago. > > Somewhere on the ticket page it says: > > Version: 1.11 → master > Which is t

Re: [ORM Foreign Keys][Performance] How to use Charfield Foreign Keys efficiently?

2017-12-21 Thread Peter of the Norse
This should be a bug. Most databases don’t even allow foreign keys to be a different type. I didn’t see anything in the docs about this, but it should happen automatically. There are several examples of using non-int fields, e.g. UUID. Can you provide your migration file for OmEvent and mode

Re: Create executable file for Django Project

2017-12-21 Thread Jason
What's the use case for this? What makes your code so valuable? You can use something like pyinstaller to package a python project for a desktop application, but django doesn't work this way. Any project you install via pip is visible in your environment. If you don't want anyone looking at o

Re: why is a text not displayed?

2017-12-21 Thread Julio Biason
Hello, Did you remembered to include this urls.py in the project urls.py? This looks like your app internal URLs, but you still need to tell the whole project that it should include these URLs into it (with, maybe, a prefix). -- You received this message because you are subscribed to the Google

Re: why is a text not displayed?

2017-12-21 Thread pradam programmer
Change to this: path('^$', views.index, name='index'), On Thu, Dec 21, 2017 at 5:21 PM, wrote: > I made this along a tutorial. > However > > "Hello, world. You're at the blog index." > > is not displayed. > > """blog/views.py""" > from django.http import HttpResponse > > > def index(request):

Create executable file for Django Project

2017-12-21 Thread rajeevlimaye64
Hi All, Can it be possible to create executable file for my django project. So that once I install my application no one can access or change my code/scripts. Please revert me back asap. Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group

why is a text not displayed?

2017-12-21 Thread nexusyuumilo
I made this along a tutorial. However "Hello, world. You're at the blog index." is not displayed. """blog/views.py""" from django.http import HttpResponse def index(request): return HttpResponse("Hello, world. You're at the blog index.") """blog/urls""" from django.urls import include, p

Re: How do I know what version a patch is included in?

2017-12-21 Thread Jani Tiainen
Hi. Tickets do always have a reference to changeset (commit) where that ticket is fixed. All bugs are always fixed in master (dev version of django). Then depending on a case fix maybe backported to some previous version. In this particular case last commen contais changeset that contains backport

Re: How do I know what version a patch is included in?

2017-12-21 Thread Andrew Buchan
I'm sorry, but I still don't see how you determined that. I can follow the merge request, and the commit, but I can find anything that links to a version from either of those, though this is getting into the arena of git. I know it's in 2.0 now, but am concerned that I wasn't able to find that out