django.db.migrations.exceptions.NodeNotFoundError while upgrading django

2018-04-22 Thread Akhi
I am upgrading my django project from django1.5 to django1.11.10. while upgrading when I run ./manange.py migrate I am getting django.db.migrations.exceptions.NodeNotFoundError django.db.migrations.exceptions.NodeNotFoundError: Migration account.0004_auto_20180419_1309 dependencies reference no

Re: Decoupling Postgres database credentials in django for deployment.

2018-04-22 Thread Vinnicyus Gracindo
Github: python-decouple Em dom, 22 de abr de 2018 14:05, Bill Torcaso escreveu: > > I waited a while to answer this, and my answer comes in three distinct > parts. > > #- > > Question: what is the danger is using environment variables to hold > secret info? > > Answer: The

Re: I know this question has been asked before, but I haven't found an answer that solves my situation. I'm looking at the Django tutorial, and I've set up the first URLs exactly as the tutorial has

2018-04-22 Thread vikramchauhan9823
I have made few changes take a look at it and try this one. I hope this will work. On Sunday, April 22, 2018 at 10:53:58 PM UTC+5:30, Avitab Ayan Sarmah wrote: > > polls/views.py > > from django.http import HttpResponse > > def index(request): > return HttpResponse("Hello, world. You're at t

I know this question has been asked before, but I haven't found an answer that solves my situation. I'm looking at the Django tutorial, and I've set up the first URLs exactly as the tutorial has it,

2018-04-22 Thread Avitab Ayan Sarmah
polls/views.py from django.http import HttpResponse def index(request): return HttpResponse("Hello, world. You're at the polls index.") polls/urls.py from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'),] mysite/urls.py from django.con

Re: Decoupling Postgres database credentials in django for deployment.

2018-04-22 Thread Bill Torcaso
I waited a while to answer this, and my answer comes in three distinct parts. #- Question: what is the danger is using environment variables to hold secret info? Answer: The Django runtime will dump secret info from environment variables into an HTTP response, in some c

Weirdness with Chained Selects in the Admin

2018-04-22 Thread Mark Phillips
I have two chained selects in an inline form in my admin page. I wrote a short javascript script to pull the data from the database for the second select when a selection is made in the first select. It all seems to work - the scrip fires when a selection is made in the first select, the correct va