Re: Django Session KeyError

2020-02-25 Thread Naveen Arora
Hi, please post the output of debugging the above, print after and before in these views and also check is something else is working using request.session. @csrf_exempt def upload_local_dataset(request): if request.method == 'POST': dataset =

Re: 'ssl_disabled' is an invalid keyword argument for connect()

2020-02-25 Thread Naveen Arora
Hi sir, Kindly use this as below, 'OPTIONS': { 'ssl' : { 'ssl_disabled': True } } Cheers, Naveen Arora On Wednesday, 26 February 2020 04:25:29 UTC+5:30, Stephen Loughin wrote: > > The django doc > <https://docs.djangoprojec

Re: allauth- signup redirect

2020-02-25 Thread Naveen Arora
will redirect to a specific page, even if you pass a next argument in the URL: Cheers, Naveen Arora On Tuesday, 25 February 2020 23:58:02 UTC+5:30, Tosin Ayoola wrote: > > halo guy, i'm using allauth for my authentication, but i wan redirect the > signup user to a page where they g

Re: From and Template in Django

2020-02-25 Thread Naveen Arora
Hi ben, You can use the same form any number of times passing it through views. Also, you can create a form.html which you can include anywhere for HTML forms using include tag. Cheers Naveen Arora On Wednesday, 26 February 2020 04:25:29 UTC+5:30, ben aziz zizah wrote: > > Is that po

Re: Django Session KeyError

