Re: NotImplementedError: This backend doesn't support absolute paths.

2020-03-03 Thread Soumen Khatua
okay..sure On Wed, Mar 4, 2020 at 11:56 AM Naveen Arora wrote: > Can you share the complete traceback of error + what are you passing and > where so that i can understand the flow. ? > > Cheers > > On Tuesday, 3 March 2020 19:15:56 UTC+5:30, Soumen Khatua wrote: >> >> after changing the path

Re: NotImplementedError: This backend doesn't support absolute paths.

2020-03-03 Thread Soumen Khatua
Could you tell me how I can save image in aws S3 bucket after resizing the image into some random pixels?? Thank you On Wed, Mar 4, 2020 at 12:11 PM Soumen Khatua wrote: > obj.save(force_insert=True, using=self.db) > TypeError: save() got an unexpected keyword argument 'force_insert' >

Re: NotImplementedError: This backend doesn't support absolute paths.

2020-03-03 Thread Soumen Khatua
obj.save(force_insert=True, using=self.db) TypeError: save() got an unexpected keyword argument 'force_insert' [04/Mar/2020 12:11:16] "POST /register/ HTTP/1.1" 500 108601 On Wed, Mar 4, 2020 at 12:00 PM Soumen Khatua wrote: > okay..sure > > On Wed, Mar 4, 2020 at 11:56 AM Naveen Arora >

Re: display data

2020-03-03 Thread Naveen Arora
So you want to display data from this model to six cards, but how..i mean each row can be said as "one data" so you want to display 6 rows of this table basically on 6 rows. Another question is how you want to filter the data, first 6 rows according to date, etc. ? if you want to display first

Re: display data

2020-03-03 Thread Perceval Maturure
Hi Naveen. Yes, that’s correct, I want to display the first 6 according to date. Each record has to be in its own cell using a bootstrap 2 row and 3 column table. Regards > On 4 Mar 2020, at 08:53, Naveen Arora wrote: > > So you want to display data from this model to six cards, but how..i

How to integrate QuillJS into Django?

2020-03-03 Thread guettli
I would like to integrate the WYSIWYG editor QuillJS into my application. First I was happy, since I found: https://github.com/muke5hy/django-quilljs But something does not work, and now I am unsure. The above github project is a fork. The project does not seem to be well maintained. Now I am

help with creating checkbox form

2020-03-03 Thread Tosin Ayoola
Good day guyz, i'm working on a project that requires user making multiple selections using checkbox after which these selected item get save to the database after click on the on submit i've research on this and can't find any help, i have it on html and javascript but i need the selected item

Re: Django - CreateView not saving form with nested formset

2020-03-03 Thread Shazia Nusrat
Hi, Tried all suggestions above and nothing worked out. To my surprise I heard Python/Django community is more robust and helping before decided to pick my dev stack. But no contribution by the community. On Sun, Feb 23, 2020 at 7:23 PM maninder singh Kumar < maninder.s.ku...@gmail.com> wrote:

Re: Stuck with Django on a Synology Diskstation

2020-03-03 Thread Omar Abou Mrad
[Alternative] While this shouldn't be considered as a way to circumvent learning how to configure apache or nginx to serve/proxy python apps, you can also consider sticking to pure python dependencies (if this is for personal use). you can ignore the webserver completely and simply opt for [1]

greeting

2020-03-03 Thread Tosin Ayoola
halo. good day to you, thank for you response to my question about checkbox with django, i could really use your help on that, that why i messaged your privately, hoping you can help out, a sample code, models, views, form will help, i will appreciate if you can help me out. thanks -- You

Re: help with creating checkbox form

2020-03-03 Thread Kasper Laudrup
Hi Tosin, On 03/03/2020 12.44, Tosin Ayoola wrote: Good day guyz, i'm working on  a project that requires user making multiple selections using checkbox after which these selected item get save to the database after click on the on submit i've research on this and can't find any help, i have

Re: Integrating Django Rest Framework with Microsoft Office 365

2020-03-03 Thread Integr@te System
Hi Nosa, Plz check this doc to set up service-to-service call and thanks to expert's doc above to perform your task. https://docs.microsoft.com/en-us/office/office-365-management-api/get-started-with-office-365-management-apis Hope it useful. On Sun, Mar 1, 2020, 19:56 Nosa Omorodion wrote:

Re: help with creating checkbox form

2020-03-03 Thread 'MH' via Django users
Dear Tosin In my html template I used {% csrf_token %} {{ form.as_p }} and in my views.py in the corresponding view I have a section where I check if the method is POST: if request.method == 'POST': Later I do this: var_list_of_checked_boxes =

Re: Integrating Django Rest Framework with Microsoft Office 365

