How to handle database VIEWS in Django

2018-10-10 Thread django_learner
Hi everyone, I am using SQL SERVER and I have some predefines VIEWS in the database, what I am looking for is to manage that VIEWS Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving em

Re: beginner guide

2018-10-10 Thread Kasper Laudrup
Hi Pradeep, On 11/10/2018 16.08, Pradeep Singh wrote: i am getting django 404 error e..my first question why i am getting thsese error always ...please some one help me to fix it ..every thing in my code is my fine? . First of all, *don't* highjack unrelated threads when you hav

How to implement code on time header and line property in django

2018-10-10 Thread django_learner
How to implement codeontime header and line property 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 post

login() got an unexpected keyword argument 'template_name'

2018-10-10 Thread 'Yonggang Dai' via Django users
HI! I am having issues with django login . I want to use the default login class with the html file "login.html". But I meet the below issue. Please help me to fix it. Thanks a lot. [image: image.png] -- You received this message because you are subscribed to the Google Groups "Django users

Re: Sqlalchemy json column - how to perform filter based on list of ids on a key

2018-10-10 Thread siddharth anvekar
( tracker_id : 69, cpu_core : 89.890 Datetime: 15 On Tue, 9 Oct 2018, 08:36 pradam, wrote: > I have a list of ids like: > > tracker_ids = [69, 70] > > I need to get all the APInformation objects based on the tracker_id. > > data looks like this: > > { 'tracker_id' : 69, 'cpu_core_avg': 89.890',

Django sessions not configuration issues for Heroku/Redis

2018-10-10 Thread jesse
Hello, I'm having issues with Django sessions on Heroku/Redis. I expect to be able to login and stay logged in. Instead, user will continually be logged out and sessions do not persist. I posted more details on Stack Overflow here: https://stackoverflow.com/questions/52535488/django-sessions-n

Django ORM for clone or copy particular row data from one table to another

2018-10-10 Thread Manish Kumar Yadav
Django ORM for clone or copy particular row data from one table to another Actually I have two table and both table have foreign key relation with different table, i want to move single single row data from one table to another. -- You received this message because you are subscribed to the Go

Django sessions configuration issues in production with Heroku/Redis

2018-10-10 Thread jesse
Hello, I'm having trouble configuring Django sessions to be persistent. I expect a user to be able to log in on first try and then stay logged in. Currently, it takes multiple tries to login and then the user is logged out. Sessions are clearly not persisting. I posted a bounty for this on Stac

Re: beginner guide

2018-10-10 Thread whistler whitherfaith
Does anyone know where I can download Django 2 By Examples. On Wed, Oct 10, 2018, 01:58 Kim Sunga wrote: > If you're interested on the newest django (2.X) try to read Django 2 by > Example by Antonio Mele > > On Tue, Oct 9, 2018 at 7:37 PM 'puhlmann7' via Django users < > django-users@googlegrou

Re: Alternatives to using __contains?

2018-10-10 Thread Michal Petrucha
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Wed, Oct 10, 2018 at 03:06:20AM -0700, megaman wrote: > You mentioned SQLAlchemy. Does SQLAlchemy use actual functions/methods over > magic strings to perform the operations? SQLAlchemy uses operator overloading and function calls in Python to w

Re: how to create, read, update and delete other dependent tables in detail view Django

2018-10-10 Thread Michal Petrucha
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Wed, Oct 10, 2018 at 06:32:52AM -0700, django_learner wrote: > Hi everyone > I have three tables > class Employee(models.Model): > name = models.CharField() > > class Dependent(models.Model): > employee_id = models.Foreignkey(Employee , on_d

how to create, read, update and delete other dependent tables in detail view Django

2018-10-10 Thread django_learner
Hi everyone I have three tables class Employee(models.Model): name = models.CharField() class Dependent(models.Model): employee_id = models.Foreignkey(Employee , on_delete= models.CASCADE) dependent_name = models.CharField() class Document(models.Model): employee_id = models.Foreignkey(E

Re: beginner guide

2018-10-10 Thread Pawel Grajewski
https://simpleisbetterthancomplex.com/ wt., 9 paź 2018 o 21:49 ashok kumar reddy napisał(a): > Thank you so much > > On Tue, 9 Oct 2018, 15:14 Devender Kumar, wrote: > >> Hi, >> Best way to learn django is to start coding it and keep referencing it >> with django docs. Or find a mentor work/hel

Re: Alternatives to using __contains?

2018-10-10 Thread megaman
That's interesting because I would have thought it's much better to chain through functions like in Javascript or in other functional paradigms. Chaining using the variable name feels "fragile" to me, like I may break things at any time without knowing. Maybe I will just have to get used to how

Re: Alternatives to using __contains?

2018-10-10 Thread megaman
You mentioned SQLAlchemy. Does SQLAlchemy use actual functions/methods over magic strings to perform the operations? If so, are we even able to swap out the Django ORM and use SQLAlchemy? On Wednesday, 10 October 2018 16:49:52 UTC+8, Michal Petrucha wrote: > > -BEGIN PGP SIGNED MESSAGE-

Re: Alternatives to using __contains?

2018-10-10 Thread Michal Petrucha
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, On Tue, Oct 09, 2018 at 08:03:27AM -0700, megaman wrote: > I’m pretty new to Django. I have just learnt that could filter a > query set this way: > > Questions.objects.filter(question_text__contains=‘what’) > > This kind of scares me a little

Re: Configuration settings for Sql Server database in django

2018-10-10 Thread Rakhee Menon
Hi Vinod, Thanks for the quick response ...I also had doubt regarding which version of python and django are supported for SQL Server 2014. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop recei

Re: beginner guide

2018-10-10 Thread TimT Vogt
I found https://wsvincent.com/ to be a good Guide Verstuurd vanaf mijn iPhone > Op 8 okt. 2018 om 18:49 heeft carl collins het > volgende geschreven: > > Follow this awesome tutorial> > https://docs.djangoproject.com/en/2.1/intro/tutorial01/ > >> On Mon, Oct 8, 2018 at 5:39 PM Ashok Red

Re: Configuration settings for Sql Server database in django

2018-10-10 Thread 'Vinod Kumar' via Django users
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'db_name', 'USER': 'db_user', 'PASSWORD': 'password', 'HOST': 'localhost', 'PORT': '', } } On Wed, Oct 10, 2018 at 11:50 AM Rakhee Menon wrote: > Hello Everyone, > > Please could anyone specify what are the configuration se