Re: i have aproblem with my code

2021-02-03 Thread Gabriel Araya Garcia
Agni:
No, no, the information is not enough. Could you give us exactly which is
your problem? you say that it is in a web environment, but what happens in
your local host ?

Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos




El mié, 3 feb 2021 a las 15:41, Agni Venus ()
escribió:

> data donot save anything when i input it from the website page.
> my views.py code
> from django.shortcuts import render
> from django.core.files.storage import FileSystemStorage
> from .models import profile
>
> def home(request):
> up=profile.objects.all()
>
> return render(request, 'home.html' ,{ 'up':up })
>
>
> def normalupload(request):
> if request.method == 'POST' and request.FILES['myfile']:
> myfile = request.FILES['myfile']
> fs = FileSystemStorage()
> filename = fs.save(myfile.name, myfile)
> url = fs.url(filename)
> new_profile = profile(
> name=request.POST['name'],
> age=request.POST['age'],
> image=url
> )
> new_profile.save()
> redirect('home/')
> else:
> return redirect('home/')
>
>
> models.py page
> from django.db import models
>
> # Create your models here.
>
> class profile(models.Model):
> name= models.CharField(max_length=30)
> age=models.IntegerField()
> image = models.URLField()
>
> my html page is :
> Home
> Working good.
> 
> 
> {% for x in up %}
> 
> {{x.name}}
> 
> {% endfor %}
> 
>
> 
> 
> 
>  {% csrf_token
> %}
> 
> 
> 
> 
>
>
>
> 
>
>
>
> my urls.py page
>
> from django.contrib import admin
> from django.urls import path
> from . import views
> from django.conf import settings
> from django.conf.urls.static import static
> urlpatterns = [
> path('', views.home),
> path('home/', views.home),
> path('normalupload/', views.normalupload, name="normalupload"),
> ]
>
> 2nd one
>
> from django.contrib import admin
> from django.urls import path
> from upload.views import home
> from django.conf import settings
> from django.conf.urls.static import static
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('', home),
> ]
>
> if settings.DEBUG:
> urlpatterns += static(settings.MEDIA_URL,
> document_root=settings.MEDIA_ROOT)
>
> from django.contrib import admin
> from django.urls import path
> from upload.views import home
> from django.conf import settings
> from django.conf.urls.static import static
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('', home),
> ]
>
> if settings.DEBUG:
> urlpatterns += static(settings.MEDIA_URL,
> document_root=settings.MEDIA_ROOT)
> from django.contrib import admin
> from django.urls import path
> from upload.views import home
> from django.conf import settings
> from django.conf.urls.static import static
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('', home),
> ]
>
> if settings.DEBUG:
> urlpatterns += static(settings.MEDIA_URL,
> document_root=settings.MEDIA_ROOT)
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/244dc11f-b877-4198-b994-4a39b809ed75n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKVvSDB4SvrSdP4AeJQxrxU6fq4egMPipo-KHJmFrb%3DbHS_VUw%40mail.gmail.com.


Re: Weird Django-admin bug

2021-02-03 Thread 'rossm6' via Django users
Sorry to hear this but there is absolutely no way anybody could help based
on this information alone.

On Tue, Feb 2, 2021 at 6:25 PM yes...@gmail.com  wrote:

> Hi
>
> I am having this situation where I try to have a look at an instance of a
> specific model through Django-admin and the requests just goes on and on
> and finally times out. This happens with only one of my models and all that
> time there is absolutely no output in stdout.
>
> ex :
> http://localhost:8001/admin/portfolio/achievement/ec2949e5-1c34-415f-ba30-f5aa51819891/change/
>
> This also happens on every browser running on localhost BUT it does not
> happen if I try to see the same model instance from another computer on my
> local network ?!?!
>
> ex :
> http://192.168.0.4:8001/admin/portfolio/achievement/ec2949e5-1c34-415f-ba30-f5aa51819891/change/
>
> This happens with manage,py runserver. It does not happen in my production
> environment (DjangoEurope) but I discovered this problem after my last
> upload.
>
> Anybody has any clue as to what may be going on or how to find out ?
>
> Thanks !
>
> Django-3.1.5 / Python 3.9.1 / MacOS 10.11.6
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/53050d5c-2d8b-44d7-a9f1-c478adfca10cn%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJXS7_Pdo4%3DAxGNPM6oEBHTExJdAWuBn74YDVJ72Qzt5Hjqmcw%40mail.gmail.com.


i have aproblem with my code