2020-03-03 Thread Nosa Omorodion
Thank you guys. I would go through said docs and give feedback On Tue, Mar 3, 2020 at 2:37 PM Integr@te System wrote: > Hi Nosa, > > Plz check this doc to set up service-to-service call and thanks to > expert's doc above to perform your task. > > >

Re: help with creating checkbox form

2020-03-03 Thread 'MH' via Django users
Hi I got something like this to work with var_selection = forms.MultipleChoiceField(required=False, widget=forms. CheckboxSelectMultiple, choices=a_list_that_i_prepared_previously,) On Tuesday, March 3, 2020 at 12:46:10 PM UTC+1, Tosin Ayoola wrote: > > Good day guyz, > i'm working on a

Re: Stuck with Django on a Synology Diskstation

2020-03-03 Thread 'MH' via Django users
Dear nitish Thanks for your reply. I guess it is kind of a linux that Synology uses, but it is different from other distros. So many advice on the internet builds upon the ability to install packages via apt-get or ipkg, but both are not available here. Somehow (really only somehow) I got

Re: display data

2020-03-03 Thread Perceval Maturure
Hi Kushal Do you ming pointing me to some documentation to be able to do this Regards Perceval > On 1 Mar 2020, at 15:40, Kushal Neupane wrote: > > Search render tag > > On Sun, Mar 1, 2020, 19:20 Perceval Maturure > wrote: > Hi Team > is there anyone who has

Re: NotImplementedError: This backend doesn't support absolute paths.

2020-03-03 Thread Soumen Khatua
after changing the path still I'm getting the same type of error. Thank you for your response. On Tue, Mar 3, 2020 at 3:01 PM Naveen Arora wrote: > Try passing a relative path, as the error itself says, absolute path not > supported. > > Thanks > > On Tuesday, 3 March 2020 13:46:11 UTC+5:30,

Re: Stuck with Django on a Synology Diskstation

2020-03-03 Thread Andréas Kühne
Hi, I don't think this is actually possible. Django runs python and not only simple html. Nginx and apache are simple webservers. So unless you can get good access to the terminal on the diskstation - I wouldn't even try this. Why do you want to have the application running on a disk station?

Re: Stuck with Django on a Synology Diskstation

2020-03-03 Thread 'MH' via Django users
Dear Andreas I want to build a little system, which consists of several django apps that help me in my daily life. But I don't want to upload documents about insurances and stuff to any cloud. Therefore I wanted a solution on premise and the NAS seemed to be a good choice. Could be wrong about

Cumulative Sum per month

2020-03-03 Thread Mario Bisiani
Hi! I would like to know the best way to have the cumulative sum per month plottable to chartjs for example. My models.py has one field for date and one for decimal number. Thanks to you all! -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Django Platform (not just Framework)

2020-03-03 Thread guettli
Am Dienstag, 3. März 2020 10:27:50 UTC+1 schrieb Naveen Arora: > > Hi, > > What plugins you would want to install ? if you are talking about pip > packages, you can use pycharm wrapper for the same. pycharm allows to > download pip packages using GUI. > > I am able to develop with python. I

Where to source a very large data structure.

2020-03-03 Thread Tim Johnson
I am building a site that will render articles and essays. They will be arranged by topic.  An index of topics will be rendered. Once a topic is selected, a list of articles will be rendered as a secondary index. I propose to control this rendering using two data structures that will grow

Re: greeting

2020-03-03 Thread Motaz Hejaze
Please let me know exactly the problem , i dont remember the case you talking about On Tue, 3 Mar 2020, 8:47 pm Tosin Ayoola, wrote: > halo. > good day to you, thank for you response to my question about checkbox with > django, i could really use your help on that, that why i messaged your >

Re: How to create multipage forms with different models

2020-03-03 Thread victor awakan
Thanks Naveen, I have try this code but when I clicked saved, the views redirect but no post was showing in the list view. def new_rental(request, pk):rentalproperty = get_object_or_404(RentalProperty, pk=pk)user = UserModel.objects.first() if request.method == 'POST':form

Re: NotImplementedError: This backend doesn't support absolute paths.

2020-03-03 Thread Naveen Arora
Can you share the complete traceback of error + what are you passing and where so that i can understand the flow. ? Cheers On Tuesday, 3 March 2020 19:15:56 UTC+5:30, Soumen Khatua wrote: > > after changing the path still I'm getting the same type of error. > > Thank you for your response. > >

Re: How to create multipage forms with different models

2020-03-03 Thread Naveen Arora
Each form field has an id to be identified at back end. So just select the relevant field create a model object using the same and save it. Similarly do for the other. You can try for once share the code here if you are unsuccessfull, i will help you with the code part then. Cheers On

Re: Django Platform (not just Framework)

