Re: Must be my and and can't be my code -- tracing back a URL pattern type mismatch

2019-04-03 Thread Josh Marshall
OK, I've gotten time to touch the code again, applied your suggestion, but there is no apparent change in behavior. For the sake of argument, I'm including the stack trace again. I'm not sure where my good debugging entry point is here. -- You received this message because you are

Re: Hosting recommendations please

2019-04-03 Thread Mike Dewhirst
On 3/04/2019 8:27 pm, Saurabh Jaiswal wrote: Hey Mike, Launch a digital ocean droplet with plesk 17.08 with decent specs and you can run all your three websites with ease on it on a single droplet. You would have to setup apache mod_wsgi on it and you will be good to go. If you need help do

Re: Using forms to handle request.GET data?

2019-04-03 Thread Allen Stewart
On Tuesday, April 2, 2019 at 2:12:50 PM UTC-7, Carsten Fuchs wrote: > > Dear Django group, > > I would like to show users a form that they can use to customize the view, > for example a ChoiceField from which the year of the report can be chosen. > It seems straightforward to use a forms.Form

Re: Using forms to handle request.GET data?

2019-04-03 Thread Mohammad Etemaddar
Set default value: year = forms.ChoiceField(required=False, choices=[(j, j) for j in range(2018, 2021)], default=2019) You do not need clean_year any more I think. On Wednesday, April 3, 2019 at 1:42:50 AM UTC+4:30, Carsten Fuchs wrote: > Dear Django group, > > I would like to show users a form

RE: Login by phone number best practice

2019-04-03 Thread Mohammad Etemaddar
Thank you. But django-phone-login seems a bit complex. It uses rest framework. I don't know why. -- 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

I need help on adding a search button to an input field

2019-04-03 Thread Mohammad Etemaddar
You can use FieldWithButtons in form helper's layout: https://django-crispy-forms.readthedocs.io/en/d-0/layouts.html -- 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

Re: I need help on adding a search button to an input field

2019-04-03 Thread Anirudh Jain
You can include the following code in the end ButtonHolder( Submit('submit', 'Update', css_class='btn btn-theme small') ) Take care of proper indentation. On Wed, 3 Apr 2019, 23:48 Nanjuki Saidat, wrote: > Hi everyone, > I want to add a search button to an input search field , if there is >

RE: Login by phone number best practice

2019-04-03 Thread Matthew Pava
Check out these: https://djangopackages.org/grids/g/authentication/ A package for phone number authentication: https://github.com/wejhink/django-phone-login -Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Mohammad Etemaddar

Login by phone number best practice

2019-04-03 Thread Mohammad Etemaddar
I want users to login by phone number (without registration). But we need username field for authentication. This is just for make easy for users that don't know about using email. And also make it easier to login for them. But I need also username and email for other users for future. I need you

I need help on adding a search button to an input field

2019-04-03 Thread Nanjuki Saidat
Hi everyone, I want to add a search button to an input search field , if there is anyone who knows how to add a button to the field in crispy form's input field. Please help me out

Adding a search button to an input field.

2019-04-03 Thread Nanjuki Saidat
Hi everyone, I want to add a search button to an input search field , if there is anyone who knows how to add a button to the field in crispy form's input field. Please help me out -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: django Query filter

2019-04-03 Thread Nikolay Smirnov
Your request.POST does not contain "search1". Do so search1 = request.POST.get('search1') Example: def viewstr(request): views = create_store.objects.all() brn = Prod_Brand.objects.all() mi = '' if request.method == 'POST': search1 = request.POST.get('search1') if

Re: What step am I missing?

2019-04-03 Thread Pedro Folch
Sorry codingforentreprenour or so. On YouTube. On Wed, Apr 3, 2019, 10:18 AM Pedro Folch wrote: > Helpful videos use encodingforentrepernours and justdjango are very > helpful providers > > On Sun, Mar 10, 2019, 4:23 PM Joseph Jones wrote: > >> Hello all! >> I have been reading >>

Re: What step am I missing?

