Categories
Development

500 internal server error when changing the db from sqlite to postgres with django and nginx

I am wondering about some things, i followed this tutorials setting up server I am currently using django 2.2, psycopg2 2.8.3, uwsgi 2.0.18. I am able to migrate models to db but the nginx server failed to communicate with it. I added local host with port 5432 to cors header. does this a permission issue, […]

Categories
Development

Addition of Even Fibonacci Numbers

I’m trying to solve the 2nd problem on Project Euler where I have to print the sum of all even Fibonacci numbers under 4 million. I’m using the following code but the program is not returning any value. When I replace 4000000 by something small like 10, I get the sum. Does that mean my […]

Categories
Development

How to make array in state and processing to handleFormChange

im newbie in react native, i just implementation react js to native to make handleformchange but i got the error like this “cannot ready propery name of undefined” . i dont know what to do. this is for react native, running in android and node constructor(props) { super(props) this.state = { post : [], formData […]

Categories
Development

How do I send a value of a variable from view to form in django?

I want a customized dropdown list as a choice field for a variable. This list depends on another variable in form How can I send a variable value to the variable in forms views.py somelist= [‘blah’,’blah1′] class HomeView(TemplateView): template_name=’charts.html’ def get(self, request): form = HomeForm() return render(request, self.template_name, {‘form’:form}) def post(self,request): form=HomeForm(request.POST) if form.is_valid(): text_11 […]

Categories
Development

How can I implement searchview in fragment with tablayout and viewpager?

I have a mainactivity with bottomNavigation view. Search is one of the option accessed from bottom navigation view. Search is the fragment in main activity. I want to implement searchview in toolbar in this fragment with 4 tabs of tablayout. Search icon is visible and accessed,but the problem is: filter() method returns the correct solution […]

Categories
Development

How to configure Firebase with my ionic app for push notification

I am using ionic framework3 and whats to configure firebase push notification and analitics

Categories
Ask

[ Password and Sign In ] Open Question : What is the server name of my account?

Categories
Ask Gender Studies

[ Gender Studies ] Open Question : Do women ever get angry at upset that they were born, without a choice of their own, into the gender that is physically and mentally weaker?

physically weaker goes without saying mentally weaker as well as since women cannot handle stress and rigor as much as men

Categories
Ask Polls & Surveys

[ Polls & Surveys ] Open Question : Do you find that lot of Mexican females have whiny voices?

Categories
Ask

[ Vegetarian & Vegan ] Open Question : Why do people say me and Ana are the same person?

We are two separate people. Its possible to have friends you know? Most of you probably dont understand that considering you’re lonely wastes of oxygen.