2020-02-26 Thread Naveen Arora
thing check if cookies are not disabled for localhost Also , are you logged in ? Try after logging in as superuser. Cheers, Naveen Arora On Wednesday, 26 February 2020 14:26:22 UTC+5:30, Guy NANA wrote: > > Hi! Please find bellow the outputs. When I was using sessions stored in > cache (

Re: Admin login problem

2020-02-26 Thread Naveen Arora
Hi soumen, Are you overriding default user model, if yes check user.is_admin=True. or else, Please post the exact error Cheers Naveen Arora On Wednesday, 26 February 2020 17:43:51 UTC+5:30, Soumen Khatua wrote: > > Hi Folks, > after creating superuser by using this command python

Re: logged in and got logout immediately upon reload the page

2020-02-26 Thread Naveen Arora
Hi Roy, Share the exact problem with screenshots and code if possible. Did you set default authentication model of user to yours..? Cheers, Naveen Arora On Wednesday, 26 February 2020 18:00:10 UTC+5:30, Roy Huang wrote: > > Hi all, > > any help will be appreciated, i'

Re: consume Google API through REST API

2020-02-26 Thread Naveen Arora
anytime. Cheers, Naveen Arora On Wednesday, 26 February 2020 18:00:09 UTC+5:30, New Django user wrote: > > I am new to Django and building a simple webpage where the user can upload > a file and then that file will be processed using Google API. I am done > with creating a use

Re: Admin login problem

2020-02-26 Thread Naveen Arora
:57:19 UTC+5:30, Soumen Khatua wrote: > > Yes I'm using custom user model and I already added user.is_admin=True. > But still I'm getting the same error. > I attached the code snippet as well as error message also. > > > > On Wed 26 Feb, 2020, 5:47 PM Naveen Arora,

Re: production setup

2020-02-28 Thread Naveen Arora
Try implementing it for once. If you face any problem, you can post in this community Regards -- 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

production setup

2020-02-28 Thread Naveen Arora
Hi have a look at this - https://github.com/codingforentrepreneurs/Guides/blob/master/all/Heroku_Django_Deployment_Guide.md Cheers -- 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

Re: Api

2020-02-29 Thread Naveen Arora
> > class CartListSerializer(serializers.ModelSerializer): > class Meta: > model = CartList > fields = ('product', 'quantity') > > > On Fri, Feb 28, 2020 at 1:28 PM Naveen Arora > wrote: > >> Create an API which returns count, then

Re: Serializing forms and formsets to pass to Celery task

2020-02-29 Thread Naveen Arora
Yes that would work well. You can always find a completely different way of achieving what you are trying to achieve. On Saturday, 29 February 2020 18:52:24 UTC+5:30, Jason wrote: > > As said before, you really can't do that too well with celery. Its a good > practice to keep the message body

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-29 Thread Naveen Arora
. Regards Naveen Arora On Friday, 28 February 2020 18:33:20 UTC+5:30, Ol P wrote: > > What are you trying to achieve with this implementation? > > I want to achieve modularly and loose coupling. Separate responsibility in > other words. > > and What do you call a extended model ? >

Re: Issue in the API while merging the two data frames

2020-02-29 Thread Naveen Arora
Hi Devendra , Can you share the code with the exact error you are facing.? Cheers, Naveen Arora On Saturday, 29 February 2020 04:35:02 UTC+5:30, Devendra reddy wrote: > > Hi to all, > > I have two data frames in the python django API.one dataframe we are > getting from the que

Re: display data

2020-03-03 Thread Naveen Arora
> past then the record is removed from the list. I tried to use indexes but > it dint work as epxected > Any ideas would be awesome to share > > On 3 Mar 2020, at 11:13, Naveen Arora > > wrote: > > Hi, > > Can you explain what you are trying to achieve clearly.? &

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

2020-03-03 Thread Naveen Arora
our 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, Soumen Khatua wrote: &

Re: How to create multipage forms with different models

2020-03-03 Thread Naveen Arora
day, March 3, 2020 at 11:19:40 AM UTC+2, Naveen Arora wrote: >> >> 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 unusu

Re: logged in and got logout immediately upon reload the page

2020-02-26 Thread Naveen Arora
All you need to do is set AUTH_USER_MODEL = "Yourapp.yourmodelname" in your setttings.py, delete your entire database and run makemigrations and migrate again. Django sets the default user model at first migration only. Hope this helps, you can ask here for your queries. Cheers, Na

Re: Django Session KeyError

2020-02-26 Thread Naveen Arora
- https://www.geeksforgeeks.org/python-sessions-framework-using-django/ https://stackoverflow.com/questions/2293291/create-a-session-in-django https://docs.djangoproject.com/en/3.0/topics/http/sessions/ If it still doesn't work after trying kindly share the github code. Peace Naveen Arora

Re: relation "django_session" does not exist

2020-02-26 Thread Naveen Arora
Run migrations all over the app again. Plus run -python manage.py syncdb On Thursday, 27 February 2020 06:39:31 UTC+5:30, Hella Nick wrote: > > Me to,My error was is > Traceback (most recent call last): > File > "D:\Python3\lib\site-packages\django\contrib\sessions\backends\base.py", > line

Re: Unidirectional association

2020-02-26 Thread Naveen Arora
Hi Manos, Kindly explain the scenario appropriately, What exactly are you trying to achieve? Also read - https://docs.djangoproject.com/en/3.0/topics/db/examples/many_to_many/ Cheers, Naveen Arora On Wednesday, 26 February 2020 20:05:00 UTC+5:30, Manos Zeakis wrote: > > Hi all >

Re: How to trigger system check while running development server?

2020-02-28 Thread Naveen Arora
can you explain more with some code, the exact question .? Cheers, Naveen Arora On Thursday, 27 February 2020 20:01:00 UTC+5:30, One Above All wrote: > > I am updating a settings in my test which should raise exception on > illegal entries, but merely updating settings does not ma

Re: Login in a system

2020-02-28 Thread Naveen Arora
Hi Kushal, Explain the problem clearly Thanks On Friday, 28 February 2020 16:04:53 UTC+5:30, Kushal Neupane wrote: > > How to make five post officer in an office and authonticate? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Make a cashier login in a system.

2020-02-28 Thread Naveen Arora
Hi, Check this out - https://docs.djangoproject.com/en/3.0/topics/auth/ Cheers On Friday, 28 February 2020 16:04:53 UTC+5:30, Kushal Neupane wrote: > > > *I made a Cashier model and added some values from the admin. Now, i need > an idea to login the system from the Cashier model. I am

Re: logged in and got logout immediately upon reload the page

2020-02-28 Thread Naveen Arora
cool :) Cheers, Naveen Arora On Thursday, 27 February 2020 12:06:37 UTC+5:30, Roy Huang wrote: > > Hi Naveen, > > thank you once again for the help > > after days of struggling, finally i've got enlightened all of a sudden ! > > to put it in simple way, > > we hav