2019-04-03 Thread Pedro Folch
Helpful videos use encodingforentrepernours and justdjango are very helpful providers On Sun, Mar 10, 2019, 4:23 PM Joseph Jones wrote: > Hello all! > I have been reading > https://www.packtpub.com/application-development/learn-python-programming-second-edition > Since > November, so I am very

Re: What step am I missing?

2019-04-03 Thread jgibson
Sorry, I addressed this to Pedro when I meant jos.jwj. On Wednesday, April 3, 2019 at 11:24:11 AM UTC-4, jgi...@caktusgroup.com wrote: > > Pedro, > > Can you provide us with the structure of your project? For example: > > /home/pedro/intro_django/ > /home/pedro/intro_django/manage.py >

Re: What step am I missing?

2019-04-03 Thread Pedro Folch
Also terminal in pycharm is the command prom if you press the green arrow on top it will also run the manage.py and will give you answers if problems found On Wed, Apr 3, 2019, 9:46 AM Pedro Folch wrote: > Also when you create a project, select the django project on pycharm > This will create

Re: What step am I missing?

2019-04-03 Thread Pedro Folch
Also when you create a project, select the django project on pycharm This will create almost all the steps needed for startup On Wed, Apr 3, 2019, 8:33 AM Joseph Jones wrote: > Pedro, > I apologize for the response delay. First thank you very much for > recommending pycharm. I do still find

Re: What step am I missing?

2019-04-03 Thread Pedro Folch
When you run the line manage.py you should be on the same folder. Make sure that you can see manage.py when you do an ls on the command prom On Wed, Apr 3, 2019, 8:33 AM Joseph Jones wrote: > Pedro, > I apologize for the response delay. First thank you very much for > recommending pycharm. I

Re: What step am I missing?

2019-04-03 Thread jgibson
Pedro, Can you provide us with the structure of your project? For example: /home/pedro/intro_django/ /home/pedro/intro_django/manage.py /home/pedro/intro_django/apps/ /home/pedro/intro_django/apps/models.py /home/pedro/intro_django/apps/views.py Then let us know which where you are issuing

Re: What step am I missing?

2019-04-03 Thread Joseph Jones
Pedro, I apologize for the response delay. First thank you very much for recommending pycharm. I do still find myself getting stuck on the same line. when I've run the code >py manage.py runserver I still receive an error that ' manage.py does not exist'. I'm sure it is a basic step that I'm not

RE: BaseModelFormSet > _construct_form

