Re: Search and display results using calendar in Django

2019-05-01 Thread Aakash Baranwal
My Calendar.html: https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css";> https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css";> https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/css/bootstrap-datetimepicker.min.css"; /> https://cdnj

Search and display results using calendar in Django

2019-04-30 Thread Aakash Baranwal
Hi Everybody, I need help. I want to perform search operation using calendars. I shall select two dates i.e. max_date which shall not be more than the current date but can be less and min_date, these two shall be the days range. The result fields are: in_count, out_count, and dwell_time. The outp

Help for reading data from csv file and store the data in json format in Django

2019-04-25 Thread Aakash Baranwal
Hi Everybody, I have a CSV file in media folder inside my django project. I want to read the data from the CSV file and store it in JSON format either directly in the database or convert it into JSON from CSV file and then store it, and enable me to view it on an html page, in my Django Web Applic

Re: Slug not working

2019-04-18 Thread Aakash Baranwal
Can anyone kindly suggest what I am doing wrong? Thanks Aakash On Thu, Apr 18, 2019 at 3:10 PM Aakash Baranwal wrote: > Hi Everybody, > > This is my models.py file: > > from django.db.models.signals import pre_save > from django.utils.text import slugify > from django.db

Re: Slug not working

2019-04-18 Thread Aakash Baranwal
ver, sender=Video) >> >> >> The problem I am facing is, slug field appears in the admin and >> unfortunately in the create page where I am uploading the videos. >> >> However, in the url it is not coming, also in the create page, I have to >> enter the slug

Re: File not getting uploaded

2019-04-18 Thread Aakash Baranwal
Yes Sir, I corrected it. Thanks a lot. Best Aakash On Thu, Apr 18, 2019 at 8:46 PM adarsh pandey wrote: > Gentle man you have not given enctype=" form/multipartdata" in the form > tag of the HTML file > > > On Wed, Apr 17, 2019, 12:05 PM Aakash Baranwal > wrote: &

Re: File not getting uploaded

2019-04-17 Thread Aakash Baranwal
Thanks a lot. Your solution worked perfectly for me. With Kind Regards Aakash Baranwal On 17 Apr 2019 7:36 p.m., "Vijay Khemlani" wrote: When he said "uploading it from there" I was not sure whether "there" meant Django's admin page or the same view that&

Re: File not getting uploaded

2019-04-17 Thread Aakash Baranwal
Hi, Actually, his solution was correct because when I provided the encryption it worked, however I am not sure about the reason why it did worked at all. Thanks a lot. With Kind Regards Aakash Baranwal On 17 Apr 2019 7:23 p.m., "Ram sundar" wrote: > Hi Vijay, > > You ar

Re: File not getting uploaded

2019-04-16 Thread Aakash Baranwal
Sorry, the image file wasnt uploaded. On Wed, Apr 17, 2019 at 12:04 PM Aakash Baranwal wrote: > Hi Everybody, > > I am trying to upload a file, but it says "No file chosen", even when I > have selected the file. However it is getting uploaded when I have logged >

File not getting uploaded

2019-04-16 Thread Aakash Baranwal
he image file displaying the page after i selected the file and hit the Upload Video button With Kind Regards Aakash Baranwal -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Getting a TypeError

2019-04-16 Thread Aakash Baranwal
Hi Everybody, Kindly help me out. My views.py file is: def video_detail_view(request): obj = str(Video.objects.get(id=id)) print(obj) context = { "object": obj } return render(request, "deploy/list_view.html", context) def video_list_view(request): queryset = Video.objects.all() print(queryset

Re: Integrating Machine Learning Model in Django

2019-04-11 Thread Aakash Baranwal
Thanks a lot. I read about it and I think it will do the job for me. I plan to send a live video and chunk it after 1 hour time and then run the model on it. How to create a REST API for calling my model to run on the video and then another challenge is how to show the result video to the person

Integrating Machine Learning Model in Django

2019-04-11 Thread Aakash Baranwal
Hi Everybody, I need a help in integrating a machine learning model with my website. I have a file upload button where I can upload either an image or a video. After it is uploaded, I want to run my model into it and whatever is the result I want to display it and keep a record of the whole proce

Caltech Pedestrian Detection Annotations

2019-04-08 Thread Aakash Baranwal
Hi Everybody, This is not exactly a Django related question, but I need help. I am working on a project, and I have to use Caltech Pedestrian Detection data set. However, I am not able to get the output as desired as the files are

Re: Deployment on Heroku

2019-03-25 Thread Aakash Baranwal
(if it’s a Linux filesystem... I don’t remember what heroku uses > exactly). > > Also yes, always use environment variables to import your passwords, > security keys etc. in deployment. > > On Mon, Mar 25, 2019 at 3:07 AM Aakash Baranwal > wrote: > >> Hi, I am Aakash. I hav

Re: Deployment on Heroku

2019-03-25 Thread Aakash Baranwal
vironment variables to import your passwords, >> security keys etc. in deployment. >> >> On Mon, Mar 25, 2019 at 3:07 AM Aakash Baranwal >> wrote: >> >>> Hi, I am Aakash. I have been working on a project which i want to deploy >>> on heroku, but i have be

Re: Pagination - Not Working

2019-02-19 Thread Aakash Baranwal
Tue, Feb 19, 2019, 9:20 AM Aakash Baranwal > wrote: > >> Hello, >> >> Thanks for offering me your help, but the problem is I can't upload it on >> internet as I have signed a Non Disclosure Agreement for the project in >> which I am working, so totally helples

Re: Pagination - Not Working

2019-02-19 Thread Aakash Baranwal
It did not work. I tried making it using JavaScript like in websites if you might have seen when you press the button then only it shows the content or scrolls down. On Tue, Feb 19, 2019 at 2:01 PM Siddharth Tamang < tamangsiddhart...@gmail.com> wrote: > Can you try this in your views.py? > > fr

Re: Pagination - Not Working

2019-02-19 Thread Aakash Baranwal
t;> Are you trying pagination using JavaScript or Django? >> >> On Mon, Feb 18, 2019 at 11:47 PM Aakash Baranwal >> wrote: >> >>> Hello Everyone, >>> >>> I am new to Django and working towards developing a web app where 10 >>> posts appea

Re: Pagination - Not Working

2019-02-18 Thread Aakash Baranwal
gination using JavaScript or Django? > > On Mon, Feb 18, 2019 at 11:47 PM Aakash Baranwal > wrote: > >> Hello Everyone, >> >> I am new to Django and working towards developing a web app where 10 >> posts appear at a time with a "Load More" option given at

Re: Pagination - Not Working

2019-02-18 Thread Aakash Baranwal
I am trying to do it using Django. I used Django Rest Framework API Guide-Pagination for reference On Tue, Feb 19, 2019 at 11:13 AM Siddharth Tamang < tamangsiddhart...@gmail.com> wrote: > Are you trying pagination using JavaScript or Django? > > On Mon, Feb 18, 2019 at 11:47 PM