getting error while deploying zappa with aws

2021-12-13 Thread Paras Jain
botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the CreateFunction operation: Lambda was unable to encrypt your environment variables because the KMS access was denied. Please check your KMS permissions

Re: Intern

2019-12-24 Thread Paras Jain
Hi, i am interested for internship Thanks paras On Tue, Dec 24, 2019 at 8:12 PM Dvs Khamele wrote: > Hi, all Each year, > We at Pythonmate provides 3 months - 6-month internships starting January. > It works as in office as well as remote. > Reply to me for more details. > Thanks > > On Tue, 24

[no subject]

2019-11-24 Thread Paras Jain
its showing error like this: TypeError at /edit_profile/ edit_profile() missing 1 required positional argument: 'pk' views.py: def edit_profile(request, pk): post = get_object_or_404(User, pk=pk) if request.method == "POST": form = EditProfileForm(request.POST, instance=post)

Re: Help

2019-11-24 Thread Paras Jain
remove from .cleaned data part On Sun, Nov 24, 2019 at 8:03 PM Tosin Ayoola wrote: > Halo guyz, working on a school management system, and I created a view > that filter & display the assignment given to a particular class, but > instead I'm getting a "assignment_form has no attributes cleane

Re:

2019-11-23 Thread Paras Jain
bro dont say this i tried to read but i was unable to understand built in function django and this is part of my project its different On Sat, Nov 23, 2019 at 10:24 PM Kasper Laudrup wrote: > Hi Raja, > > On 23/11/2019 17.26, Raja Sekar Sambath wrote: > > Hi, > > request object will have the use

[no subject]