2019-04-03 Thread Matthew Pava
You may want to consider using the django-angular (https://github.com/jrief/django-angular) package and reading this question: https://stackoverflow.com/questions/32978137/using-formsets-in-django-angular From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of

Re: google chrome extension

2019-04-03 Thread אורי
I also think the server side of the extension can use Django (or any other platform and programming language) but the extension itself (the client side) - I'm not sure it's a good idea to use Django. Try to search about Chrome extensions and see what it takes to make one. I think JavaScript is

Re: google chrome extension

2019-04-03 Thread Alex Chiaranda
Greetings, for Chrome Extension, you must use Javascript, or Javascript + Native Code (compiling for the target platform, and distributing it with the extension). So the quick answer is "You shouldn't do it", but it might be possible. I don't think it would be approved thought, because you

psycopg2.DataError: invalid input syntax

2019-04-03 Thread omar ahmed
i am getting this error : psycopg2.DataError: invalid input syntax what is the solution ? -- 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: django Query filter

2019-04-03 Thread Guru Murthy
Hi abhineet baranwal, You have to use q(id__in=search) instead q(id__icontains=search) ..search more about how to use in query in django and 1 thing you are not getting correct post value of searc1 On Wed, 3 Apr, 2019, 5:31 PM Abhineet Baranwal, < suabhineetbaran...@gmail.com> wrote: > Thanks

Re: django Query filter

2019-04-03 Thread dvij parekh
seems like search1 key is containg multi value dictionary and you are checking it with == which is for single value after *search1 = request.POST['search1'] * put *print(* *search1* *)* *return "hello"* and comment code remaining below ,check terminal it will show you how many value you

Re: django Query filter

2019-04-03 Thread Abhineet Baranwal
Thanks for your efforts, But i didn't get it can you please elaborate your answer? On Wed, Apr 3, 2019 at 5:16 PM Guru Murthy wrote: > Hi Abhijeet baranwal, > I think you are adding contains is not correct query listing you have to > use in query instead > > > On Wed, 3 Apr, 2019, 5:02 PM

Re: django Query filter

2019-04-03 Thread Guru Murthy
Hi Abhijeet baranwal, I think you are adding contains is not correct query listing you have to use in query instead On Wed, 3 Apr, 2019, 5:02 PM Abhineet Baranwal, < suabhineetbaran...@gmail.com> wrote: > > *this is my views file which creates an error like >

Re: BaseModelFormSet > _construct_form

2019-04-03 Thread Nikolay Smirnov
I override add_prefix because on client side I use angularjs. In some cases it is impossible or not easy to use hyphens in the names. I do not overwrite _construct_form! That was just a possibility to solve that. But at the moment, I see no other options for solving that. I find it personally

google chrome extension

2019-04-03 Thread Abhineet Baranwal
*Can i create a chrome extension in django or flask ? I have already created an extension in javascript but i didn't know how to start creating it in django . Can anyone tell me how to do it with some example?* -- You received this message because you are subscribed to the Google Groups

django Query filter

2019-04-03 Thread Abhineet Baranwal
*this is my views file which creates an error like django.utils.datastructures.MultiValueDictKeyError: 'search1' . Can anyone tell me where i go wrong?* *def viewstr(request):* *views = create_store.objects.all()brn = Prod_Brand.objects.all()mi = ''if

Re: Remove username field

2019-04-03 Thread Soumen Khatua
Can you send me the code link, please I'm struggling to find it or solve it. Please help. Thank you for your time. On Wed, 3 Apr 2019, 09:28 Guru Murthy, wrote: > Hi Suman khatua, >You can remove the username from admin authentication system > > -- > You received this message because you

django

2019-04-03 Thread Abhineet Baranwal
*The below code works fine on one search but for another it gives an error like django.utils.datastructures.MultiValueDictKeyError: 'search1' . Can anyone tell me where i go wrong?* *def viewstr(request):* *views = create_store.objects.all()brn =

Re: How to deploy migrations to production

2019-04-03 Thread אורי
You can read about collectstatic here: https://docs.djangoproject.com/en/dev/howto/static-files/deployment/ I think you should run it every time there is a change in the static files. If you want to make sure, run it every time you deploy a new version. אורי u...@speedy.net On Wed, Apr 3, 2019

Re: Django inbuilt server

2019-04-03 Thread Saurabh Jaiswal
Django uses wsgi webservers by default. On Wed, Apr 3, 2019 at 1:53 PM PASCUAL Eric wrote: > Hi, > > Chances are that you're thinking about "runserver", which is a management > command. On Unix based systems (i.e. Linux or MacOS) you start it with : > > *./manage.py runserver* > > I'm not

Re: Hosting recommendations please

2019-04-03 Thread Saurabh Jaiswal
Hey Mike, Launch a digital ocean droplet with plesk 17.08 with decent specs and you can run all your three websites with ease on it on a single droplet. You would have to setup apache mod_wsgi on it and you will be good to go. If you need help do let me know. I have been running my django projects

Re: Django inbuilt server

2019-04-03 Thread PASCUAL Eric
Hi, Chances are that you're thinking about "runserver", which is a management command. On Unix based systems (i.e. Linux or MacOS) you start it with : ./manage.py runserver I'm not exactly sure about Windows, but it should be something as : python manage.py runserver Warning : as stressed in

Re: Hosting recommendations please

2019-04-03 Thread Mike Dewhirst
Thank you everyone for your recommendations. I have decided to see what DigitalOcean feels like. Cheers Mike On 2/04/2019 6:08 pm, Mike Dewhirst wrote: I have to move three Django websites away from my current VM service provider by the end of April because he is going out of the VM