Re: Making a scheduling app/programm for recurring treatment

2019-11-01 Thread 'Amitesh Sahay' via Django users
Hello Nitin, First of all, you start with the following basics: -  Install Django, database(if you do not wish to use the default one)-  Register the Database to you Django project inside settings.py -  a Django project.-  create an APP.-  register the APP in settings.py. -  create an urls.py

Re: html home file is not opening while running under django env......

2019-11-01 Thread হজমুলা খান
ofcourse yes otherwise it will show error On Friday, November 1, 2019 at 4:24:49 AM UTC, Bruckner de Villiers wrote: > > Did you import include? > > Bruckner > 0836251086 > > On 01 Nov 2019, at 00:29, হজমুলা খান > > wrote: > >  > > > On Thursday, October 31, 2019 at 12:22:48 PM UTC, Kasper

Re: Why the next parameter does NOT show up in request object?

2019-11-01 Thread Christian Seberino
Andreas Thanks so much. This was very helpful. For what its worth, the keyword on the Form class seems to be "initial" rather than "initial_data" now. Thanks again! Awesome stuff! cs > def log_in(request): > if request.method == "POST": > form =

Re: JSONField filter fails with TypeError: can only concatenate tuple (not "list") to tuple

2019-11-01 Thread Raffaele Salmaso
On Fri, Nov 1, 2019 at 10:38 PM John-Paul Navarro wrote: > The following fails with Django 2.2.6 but works with Django 1.11.x. > https://code.djangoproject.com/ticket/30826 -- | Raffaele Salmaso | https://salmaso.org | https://bitbucket.org/rsalmaso | https://github.com/rsalmaso -- You

JSONField filter fails with TypeError: can only concatenate tuple (not "list") to tuple

2019-11-01 Thread John-Paul Navarro
The following fails with Django 2.2.6 but works with Django 1.11.x. Did filter() of JSONfield change in 2.2.6 and the query needs to change, or could this be a bug? Goal: Select model rows where the related AbstractService.EntityJSON contents “Capability" list includes the value

Re: Why the next parameter does NOT show up in request object?

2019-11-01 Thread Andréas Kühne
Hi, There are 2 errors in your code. First, when you do a request to the page, it is a get (you go from another page to this page). In this case the next parameter is there and you receive it in the "else" part of your view function (because the request is a get). So you have the next parameter

Re:

2019-11-01 Thread Paras Jain
Hi, i am given this task can somebody tell what i have to do in this The Task: Create a basic rest API that can perform CRUD operations on Users and their Blog with the following features/constraints. ❏ Use persistent model on database of your choice ❏ Only the creator of the blog should be

Why the next parameter does NOT show up in request object?

2019-11-01 Thread Christian Seberino
I can see the next parameter hanging off the URL of my log_in page. However, I cannot *read* it in my view code. The next parameter does NOT get passed to my Python code...Why not? Is my form action = "." the problem below? Here is the traceback. https://dpaste.de/H7KU Here is my log

Re: __init__ method called every time on same APIView object

2019-11-01 Thread Diana María Bedoya Ramírez
Thank you very much Andréas. The program is working fine now. I didn't know the difference between those two variable types, but now I understand. On Wednesday, October 30, 2019 at 6:10:08 PM UTC-5, Diana María Bedoya Ramírez wrote: > > Hello, > > I have an APIView object with an

Re:

2019-11-01 Thread Uzama Zaid Mohammed Jaward
Don’t look good database for Django. That is not sense anymore. You have to choose a right database according to your application or business requirements. On Fri, Nov 1, 2019 at 19:12, Mohammad yunus wrote: > Can anyone tell me about how to set mysql database connection,and also > tell me

Pass list parameter from one class based view to another

2019-11-01 Thread sotiris moustogiannis
I have this listview and the list datetimelist class ShopListView(ListView): model = Shops context_object_name= 'shops' template_name = 'booking/search.html' def get_queryset(self): query = self.request.GET.get('q') query1 = self.request.GET.get('q1') query2 = self.request.GET.get('q2') query3 =

Re: __init__ method called every time on same APIView object

2019-11-01 Thread Andréas Kühne
Hi, This is a python problem - You are not using an instance variable for the select_fields variable, but a class variable. If you want to use it as an instance variable you need to change the code to this: class IncomingCallsReport(APIView): def __init__(self): self.select_fields =

Re: Making a scheduling app/programm for recurring treatment

2019-11-01 Thread Nithin Bhaskar
Hey, I have send you a request. I think the name may appear as 'Charu' Do let me know when you are free Thanks On Thu, 31 Oct 2019 at 14:15, Motaz Hejaze wrote: > Any time , send me a text message at first > > On Thu, 31 Oct 2019, 6:10 am Nithin Bhaskar, > wrote: > >> Hey, >> Thanks. >> What

Re:

2019-11-01 Thread Kasper Laudrup
Hi Mohammad, On 01/11/2019 14.42, Mohammad yunus wrote: Can anyone tell me about how to set mysql database connection,and also tell me requirements for this steps,. You've asked this question before and got a few answers. Have you looked into those? Can someone tell me which database