2021-02-03 Thread Agni Venus
data donot save anything when i input it from the website page.
my views.py code 
from django.shortcuts import render
from django.core.files.storage import FileSystemStorage
from .models import profile

def home(request):
up=profile.objects.all()

return render(request, 'home.html' ,{ 'up':up })


def normalupload(request):
if request.method == 'POST' and request.FILES['myfile']:
myfile = request.FILES['myfile']
fs = FileSystemStorage()
filename = fs.save(myfile.name, myfile)
url = fs.url(filename)
new_profile = profile(
name=request.POST['name'],
age=request.POST['age'],
image=url
)
new_profile.save()
redirect('home/')
else:
return redirect('home/')


models.py page
from django.db import models

# Create your models here.

class profile(models.Model):
name= models.CharField(max_length=30)
age=models.IntegerField()
image = models.URLField()

my html page is :
Home
Working good.


{% for x in up %}

{{x.name}}

{% endfor %}





 {% csrf_token 
%}











my urls.py page

from django.contrib import admin
from django.urls import path
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('', views.home),
path('home/', views.home),
path('normalupload/', views.normalupload, name="normalupload"),
]

2nd one 

from django.contrib import admin
from django.urls import path
from upload.views import home
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('', home),
]

if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

from django.contrib import admin
from django.urls import path
from upload.views import home
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('', home),
]

if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
from django.contrib import admin
from django.urls import path
from upload.views import home
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('', home),
]

if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/244dc11f-b877-4198-b994-4a39b809ed75n%40googlegroups.com.


Re: Django Search Between 2 Dates

2021-02-03 Thread Thiago Luiz Parolin
If you want clien-side, then you need to make some script-fu using jquery
or anything like that.

Em qua., 3 de fev. de 2021 às 10:40, Steven Mapes 
escreveu:

> Are you looking at client-side filtering within datatables or server side
> filtering? Thiago's suggestion related to using filters when you fetch the
> queryset (
> https://docs.djangoproject.com/en/3.1/topics/db/queries/#retrieving-specific-objects-with-filters
> )
>
> On Wednesday, 3 February 2021 at 13:24:40 UTC eugenet...@gmail.com wrote:
>
>> Dear Thiago,
>>
>> Can I have some documentations or sample codes please?
>>
>> On Wed, 3 Feb 2021 at 15:16, Thiago Luiz Parolin 
>> wrote:
>>
>>> Hi...
>>> Normally i use field__lte and field__gte
>>>
>>> Em qua, 3 de fev de 2021 08:11, Eugene TUYIZERE 
>>> escreveu:
>>>
 Dear Team,

 I need help. I have a list of Items in a table. And I want to filter
 some data between dates (start and end date). Please help me to do a search
 between the two date. I am using Data table but I can use the other way if
 possible for this purpose.

 Regards,

 --
 *TUYIZERE Eugene*



 *Msc Degree in Mathematical Science*

 *African Institute for Mathematical Sciences (AIMS Cameroon)Crystal
 Garden-Lime, Cameroon*

 Bsc in Computer Science

 *UR-Nyagatare Campus*

 Email: eugene@aims-cameroon.org
eugenet...@gmail.com

 Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38

 --
 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...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CABxpZHuPozCVEUFjWFYxipwTyGrY9Syyw-Et%2B_NAqXn6GevNow%40mail.gmail.com
 
 .

>>> --
>>> 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...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CANbmKytQ%3D1hiSQyj5%2Bkj-Dvy2Tk%2B0YUukORMui0cP7BPwXNZdg%40mail.gmail.com
>>> 
>>> .
>>>
>>
>>
>> --
>> *TUYIZERE Eugene*
>>
>>
>>
>> *Msc Degree in Mathematical Science*
>>
>> *African Institute for Mathematical Sciences (AIMS Cameroon)Crystal
>> Garden-Lime, Cameroon*
>>
>> Bsc in Computer Science
>>
>> *UR-Nyagatare Campus*
>>
>> Email: eugene@aims-cameroon.org
>>eugenet...@gmail.com
>>
>> Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/98702a6a-6341-4495-b879-977e7447c6f8n%40googlegroups.com
> 
> .
>


-- 
Thiago Luiz Parolin

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANbmKyuJDzEK9QjTWJ%2B7uM81EJAJ-TVu%3DWXQxq%2Bk_jKMsmZZ%3DQ%40mail.gmail.com.


Re: Django Search Between 2 Dates

2021-02-03 Thread Thiago Luiz Parolin
I will try to explain, although I am not a good teacher.

Suppose you have an 'Example' model that has a 'data' field with
'auto_now_add = True'
And a function 'yesterday()' that returns yesterday, and 'past()' that
returns 'yesterday() minus some days'.

