Re: i need help

2018-08-11 Thread Aladin Masen
I want to use it in my admin Sent from my iPhone > On Aug 9, 2018, at 7:16 PM, Kasper Laudrup wrote: > > Hi Aladin, > >> On 09/08/2018 15.07, Aladin Masen wrote: >> Please how can i use the django_markdown with django 2 > > You probably can't, since the library seems to be unmaintained

Re: Unexpected behavior with icontains in query filter

2018-08-11 Thread ireoluwa fakeye
The only reasonable explanation is Django sees only upper case inputs as being case sensitive .so inputting a lower case and specifying icontains wouldnt change anything .you could get your input from a form to confirm On Fri., 10 Aug. 2018, 18:06 Joel, wrote: > I'm trying to do a case

Re:

2018-08-11 Thread Bill Freeman
A context contains the variables that you want your template to be able to access. It is common to want to access stuff from the request. You could copy those things that you need into the dict that you pass to the Context constructor or define an element of the dict to hold the Request object

Re: Setting up a system for testing by users (tables are tables?)

2018-08-11 Thread Derek
*The users who should do the testing say "The new system should be like the production system."* You need to let them know ASAP that that is very unlikely to be the case, unless you are using exactly the same tools. You can probably provide similar functionality. Otherwise you are too vague

Re: Not able to connect to SQL Server 2012 from current version of DJango and Python

2018-08-11 Thread Jason
the dev for that library has specified that this is not compatible with django 2.1. so your options are to either find another connector library compatible with 2.1 or downgrade to using 2.0.x https://github.com/michiya/django-pyodbc-azure/blob/azure-2.0/setup.py#L29 > -- You received this

Re: Unexpected behavior with icontains in query filter

2018-08-11 Thread Jason
Are you using sqlite for your db? if so, there are some notes about case insensitive matching at https://docs.djangoproject.com/en/dev/ref/databases/#sqlite-string-matching otherwise, I'd be interested in seeing what your SQL is like in your django shell, do the following: doctors =

Re: django

2018-08-11 Thread squal poreover
It means manage.py file is not in the same directory .. where you run python manage.py runserver On 10 Aug 2018 3:01 am, "Welly Iskand" wrote: On Friday, August 10, 2018 at 3:54:54 AM UTC+7, vasu wrote: > > while running python manage.py runserver 8080 this in cmd ...i am getting > cant open

Re: Unexpected behavior with icontains in query filter

2018-08-11 Thread Joel Mathew
This is what I got: In [8]: doct = doctor.objects.filter(name__icontains = 'joel') ...: print(doct.query) SELECT `appointments_doctor`.`docid`, `appointments_doctor`.`name`, `appointments_doctor`.`username`, `appointments_doctor`.`regid`, `appointments_doctor`.`photo`,

Re: Unexpected behavior with icontains in query filter

2018-08-11 Thread Joel Mathew
This workaround works. In [10]: from django.db.models.functions import Lower In [11]: from django.db.models import CharField In [12]: CharField.register_lookup(Lower, "lower") Out[12]: django.db.models.functions.base.Lower In [13]: doctor.objects.filter(name__lower__contains="joel") Out[13]: ,

Re: Unexpected behavior with icontains in query filter

2018-08-11 Thread Jason
Check out https://code.djangoproject.com/ticket/9682. Apparently this is a mysql specific thing. -- 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: How to include delete function in UpdateView instead a DeleteView

2018-08-11 Thread Melvyn Sopacua
On vrijdag 10 augustus 2018 16:51:54 CEST zengkeat wrote: > I have a UpdateView for editing a post, but instead of making a DeleteView > for delete a post, i try to make UpdateView include a function to delete > the post. So ,i want to edit and delete a post in UpdateView. Is that > possible ? i

How to serve this static file

2018-08-11 Thread Sandy Leon
Hello everyone, I recently completed the Django first app tutorial and am decently happy with what I have. I would like to continue adding to the site by making small improvements here and there. Anyways I found a cool cube clock on freefrontend.com but I can't seem to figure out how to add it