2019-11-23 Thread Paras Jain
i want my 'user_id' to be passed from detail function to edit profile function but how?? need help def detail(request,user_id): details = get_object_or_404(User, pk=user_id) return render(request, 'company/detail.html',{'details':details}) def edit_profile(request): return render(re

[no subject]

2019-11-21 Thread Paras Jain
i am not rendring to detail page views.py: def detail(request): #print('hobbies : ', user.hobbies) return render(request, 'company/detail.html',{'details':request.user}) def login(request): if request.method == 'POST': email = request.POST['email'] password = request.P

Re:

2019-11-21 Thread Paras Jain
ath('', views.home, name='company-home'), path('register/', views.register, name='company-register'), path('detail/', views.detail, name='company-detail'), path('login/', views.login, name='c

Re:

2019-11-20 Thread Paras Jain
i need the code i am not able to understand by reading documenetation On Thu, Nov 21, 2019 at 1:34 AM Kasper Laudrup wrote: > Hi Paras, > > I hope I'm mistaken but these lines: > > On 20/11/2019 18.52, Paras Jain wrote: > > user = Us

Re:

2019-11-20 Thread Paras Jain
but i have passed two argument in login function its showing error if user.type == 'Normal': print('hobbies : ', user.hobbies) return detail(request, user) def detail(request): print('hobbies : ', user.hobbies) return render(request, 'company/detail.html',

[no subject]

2019-11-20 Thread Paras Jain
my render function its not working in detail function its not rendering to detail.html.please help any one views.py: def detail(request,user): print('hobbies : ', user.hobbies) return render(request, 'company/detail.html',{'details':user}) def login(request): if request.method == 'POS

Re:

2019-11-20 Thread Paras Jain
path('detail/', views.detail, name='company-detail'), path('login/', views.login, name='company-login'), path('add/', views.add, name='company-add'), On Wed, Nov 20, 2019 at 9:07 PM Bob Gailer wrote: > On

[no subject]

2019-11-20 Thread Paras Jain
how to take pass one object of one function to other in django -- 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

Re: How to change how foreign keys are view in admin site

2019-11-15 Thread Paras Jain
after that model write like this def __str__(self): return self.title On Fri, Nov 15, 2019 at 6:18 PM Usman Hassan wrote: > I have a problem with my django app, I created a an that has two models > one which is post and the other is comment, and the comment has a foreign > key relationship

[no subject]

2019-11-15 Thread Paras Jain
i am not able to send email showing odd type of error need help views.py: from django.shortcuts import render, redirect from django.contrib import messages from profilestorer.settings import EMAIL_HOST_USER from django.conf import settings from .forms import SignUpForm from django.core.mail import

[no subject]

2019-11-14 Thread Paras Jain
i m using only email for sign up and sending the random password on the mail which will be used for login Now I want login to be done using register email and password send to mail I m stuck here that I m generating random password but how I will save as password and email in my 'views.Py ' fil

[no subject]

2019-11-13 Thread Paras Jain
now i want to generate random password and send it to mail instead of simple message views.py: from django.shortcuts import render from profilestorer.settings import EMAIL_HOST_USER from . import forms from django.core.mail import send_mail # Create your views here. def login(request): form

Re:

2019-11-13 Thread Paras Jain
Nitin Kalmaste, > wrote: > >> if your migrations are successful run queries through manage.py shell >> There is existing User model inside django.contrb.auth.User >> >> On Wed, Nov 13, 2019 at 3:49 PM Paras Jain >> wrote: >> >>> i have just crea

[no subject]

2019-11-13 Thread Paras Jain
i have just created a model which will have login information in database but it is not showing its appearance i have also done migration models.py: from django.db import models # Create your models here. class User(models.Model): email = models.EmailField() password = models.CharField(m

[no subject]

2019-11-11 Thread Paras Jain
how send email in django for password reset -- 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

Re:

2019-11-08 Thread Paras Jain
instead of form = >> CompanyForm(request.POST), make it PersonForm(request.POST). >> >> On Fri, 8 Nov 2019, 4:26 pm Paras Jain, wrote: >> >>> Hy, i am not getting my all fields on the my page which is written >>> inside the forms.py of 'Pe

[no subject]

2019-11-08 Thread Paras Jain
Hy, i am not getting my all fields on the my page which is written inside the forms.py of 'PersonForm' models.py: from django.db import models # Create your models here. TITLE_CHOICES = ( ('Normal', 'Manager'), ) class Company(models.Model): email = models.EmailField() def __str__(

Re:

2019-11-07 Thread Paras Jain
i registered also not getting it On Thu, Nov 7, 2019 at 8:29 PM himanshu chouhan wrote: > you need to register ur model as well. > > On Thu, 7 Nov, 2019, 8:27 PM Paras Jain, wrote: > >> this is my models.py file i created and migrated but model in not created >> in m

[no subject]

2019-11-07 Thread Paras Jain
this is my models.py file i created and migrated but model in not created in my admin page as database please somebody help from django.db import models # Create your models here. class Company(models.Model): email = models.EmailField() def __init__(): return self.email -- You

Re:

2019-11-05 Thread Paras Jain
bro i was asking the code how to use it to send , email and password to particular email On Tue, Nov 5, 2019 at 6:30 PM Suraj Thapa FC wrote: > Send it then > > On Tue, 5 Nov 2019, 5:38 pm Paras Jain, wrote: > >> on hitting submit i have to send email and password to user

[no subject]

2019-11-05 Thread Paras Jain
on hitting submit i have to send email and password to user email id which will be used for login in django -- 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 djang

[no subject]

2019-11-04 Thread Paras Jain
please somebody tell me what steps should i follow please need help Create a Django Web App called “Profile Storer” where a company can sign up using Email. Once signed up, he can add more people to his team. Every team member can be either “Normal” type or “Manager” type. When you add a team me

Re: Djangorest framework tutorial

2019-11-04 Thread Paras Jain
Hi, just follow this video u will easily know how to make api very easily link - https://www.youtube.com/watch?v=263xt_4mBNc Thnks On Mon, Nov 4, 2019 at 6:17 PM Laura Pérez wrote: > Hi! > I have the task to develop a rest api in python, Can anybody advice me on > a nice tutorial to use djangor

Re:

2019-11-01 Thread Paras Jain
Hi, i am given this task can somebody tell what i have to do in this The Task: Create a basic rest API that can perform CRUD operations on Users and their Blog with the following features/constraints. ❏ Use persistent model on database of your choice ❏ Only the creator of the blog should be ab