if you want to filter items between yesterday() and past(), you could
use something like:
Example.objects.filter(data__gte=past(),data__lte=yesterday())

 or using .exclude too

If you need more info, you can get better in django docs:
https://docs.djangoproject.com/en/3.1/ref/models/querysets/

I hope I helped a little despite my bad English.






Em qua., 3 de fev. de 2021 às 10:24, Eugene TUYIZERE <
eugenetuyiz...@gmail.com> escreveu:

> Dear Thiago,
>
> Can I have some documentations or sample codes please?
>
> On Wed, 3 Feb 2021 at 15:16, Thiago Luiz Parolin 
> wrote:
>
>> Hi...
>> Normally i use field__lte and field__gte
>>
>> Em qua, 3 de fev de 2021 08:11, Eugene TUYIZERE 
>> escreveu:
>>
>>> Dear Team,
>>>
>>> I need help. I have a list of Items in a table. And I want to filter
>>> some data between dates (start and end date). Please help me to do a search
>>> between the two date. I am using Data table but I can use the other way if
>>> possible for this purpose.
>>>
>>> Regards,
>>>
>>> --
>>> *TUYIZERE Eugene*
>>>
>>>
>>>
>>> *Msc Degree in Mathematical Science*
>>>
>>> *African Institute for Mathematical Sciences (AIMS Cameroon)Crystal
>>> Garden-Lime, Cameroon*
>>>
>>> Bsc in Computer Science
>>>
>>> *UR-Nyagatare Campus*
>>>
>>> Email: eugene.tuyiz...@aims-cameroon.org
>>>eugenetuyiz...@gmail.com
>>>
>>> Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CABxpZHuPozCVEUFjWFYxipwTyGrY9Syyw-Et%2B_NAqXn6GevNow%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CANbmKytQ%3D1hiSQyj5%2Bkj-Dvy2Tk%2B0YUukORMui0cP7BPwXNZdg%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> *TUYIZERE Eugene*
>
>
>
> *Msc Degree in Mathematical Science*
>
> *African Institute for Mathematical Sciences (AIMS Cameroon)Crystal
> Garden-Lime, Cameroon*
>
> Bsc in Computer Science
>
> *UR-Nyagatare Campus*
>
> Email: eugene.tuyiz...@aims-cameroon.org
>eugenetuyiz...@gmail.com
>
> Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABxpZHsJ9%3DE-cQX4iNQxc8ztP2Hcd%3DC4stZfA3KhMwXrTekxjQ%40mail.gmail.com
> 
> .
>


-- 
Thiago Luiz Parolin

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANbmKyvfMe8d1uekPSCqjr_Mf5eqpSnU3zFBXZcfDVt7XMzNjw%40mail.gmail.com.


Re: Hi

2021-02-03 Thread Kelechi Divine
The same problem that I am passing through!
But in case you've seen any help somewhere then i'd appreciate if you'd
share.

On Thu, 28 Jan 2021 at 17:45, Sunday Iyanu Ajayi 
wrote:

> Hi  Florin,
>
> What support do you need? You can reach out via my email.
> *AJAYI Sunday *
> (+234) 806 771 5394
> *sunnexaj...@gmail.com *
>
>
>
> On Tue, Jan 26, 2021 at 3:10 PM Florin Ngabire 
> wrote:
>
>> My name is florin.i need a support. A small Python project in django
>> framework
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CACynOu%2BySEKrNgRhwKXYm0%3DOwOau1AS554ywRrzJ3Ru8mgavwA%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKYSAw2PEDYL6PmFpWOzHqdDyYGmmuLJeHibZACJ8mk0nbgpMw%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADWbU-gtXdNNgqgfEXHD6LEHtRK3cJnL2JvDsSWQOAtTaDB1Uw%40mail.gmail.com.


Re: Django rext framework join multiple table without nested data

2021-02-03 Thread Kelechi Divine
*I'm grateful for the images you've sent to me! It was helpful, and it's a
good thing to receive a help at the moment!*

On Tue, 2 Feb 2021 at 16:57, narendra thapa 
wrote:

