Re: Localtunnel with my Django Project

2017-10-29 Thread shreekant bohra
Hi You don't need to integrate localtunnel with django. Open django test server in one terminal and issue localtunnel command in another - lt --port 8000 Above command will expose port number 8000 on internet, which is the port of your django test server and you can test as required. -- Shree

Re: Following tutoria: View not defined

2017-10-29 Thread yingi keme
Okkk. From your url pattern, What you should do is http://127.0.0.1:8000/hello. Because your url pattern says r'^hello/$' But what u are doing presently is http://127.0.0.1:8000/ In this case your url pattern is supposed to be r'^$' and not r'^hello/$' Yingi Kem > On 29 Oct 2017, at 10:51

Re: Following tutoria: View not defined

2017-10-29 Thread Andre Basel
Thanks again :) That was it. On Monday, October 30, 2017 at 10:56:34 AM UTC+13, cjacq...@gmail.com wrote: > > Did you try http://127.0.0.1:8000/hello/ ? > > Le dimanche 29 octobre 2017 21:39:12 UTC+1, Andre Basel a écrit : >> >> I am totally new to Django, and working through the following

Re: Following tutoria: View not defined

2017-10-29 Thread cjacquemet
Did you try http://127.0.0.1:8000/hello/ ? Le dimanche 29 octobre 2017 21:39:12 UTC+1, Andre Basel a écrit : > > I am totally new to Django, and working through the following tutorial > https://djangobook.com/views-urlconfs/ > > Ihavecreatddf the following view in views.py > > from django.http

Re: Following tutoria: View not defined

2017-10-29 Thread Andre Basel
Hi all I see that I missed the import. I now have from django.conf.urls import url from django.contrib import admin from mysite.views import hello urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^hello/$', hello), ] But get the following error in my browser now Page not

Localtunnel with my Django Project

2017-10-29 Thread yingi keme
Hello I need to test a service that uses Webhooks - HTTP callbacks. I want to use localtunnel to open my localhost to the internet. However i dont know how to integrate it with my django project. I also dont know how to set up the url patterns if i am to use localtunnel. Any help please...!!!

Re: Following tutoria: View not defined

2017-10-29 Thread Oğuzhan Arslan
import views method in urls.py file like this: from django.conf.urls import url from django.contrib import admin from yourapp.views import *hello* # << urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^hello/$', hello), ] 29 Ekim 2017 Pazar 23:39:12 UTC+3 tarihinde Andre

Datefield model not show Today and Calender options in Admin page

2017-10-29 Thread Oğuzhan Arslan
Why Today and Calender option do not show in admin page ? This fields calender and Today option displayed two days ago. -- 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

Re: Following tutoria: View not defined

2017-10-29 Thread cjacquemet
Hi ! You have to import your view. Like this : from .views import hello Le dimanche 29 octobre 2017 21:39:12 UTC+1, Andre Basel a écrit : > > I am totally new to Django, and working through the following tutorial > https://djangobook.com/views-urlconfs/ > > Ihavecreatddf the following view in

Following tutoria: View not defined

2017-10-29 Thread Andre Basel
I am totally new to Django, and working through the following tutorial https://djangobook.com/views-urlconfs/ Ihavecreatddf the following view in views.py from django.http import HttpResponse def hello(request): return HttpResponse("Hello world") And then as per the tutorial updated

Re: return jwt token as json

2017-10-29 Thread Jani Tiainen
As a simplest possible form you can pass jwt as s string: "Xxx.yyyhgg.cxxch" 29.10.2017 19.33 "Rakhee Menon" kirjoitti: > Unable to send jwt token as json response > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

MultipleChoiceField is being displayed as a string instead of a list

2017-10-29 Thread Jack
I have a MultipleChoiceField forms field which shows up in the database like this . It seems to have been converted to a string in the database, because when I try to display it with a 'for property in property_type' statement in the HTML, it shows up like

Django 11 ImproperlyConfigured: AUTH_USER_MODEL refers to model 'authex.UserProfile' that has not been installed

2017-10-29 Thread cjacquemet
Hi everyone, I'm trying to update Django from 1.10.8 to 1.11.6 but it raise me an error. I just update Django with pip. I use Python 2.7.11 and Mac OS X and everything was working on Django 1.10.8. Traceback (most recent call last): File

return jwt token as json

2017-10-29 Thread Rakhee Menon
Unable to send jwt token as json response -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send

How to get Foreign Key Objects programmatically?

2017-10-29 Thread rmschne
I'm using Django as front end to a MySQL database. User interface is a terminal program, not a web site. I've written a very simple generic function to edit the fields of one record of a Django "object". It works fine for editing editable fields. User specifies which field, then is shown the

Re: Building a search form with 4 required choices, which will be inserted as arguments in an URL [warning: long question]

2017-10-29 Thread Jack
That makes much more sense. It's my fault for not reading the Django docs properly, but I don't seem to soak in the concepts at all by simply reading. I went with a ListView + get_queryset override. I haven't managed to get the filter to work but the search itself is working properly.

Django View classes and database selection

2017-10-29 Thread Sören Mindorf
Hi all, I've two databases connected in my setup. One default (sqlite) for Djano and one postgressql (pgsql, NOT managed) for my postfix. In my AddDomainView(CreateView) I can access the pgsql database and I can add Domains to the pgsql-database but in my DeleteDomain(DeleteView) I can't because

Re: Building a search form with 4 required choices, which will be inserted as arguments in an URL [warning: long question]

2017-10-29 Thread Daniel Roseman
On Monday, 23 October 2017 16:59:36 UTC+1, Jack wrote: > > This is a semi-long question. Please let me know wherever I make a > mistake. > > I'm building a search form with 4 required choices, 1 of the choices is a > CharField with a max_length of 3. The other 3 choices are ChoiceField's. >

Re: Django Template and compating with select option value

2017-10-29 Thread Andréas Kühne
Hi, I am not really sure what you are trying to accomplish. What you are writing doesn't make sense. I think you should check how to write the paginate by properties. You can find some information here: https://docs.djangoproject.com/en/1.11/topics/pagination/