2020-03-03 Thread guettli
By chance I found wagtail. This django project looks like I was searching: It is almost out of the box end user usable and it gives me all the flexibility of django. Cool, but this is just my first impression, I only played a bit with it. Am Dienstag, 3. März 2020 10:27:50 UTC+1 schrieb Naveen

Re: How to create multipage forms with different models

2020-03-03 Thread Suraj Thapa FC
There can be only one view for one page You have to implement both in same view On Tue, 3 Mar 2020, 2:58 pm victor awakan, wrote: > What I meant was I want one form to be saved in one model and the second > form to be saved in another model. I did that using form-tools but I want > to learn

Re: How to create multipage forms with different models

2020-03-03 Thread victor awakan
@suraj Could you show by example? I have tried one way which I posted the dpaste link with my first post but it doesn’t work. I.e when I clicked submit I don’t get any new post in the template. Thanks On Tue 3. Mar 2020 at 11.44, Suraj Thapa FC wrote: > There can be only one view for one

NotImplementedError: This backend doesn't support absolute paths.

2020-03-03 Thread Soumen Khatua
Hi Folks, I'm using AWS S3 Bucket to store media folder(images) but I want to resize each every image in 300*300. So, I'm overriding the save method inside django model class. But I'm getting one error caled: * NotImplementedError: This backend doesn't support absolute paths.* *My django

Re: display data

2020-03-03 Thread Naveen Arora
Hi, Can you explain what you are trying to achieve clearly.? Regards Naveen Arora On Sunday, 1 March 2020 19:06:02 UTC+5:30, Perceval Maturure wrote: > > Hi Team > is there anyone who has tried to display data from a table to six > different cards, when another record is added the first

Re: The field admin.LogEntry.user was declared with a lazy reference to 'account.user', but app 'account' doesn't provide model 'user'

2020-03-03 Thread Naveen Arora
If you are interfering with USER model, note that you have to change the deafult model to first migration only. Solution - Delete the migrations folder, run makemigrations and migrate again. Also, if you are overriding any model, must define it in settings.py. Regards Naveen Arora On Monday, 2

Re: Django Platform (not just Framework)

2020-03-03 Thread Naveen Arora
Hi, What plugins you would want to install ? if you are talking about pip packages, you can use pycharm wrapper for the same. pycharm allows to download pip packages using GUI. Cheers Naveen Arora On Monday, 2 March 2020 21:24:32 UTC+5:30, guettli wrote: > > I know the terms "Platform" and

Re: How to create multipage forms with different models

2020-03-03 Thread victor awakan
What I meant was I want one form to be saved in one model and the second form to be saved in another model. I did that using form-tools but I want to learn how to do it using function based views. Thanks. On Tuesday, March 3, 2020 at 11:19:40 AM UTC+2, Naveen Arora wrote: > > Hi, >  > What

Re: Error while adding entries through django admin

2020-03-03 Thread Naveen Arora
Hi, First, it would be easy t debug if you share entire traceback + one solution would be to run makemigrations and migrations again :) Did you override any default template from the codebase ? Regards Naveen Arora On Monday, 2 March 2020 16:34:03 UTC+5:30, Santhosh sridhar wrote: > > Hi, > I

Re: new to django

2020-03-03 Thread Naveen Arora
Hi, Have a look at my tutorials :) https://www.geeksforgeeks.org/django-tutorial/ Cheers, Naveen Arora On Sunday, 1 March 2020 23:34:45 UTC+5:30, Gurjot Kawatra wrote: > > hello everyone ...if anybody could help me out > my django server is started and i'm able to see congratulation

Re: How to create multipage forms with different models

2020-03-03 Thread Naveen Arora
Hi,  What problem you are facing ? A form can be sent to any template using its object and context dictionary. "Split the form to separate templates" ? This seems unusual, create different forms if you want to use more templates. Cheers :) Naveen Arora  On Monday, 2 March 2020 18:08:44

Re: AttributeError: 'NoneType' object has no attribute 'app_name'

2020-03-03 Thread Naveen Arora
Hi, Can't the error be resolved ? Still, if error has to occur then you can put conditions instead of try blocks for better functioning. Regards Naveen Arora On Monday, 2 March 2020 18:25:15 UTC+5:30, Sencer Hamarat wrote: > > Hello, > > The project I'm working on has it's custom template

Re: NotImplementedError: This backend doesn't support absolute paths.

2020-03-03 Thread Naveen Arora
Try passing a relative path, as the error itself says, absolute path not supported. Thanks On Tuesday, 3 March 2020 13:46:11 UTC+5:30, Soumen Khatua wrote: > > Hi Folks, > > I'm using AWS S3 Bucket to store media folder(images) but I want to resize > each every image in 300*300. So, I'm