Re: Which Cloud Service Provider should be chosen to host Django Application

2019-05-03 Thread Balaji Shetty
Dear Lucas G. Navarro Thank You very much. On Thu, May 2, 2019 at 11:02 PM Lucas G. Navarro wrote: > webfaction is good too! > > Regards! > > El jue., 2 may. 2019 a las 12:40, escribió: > >> This seems related to my question on how to do Blue/Green deployments. >>

Re: architecture for Blue/Green deployments

2019-05-03 Thread Shaheed Haque
I should clarify one thing... On Thu, 2 May 2019 at 20:28, Shaheed Haque wrote: > On Thu, 2 May 2019 at 19:37, wrote: > >> What gold! >> >> The essential piece of your logic is here: >> >>> Enforce a development process that ensures that (roughly speaking) all >>> database changes result in a n

Re: Website slowed down drasticaly

2019-05-03 Thread Chetan Ganji
Hi Saurabh, You are welcome :) No 1 will give you insights about which endpoints are taking the most time to load. Then, you can drill down the specific endpoints for bottlenecks. Two more things you could try. 1. Remove unused/unnecessary middlewares from the middlewares list in the settings.p

Re: Website slowed down drasticaly

2019-05-03 Thread Chetan Ganji
One more thing - All the third party resources i.e. js and css files e.g. bootstrap, jquery, etc; don't fetch them from your server. Use CDN for those. This will help the load times a lot. Regards, Chetan Ganji +91-900-483-4183 ganji.che...@gmail.com http://ryucoder.in On Fri, May 3, 2019 at

Re: Website slowed down drasticaly

2019-05-03 Thread Nick Sarbicki
Saurabh what do you use for the WSGI HTTP Server (gunicorn etc.)? Worth checking that as well to make sure it has enough workers. In general performance problems are rarely version related. Usually it's either a bad setup or inefficient code. Django toolbar and most of the other suggestions will

Re: Website slowed down drasticaly

2019-05-03 Thread Saurabh Adhikary
Hi Nick, We are using uwsgi . Uwsgi is installed via pip. Bad setup : is my area of interest as in some senior professionals can highlight the probable area of mistakes while shifting website from one server to another (literal hardware shift). Although we have some good people around, but ther

Re: Website slowed down drasticaly

2019-05-03 Thread opistola
my thoughts... check dns resolution time On Fri, May 3, 2019 at 12:15 PM Saurabh Adhikary wrote: > Hi Nick, > > We are using uwsgi . Uwsgi is installed via pip. > Bad setup : > is my area of interest as in some senior professionals can highlight the > probable area of mistakes while shifting web

Re: Reverse not found problem

2019-05-03 Thread Andréas Kühne
This doesn't make sense at all - if you want a variable in the static call you need to do something like this: {% with 'icons/'|add:newspaper|add:'.png' as image_static %} {% static image_static %}{% endwith %} The reason for not just adding it to the end is because you could have md5 hashes in

super user login

2019-05-03 Thread Shubham Joshi
I have created the custom user model in Django and created a superuser , in admin panel its not logging in although the right cred is given https://github.com/shubham1507/school -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

How to pass context value from views.py to getElementById in JavaScript?

2019-05-03 Thread Mayur Bagul
Hello community, I have stored single value from database inside a variable which is playing role of context inside views.py function. Now I want to use this context(which holds single value) in JavaScript to change specific HTML content of template which will give me desired webpage. I Search

Re: How to pass context value from views.py to getElementById in JavaScript?