> here are the images of mine code by using the value
> _list flat = True and with out it.
>
> i need a flatten json output not a nested one can you help me with that?
>
> On Tue, Feb 2, 2021 at 11:56 AM Benny M  wrote:
>
>> If your using a values_list command, try adding the `flat=True` argument.
>> Or you could set the depth on your Meta parameters:
>> https://www.django-rest-framework.org/api-guide/serializers/#specifying-nested-serialization
>>
>> Benny
>>
>> On Feb 1, 2021, at 6:17 AM, narendra...@gmail.com <
>> narendrathapa...@gmail.com> wrote:
>>
>> i have  a two table and want to fetch data based on their relationship
>> using serializer. I'm able to get nested data like
>>
>> {
>> 'ID':1,
>> 'name':'abc',
>> 'address':[
>> {
>> 
>> }
>> ]
>>
>>
>> but i want it as in single not as nested
>> {
>> .
>> }
>>
>> can any body help me with sample code or reference me a good example so i
>> can understand
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/551a9e41-d743-40d2-bab9-f4e6eb8ea941n%40googlegroups.com
>> 
>> .
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CH2PR14MB3913607AF402D3532C3A6A07C0B59%40CH2PR14MB3913.namprd14.prod.outlook.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAEtntjUKJwusCdvPchr5NuyFThEwE0GtNFw05Fnrd9AAVa%3DkZQ%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADWbU-jeFYMG2su9F%3DoAm7r1JNKkVVwoqhZ1itwMRHG_Uu0kfQ%40mail.gmail.com.


Re: Django Search Between 2 Dates

2021-02-03 Thread Steven Mapes
Are you looking at client-side filtering within datatables or server side 
filtering? Thiago's suggestion related to using filters when you fetch the 
queryset 
(https://docs.djangoproject.com/en/3.1/topics/db/queries/#retrieving-specific-objects-with-filters)

On Wednesday, 3 February 2021 at 13:24:40 UTC eugenet...@gmail.com wrote:

> Dear Thiago,
>
> Can I have some documentations or sample codes please?
>
> On Wed, 3 Feb 2021 at 15:16, Thiago Luiz Parolin  
> wrote:
>
>> Hi...
>> Normally i use field__lte and field__gte 
>>
>> Em qua, 3 de fev de 2021 08:11, Eugene TUYIZERE  
>> escreveu:
>>
>>> Dear Team,
>>>
>>> I need help. I have a list of Items in a table. And I want to filter 
>>> some data between dates (start and end date). Please help me to do a search 
>>> between the two date. I am using Data table but I can use the other way if 
>>> possible for this purpose.
>>>
>>> Regards, 
>>>
>>> -- 
>>> *TUYIZERE Eugene*
>>>
>>>
>>>
>>> *Msc Degree in Mathematical Science*
>>>
>>> *African Institute for Mathematical Sciences (AIMS Cameroon)Crystal 
>>> Garden-Lime, Cameroon*
>>>
>>> Bsc in Computer Science
>>>
>>> *UR-Nyagatare Campus*
>>>
>>> Email: eugene@aims-cameroon.org
>>>eugenet...@gmail.com
>>>
>>> Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38
>>>
>>> -- 
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CABxpZHuPozCVEUFjWFYxipwTyGrY9Syyw-Et%2B_NAqXn6GevNow%40mail.gmail.com
>>>  
>>> 
>>> .
>>>
>> -- 
>> 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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CANbmKytQ%3D1hiSQyj5%2Bkj-Dvy2Tk%2B0YUukORMui0cP7BPwXNZdg%40mail.gmail.com
>>  
>> 
>> .
>>
>
>
> -- 
> *TUYIZERE Eugene*
>
>
>
> *Msc Degree in Mathematical Science*
>
> *African Institute for Mathematical Sciences (AIMS Cameroon)Crystal 
> Garden-Lime, Cameroon*
>
> Bsc in Computer Science
>
> *UR-Nyagatare Campus*
>
> Email: eugene@aims-cameroon.org
>eugenet...@gmail.com
>
> Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/98702a6a-6341-4495-b879-977e7447c6f8n%40googlegroups.com.


Re: Django Search Between 2 Dates

2021-02-03 Thread Eugene TUYIZERE
Dear Thiago,

Can I have some documentations or sample codes please?

On Wed, 3 Feb 2021 at 15:16, Thiago Luiz Parolin 
wrote:

> Hi...
> Normally i use field__lte and field__gte
>
> Em qua, 3 de fev de 2021 08:11, Eugene TUYIZERE 
> escreveu:
>
>> Dear Team,
>>
>> I need help. I have a list of Items in a table. And I want to filter some
>> data between dates (start and end date). Please help me to do a search
>> between the two date. I am using Data table but I can use the other way if
>> possible for this purpose.
>>
>> Regards,
>>
>> --
>> *TUYIZERE Eugene*
>>
>>
>>
>> *Msc Degree in Mathematical Science*
>>
>> *African Institute for Mathematical Sciences (AIMS Cameroon)Crystal
>> Garden-Lime, Cameroon*
>>
>> Bsc in Computer Science
>>
>> *UR-Nyagatare Campus*
>>
>> Email: eugene.tuyiz...@aims-cameroon.org
>>eugenetuyiz...@gmail.com
>>
>> Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CABxpZHuPozCVEUFjWFYxipwTyGrY9Syyw-Et%2B_NAqXn6GevNow%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANbmKytQ%3D1hiSQyj5%2Bkj-Dvy2Tk%2B0YUukORMui0cP7BPwXNZdg%40mail.gmail.com
> 
> .
>


-- 
*TUYIZERE Eugene*



*Msc Degree in Mathematical Science*

*African Institute for Mathematical Sciences (AIMS Cameroon)Crystal
Garden-Lime, Cameroon*

Bsc in Computer Science

*UR-Nyagatare Campus*

Email: eugene.tuyiz...@aims-cameroon.org
   eugenetuyiz...@gmail.com

Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABxpZHsJ9%3DE-cQX4iNQxc8ztP2Hcd%3DC4stZfA3KhMwXrTekxjQ%40mail.gmail.com.


Re: Django Search Between 2 Dates

2021-02-03 Thread Thiago Luiz Parolin
Hi...
Normally i use field__lte and field__gte

Em qua, 3 de fev de 2021 08:11, Eugene TUYIZERE 
escreveu:

> Dear Team,
>
> I need help. I have a list of Items in a table. And I want to filter some
> data between dates (start and end date). Please help me to do a search
> between the two date. I am using Data table but I can use the other way if
> possible for this purpose.
>
> Regards,
>
> --
> *TUYIZERE Eugene*
>
>
>
> *Msc Degree in Mathematical Science*
>
> *African Institute for Mathematical Sciences (AIMS Cameroon)Crystal
> Garden-Lime, Cameroon*
>
> Bsc in Computer Science
>
> *UR-Nyagatare Campus*
>
> Email: eugene.tuyiz...@aims-cameroon.org
>eugenetuyiz...@gmail.com
>
> Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABxpZHuPozCVEUFjWFYxipwTyGrY9Syyw-Et%2B_NAqXn6GevNow%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANbmKytQ%3D1hiSQyj5%2Bkj-Dvy2Tk%2B0YUukORMui0cP7BPwXNZdg%40mail.gmail.com.


Re: Django app deployment

2021-02-03 Thread Eugene TUYIZERE
Dear Kasper,

Thank you very much for the documentation.

regards,

On Mon, 1 Feb 2021 at 13:54, Kasper Laudrup  wrote:

> On 01/02/2021 12.49, Eugene TUYIZERE wrote:
> >
> > How to connect a django application to a Database that is on a different
> > machine with an application file? I mean, if the application files are
> > on the machine(server) A and database is on the machine(server) B
> >
>
> Simple enough. Have a look at the HOST setting:
>
> https://docs.djangoproject.com/en/3.1/ref/settings/#std:setting-HOST
>
> Of course, the configuration depends on which database you're running.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/afd20a73-89b5-68df-fa71-b2786cd8bd99%40stacktrace.dk
> .
>


-- 
*TUYIZERE Eugene*



*Msc Degree in Mathematical Science*

*African Institute for Mathematical Sciences (AIMS Cameroon)Crystal
Garden-Lime, Cameroon*

Bsc in Computer Science

*UR-Nyagatare Campus*

Email: eugene.tuyiz...@aims-cameroon.org
   eugenetuyiz...@gmail.com

Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABxpZHuKGP%2BfAejwk_LD9Ey06UhCt9Pm4OEaDT54y_WbeeZ%3D3Q%40mail.gmail.com.


Django Search Between 2 Dates

2021-02-03 Thread Eugene TUYIZERE
Dear Team,

I need help. I have a list of Items in a table. And I want to filter some
data between dates (start and end date). Please help me to do a search
between the two date. I am using Data table but I can use the other way if
possible for this purpose.

Regards,

-- 
*TUYIZERE Eugene*



*Msc Degree in Mathematical Science*

*African Institute for Mathematical Sciences (AIMS Cameroon)Crystal
Garden-Lime, Cameroon*

Bsc in Computer Science

*UR-Nyagatare Campus*

Email: eugene.tuyiz...@aims-cameroon.org
   eugenetuyiz...@gmail.com

Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABxpZHuPozCVEUFjWFYxipwTyGrY9Syyw-Et%2B_NAqXn6GevNow%40mail.gmail.com.