Re: How to do validation on a form which is opened by clicking a button

2020-02-28 Thread Naveen Arora
Use this as below in your view - context["form"] = YourForm(request.POST or None) and just a method if form.is_valid(), there is no need for the else part. On Friday, 28 February 2020 02:41:04 UTC+5:30, Sunil BK wrote: > > Hello community > > I am trying to build a simple form which can be

Re: Image Upload

2020-02-28 Thread Naveen Arora
Hi, Have a look herer - https://www.techiediaries.com/django-rest-image-file-upload-tutorial/ and https://stackoverflow.com/questions/20473572/django-rest-framework-file-upload Cheers On Friday, 28 February 2020 17:05:28 UTC+5:30, Soumen Khatua wrote: > > Hi Folks, > > I'm using DRF APIView

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-28 Thread Naveen Arora
Clearly Possible, Simply import the model first using appname.models. Hope it helps:) You can use this as from appA import model1 in app2 On Thursday, 27 February 2020 22:04:12 UTC+5:30, Ol P wrote: > > Imagen we have *app-A* and *app-B* with *model-A* and *model-B* > accordingly. > And we want

Re: Api

2020-02-28 Thread Naveen Arora
Create an API which returns count, then use javascript to update the front end part. On Friday, 28 February 2020 12:50:39 UTC+5:30, Tosin Ayoola wrote: > > Good morning guyz, > I need help on this one, it on writing api that will Shows the product > count for each manufacturer as users add

Re: Project directory management

2020-02-28 Thread Naveen Arora
Hi, from .. import abc is not working ? or somewhat like that. At last sys.path.append() is one of the solutions. Cheers, Naveen Arora On Friday, 28 February 2020 16:38:15 UTC+5:30, Devender Kumar wrote: > > Hi, > BTW it is flask app question. > > dir structure > serv

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-28 Thread Naveen Arora
fields to it? > > Where to put what: > from appA import model1 > > > class ExtendedModel1(?): > ? > > new_field = models.CharFiled() > > class Meta: >? > > > On Friday, February 28, 2020 at 2:23:17 PM UTC+2, Naveen Arora wrote: >> >

Re: production setup

2020-02-28 Thread Naveen Arora
Hi Soumen, https://docs.djangoproject.com/en/3.0/howto/static-files/deployment/ https://docs.djangoproject.com/en/3.0/howto/static-files/ Have a look here. Hope it helps :) Cheers On Thursday, 27 February 2020 16:48:46 UTC+5:30, Soumen Khatua wrote: > > Hi Folks, > > I'm storing users images

Re: Unidirectional association

2020-02-28 Thread Naveen Arora
What I did was > > 1. Declared three different ForeignKeys from class A to B > 2. Chose PROTECT instead of CASCADE for on_delete > 3. Let blank/null True > 4. Of course chose three different related_names > > > On Thursday, 27 February 2020 07:55:52 UTC+2, Naveen Aror

Re: Serializing forms and formsets to pass to Celery task

2020-02-28 Thread Naveen Arora
Hi Bernd, You can't serialize a form data object this way. All the solution i can see is to save data temporarily and use it. Cheers, On Friday, 28 February 2020 14:58:50 UTC+5:30, Bernd Wechner wrote: > > I'm using Celery quite effectively with Django as many are. It's just > awesome for

Re: django context data into javascript

2020-02-25 Thread Naveen Arora
Hi, this is simple just enclose {{name}} into " " as "{{name}}" for your part. Thanks On Tuesday, 25 February 2020 15:56:05 UTC+5:30, Soumen Khatua wrote: > > Hi Folks, > > I'm sending some context data into html like > name = 'soumen' > return render(request,'xyz.html', context =