[no subject]

2019-11-01 Thread Mohammad yunus
Can anyone tell me about how to set mysql database connection,and also tell me requirements for this steps,. Can someone tell me which database is good for Django framework .I know about default database sqlite (is it good for it) -- You received this message because you are subscribed to

Re: Server does not see any apps

2019-11-01 Thread Mohammad yunus
See ur settings.py file and see inside the installed_app['Meow'] On Fri, 1 Nov 2019, 5:19 pm Nijo Joseph, wrote: > What about the settings.py? i think u forgot to include Miaow in the i > INSTALLED_APPS = [ > 'Miaow', > ] > > On Tuesday, October 22, 2019 at 3:37:42 AM UTC+5:30, Кирилл

mariadb/mysql database (2006, 'MySQL server has gone away')

2019-11-01 Thread BR
I think I'm experiencing an issue related to: https://github.com/django/channels/issues/1234 where I get (2006, 'MySQL server has gone away') after trying to establish a new channels connection with calls using database_sync_to_async(). I have set my Django DB CONN_MAX_AGE to 300 (5 minutes)

Re: Generic Views in Django Tutorial Not Working

2019-11-01 Thread Nijo Joseph
class IndexView(generic.ListView): template_name = 'polls/index.html' context_object_name = 'latest_question_list' def get_queryset(self): """Return the last five published questions.""" return Question.objects.order_by('-pub_date')[:5] the def get_queryset(self):

Re: Generic Views in Django Tutorial Not Working

2019-11-01 Thread Kasper Laudrup
Hi Mike, On 01/11/2019 09.14, Mike Starr wrote: Hi! There's a lot of error message to copy and paste so please request what you would like to see specifically. I am at https://docs.djangoproject.com/en/2.2/intro/tutorial04/#use-generic-views-less-code-is-better in the Django tutorial and it

Re: Server does not see any apps

2019-11-01 Thread Nijo Joseph
What about the settings.py? i think u forgot to include Miaow in the i INSTALLED_APPS = [ 'Miaow', ] On Tuesday, October 22, 2019 at 3:37:42 AM UTC+5:30, Кирилл Лаврентьев wrote: > > Dear django-users! > > Could you please help me with Django tutorials. > I am doing the first one exectly the

Generic Views in Django Tutorial Not Working

2019-11-01 Thread Mike Starr
Hi! There's a lot of error message to copy and paste so please request what you would like to see specifically. I am at https://docs.djangoproject.com/en/2.2/intro/tutorial04/#use-generic-views-less-code-is-better in the Django tutorial and it seems replacing HTTPRequests with GenericViews

Re: Field Select MasterDetail

2019-11-01 Thread Nijo Joseph
Check django-autocomplete light. On Friday, November 1, 2019 at 4:25:06 AM UTC+5:30, J-23 wrote: > > Hello, > I am new to Django. I have a FormFault model, which has two foreign keys > "BuildingOwner" and "Building", the key "Building" depends on > "BuildingOwner" on the form, it gives me two

django-autocomplete id of the element

2019-11-01 Thread Nijo Joseph
Hi All, In Django autocomplete how to get the id of the element to use in jquery script. With regards, Nijo -- 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: FormSet.is_valid() raises ValidationError

2019-11-01 Thread Nijo Joseph
Hi, In case of {{ formset }} no probs. but in case of *{{ formset.management_form }}* {% for form in formset %} {{ form }} {% endfor %} *{{ formset.management_form }} is required and of course * {% csrf_token %}. Ref

Re: Upgrading Django from 2.1 to 2.2 - strings are not translated

2019-11-01 Thread Integr@te System
Hi issuer, Plz check https://docs.djangoproject.com/en/2.2/topics/auth/passwords/#password-validatio4n On Fri, Nov 1, 2019, 14:46 אורי wrote: > Hi, > > Take a look at this ticket: > https://code.djangoproject.com/ticket/30939 > > This issue prevents me from upgrading Django to 2.2. Currently

Re: Please help us to connect django with MongoDB

2019-11-01 Thread Kasper Laudrup
Hi Abhishek, On 01/11/2019 08.55, 'Abhishek Sharma' via Django users wrote: Please help us to connect django with MongoDB Here is what I found when doing a simple search: https://django-mongodb-engine.readthedocs.io/en/latest/ https://developer.ibm.com/tutorials/os-django-mongo/ Have you

Please help us to connect django with MongoDB

2019-11-01 Thread 'Abhishek Sharma' via Django users
Please help us to connect django with MongoDB -- The information in this e-mail and any attachments is confidential and may be legally privileged. It is intended solely for the addressee or addressee's. If you are not an intended recipient, please delete the message and any

Upgrading Django from 2.1 to 2.2 - strings are not translated

2019-11-01 Thread אורי
Hi, Take a look at this ticket: https://code.djangoproject.com/ticket/30939 This issue prevents me from upgrading Django to 2.2. Currently everything works with Django 2.1 but not with Django 2.2. אורי u...@speedy.net -- You received this message because you are subscribed to the Google