2019-05-03 Thread sachinbg sachin
Pass the id in context in Django by default every object has Id On Fri, May 3, 2019, 5:42 PM Mayur Bagul Hello community, > > I have stored single value from database inside a variable which is > playing role of context inside views.py function. > > Now I want to use this context(which holds sing

Re: How to pass context value from views.py to getElementById in JavaScript?

2019-05-03 Thread Ravi Kumar
Try to use ajax On Fri 3 May, 2019 5:42 pm Mayur Bagul Hello community, > > I have stored single value from database inside a variable which is > playing role of context inside views.py function. > > Now I want to use this context(which holds single value) in JavaScript to > change specific HTML

Re: help with URLS.PY

2019-05-03 Thread Rob W
It does not, I changed the name, stil the same error > On May 2, 2019, at 8:23 PM, Abishek Goda wrote: > > > Hi, > >> >> As I said, the dashboard.html works, i just want another menu option to load >> the other html file. i have commented this out as it causes my app to break. > So the iss

Re: How to pass context value from views.py to getElementById in JavaScript?

2019-05-03 Thread Mayur Bagul
I don't want to anything in context because I already passing value of database inside it. What I want that how I can pass that context to JavaScript getElementById().innerHTML='context' Like this -- You received this message because you are subscribed to the Google Groups "Django users" g

Re: How to pass context value from views.py to getElementById in JavaScript?

2019-05-03 Thread sachinbg sachin
If u want to use that context in html means for I context ,I.user name,i.products like that u can use On Fri, May 3, 2019, 8:09 PM sachinbg sachin In JavaScript I don't know buddy > > On Fri, May 3, 2019, 6:33 PM Ravi Kumar >> Try to use ajax >> >> On Fri 3 May, 2019 5:42 pm Mayur Bagul > >>> He

Re: How to pass context value from views.py to getElementById in JavaScript?

2019-05-03 Thread sachinbg sachin
In JavaScript I don't know buddy On Fri, May 3, 2019, 6:33 PM Ravi Kumar Try to use ajax > > On Fri 3 May, 2019 5:42 pm Mayur Bagul >> Hello community, >> >> I have stored single value from database inside a variable which is >> playing role of context inside views.py function. >> >> Now I want

Need Help in choosing Proper Technoloy for Multiuser management System

2019-05-03 Thread Balaji Shetty
Hi *I have the requirement to create multi-user management system with ACL support* We have organization having different Section with respective Section Head as User. Each Section have multiple sub section with respective User. *Root User get random Records initially.* *Root user will chang

Daphne error log

2019-05-03 Thread BR
Is there an error log for the project Daphne is serving? I see the access log is on the console, but only errors from Daphne itself seem to output here. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop re

Re: How to pass context value from views.py to getElementById in JavaScript?

2019-05-03 Thread John Bagiliko
Dump this result into json and render it on a page. Use AJAX to get this json data in JavaScript. On Fri, May 3, 2019, 2:41 PM sachinbg sachin wrote: > If u want to use that context in html means for I context ,I.user > name,i.products like that u can use > > On Fri, May 3, 2019, 8:09 PM sachinb

Re: How to pass context value from views.py to getElementById in JavaScript?

2019-05-03 Thread John Bagiliko
import serializers from django.core You can simply use the serializers.serialize method to do this. No need to use Restframework. On Fri, May 3, 2019, 3:25 PM John Bagiliko wrote: > Dump this result into json and render it on a page. Use AJAX to get this > json data in JavaScript. > > On Fri, Ma

Re: How to pass context value from views.py to getElementById in JavaScript?

2019-05-03 Thread Gurmeet Kaur
I have done this in my project. We converted the object ( or context object) that you want to pass in list object in python function and then casted it with Json response object. Something like below: myqueryset_new = list(myqueryset1) finalmyqueryset = JsonResponse(myqueryset_new, safe=Fals

How to use django and image to refer to specific records in a model.

2019-05-03 Thread Nader Elsisi
Examples Reserve seats in a plane or movie. Manage land lots On Fri, May 3, 2019, 8:12 AM Mayur Bagul wrote: > Hello community, > > I have stored single value from database inside a variable which is > playing role of context inside views.py function. > > Now I want to use this context(which ho

Re: Website slowed down drasticaly

2019-05-03 Thread Scott Miesbauer
I apologize if I missed it but did someone find out what started happening in Feb that might have some impact on the performance lag? The very first thing I ask when troubleshooting is “What changed?” So what changed in your environment in February? Other teams changes? Application? Network?

Re: Website slowed down drasticaly

2019-05-03 Thread Alex Heyden
Definitely echoing Scott's sentiment here. Start with what changed. In my personal experience, if the answer is "nothing," you can narrow it down very quickly. Start by reloading with the browser network monitor in the foreground. If the first response comes back very quickly, Django itself is off

Re: help with URLS.PY

2019-05-03 Thread randmwheeler
I resolved this. On Thursday, May 2, 2019 at 5:21:59 PM UTC-4, randmw...@gmail.com wrote: > > new to django. so i have an app that displays an html page. i also have a > menu on that page that will load up other html pages. > however, when i add the path to urls.py and then the class def in views

Installation Error

2019-05-03 Thread lamech664
hello guys Iam trying to install linux on my laptop which is using Manjaro Arch linux Operating System and when I Write the command *$pip install Django==2.2.1 *this is the error I get *" failed retrieving file 'python-psycopg2-2.8.1-1-x86_64.pkg.tar.xz' from manjaro.mirror.liquidtelecom.com : T

Daphne/Twisted exception when serving SSL/TLS

2019-05-03 Thread BR
I get the following traceback shortly after running Daphne with TLS enabled (it doesn't occur when TLS is not configured). Any ideas? It doesn't seem to affect anything, but I thought I would bring it up here before trying to submit an issue: 2019-05-03 12:41:45,252 ERRORException in callba

Re: Comment Form

2019-05-03 Thread Kayode Oladipo
Hello! Django has a simple solution to this. Go to your settings.py and define the url path to your login page. LOGIN_URL = "your url login path" Then in your views.py from django.contrib.auth.decorators import login_required Wrap the desired function with this decorator, @login_required def

django-admin ...command error

2019-05-03 Thread Josiah Umezurike
I shows that there is a setting problem properly not configured. I did configure the settings.py and wsgi.py I specified the path. I have tried with no avail to fix this problem. I will hope that some could assist on this one. If you have experienced this before please help. Thanks in advance

Re: help with URLS.PY

2019-05-03 Thread anchal agarwal
I am also facing the same issue ,can you tell me how you resolved this issue? On 03-May-2019 9:57 pm, wrote: > > I resolved this. > > > On Thursday, May 2, 2019 at 5:21:59 PM UTC-4, randmw...@gmail.com wrote: >> >> new to django. so i have an app that displays an html page. i also have a menu on t

Re: help with URLS.PY

2019-05-03 Thread Rob W
Sure. Here is my urls.py from django.conf.urls import url from django.contrib import admin from django.urls import path from vr_reporting_app.views import HomeView from vr_reporting_app.views import Local from vr_reporting_app.views import User from vr_reporting_app.views import School urlpatt

Re: django-admin ...command error

2019-05-03 Thread Jorge Gimeno
This is a good case to use manage.py instead, as manage.py sets DJANGO_SETTINGS_MODULE. See here: https://docs.djangoproject.com/en/2.2/ref/django-admin/. -Jorge On Fri, May 3, 2019 at 12:41 PM Josiah Umezurike < pcintegral.pcintegr...@gmail.com> wrote: > I shows that there is a setting problem