Re: reg: Error:-django.db.utils.OperationalError: (1170, "BLOB/TEXT column 'Description' used in key specification without a key length")

2020-02-25 Thread Naveen Arora
This can be resolved using max_length attribute. If it doesn't work try deleting the migration files and doing makemigrations and migrate again. On Monday, 24 February 2020 20:14:25 UTC+5:30, Amitesh Sahay wrote: > > Hi, > > I am creating a model, which is taking a description as text field.

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 add

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 &qu

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: > > H

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 congr

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 202

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 cus

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

Re: unable to read POST parameters sent by payment gateway

2020-03-12 Thread Naveen Arora
There is something wrong with URL, you are pushing, try using some other url, append slash, etc. That may help you :) Cheers On Tuesday, 10 March 2020 01:53:24 UTC+5:30, Sreekanth wrote: > > I am unable to read POST parameters sent by payment gateway after payment > was processed. Payment

Re: Mentor needed

2020-03-12 Thread Naveen Arora
Well, me too :) On Wednesday, 11 March 2020 15:39:20 UTC+5:30, ola neat wrote: > > Hey guyz I'm applying for GSOC {django} & i pretty much need help > (mentors), > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Cant collecstatic with STATICFILES_FINDERS

2020-03-12 Thread Naveen Arora
did you run collectstatic command ? On Wednesday, 11 March 2020 19:24:07 UTC+5:30, Florent Vandroy wrote: > > Hi all. I dont understand why. But I Have to remove my STATICFILES_FINDERS > line from my settings before collecstatic or its notre working. > > STATICFILES_FINDERS = [ >

Re: HELP ME

2020-03-12 Thread Naveen Arora
Hi, This might help you - Django Tutorials Cheers On Tuesday, 10 March 2020 20:05:06 UTC+5:30, LGBS fine soul coders wrote: > > hello am lugano mwakapuku from tanzania i'm a bigginer in django please i > need your help guy > > -- You

Re: example django rest swagger app done beautifly

2020-03-12 Thread Naveen Arora
Noiceee ..!! On Wednesday, 11 March 2020 05:46:29 UTC+5:30, Jan Filips wrote: > > https://github.com/janfilips/django-rest-beautifly > > pls star if you like! :) > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: How to resolve account access permission on SendGrid.

2020-03-12 Thread Naveen Arora
wrong portal to ask this question :) On Wednesday, 11 March 2020 00:09:31 UTC+5:30, avinash prajapati wrote: > > I am recently created an account on SendGrid but after first login it is > showing > error that accounts access permission is not authonaticate. > Help to resolve this issue.. > --

Re: PostgreSQL data transfering

2020-03-12 Thread Naveen Arora
Please be more specific about your question. As far i could understand by now, you need to check how your models are related and then you can easily normalize them into as many models as possible. Cheers On Wednesday, 11 March 2020 15:29:32 UTC+5:30, Eldar Yerzhanov wrote: > > Hello, I have

Re: { "non_field_errors": [ "No data provided" ] } error during a post method.

2020-03-12 Thread Naveen Arora
Hi try debugging it by printing data, where this error is occuring and then you will be able to correct it. Cheers On Saturday, 11 May 2019 18:05:24 UTC+5:30, Arun Kumar Singamasetty wrote: > > > ##from file serilaizers.py### > > > from rest_framework import serializers > from

Re: how i can dynamically select page orproduct on form django

2020-03-12 Thread Naveen Arora
Hi, Can you be more specific about what you want to achieve, you want to save form with foreign key value ? Are you taking input for foreign key id or something ? Cheers On Thursday, 12 March 2020 03:24:07 UTC+5:30, abderrahim ariche wrote: > > > > hello i guys i want save form with

Re: Django s3 video files displaying to templates

2020-03-12 Thread Naveen Arora
Hi irfan, you can have a look here - https://github.com/codingforentrepreneurs/Guides/blob/master/all/Heroku_Django_Deployment_Guide.md#setup-static-files On Thursday, 12 March 2020 10:58:05 UTC+5:30, Irfan Khan wrote: > > Hi all, > > Can any one guide me how to display uploaded video files in