Using Redis as Django Cache

2017-04-05 Thread Luvpreet Singh
I am using(trying) redis as a cache to my django app. This is how I am trying to do it. def postview(request): post_list = [] if cache.get("posts") == None: post_list = Post.objects.all() cache.set("posts", post_list, timeout=None) else :

Serializers and forms

2017-03-16 Thread Luvpreet Singh
What is the difference in saving model instance to database using a form and doing the same by using a serializer ? What is the basic need of serializers ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Chart library for django

2017-03-05 Thread Luvpreet Singh

Re: USING graphs in django admin

2017-03-03 Thread Luvpreet Singh
> -- > The most dangerous phrase in the language is, "We've always done it this > way." > > - Grace Hopper > > On 3 March 2017 at 21:22, Luvpreet Singh <s.luvp...@gmail.com > > wrote: > >> I want to display graphs in django admin. Is there any tool

USING graphs in django admin

2017-03-03 Thread Luvpreet Singh
I want to display graphs in django admin. Is there any tool to display them in django admin site ? I have tried django-admin-tools-stat , but I don't want to create a different dashboard for the graphs. I want the queries on the models to be displayed with the help of those graphs. --

Multiple Databases --- Migrations

2017-02-27 Thread Luvpreet Singh
I am using 2 postgres databases in my django app. 'newpostgre': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'new_postgre2', 'USER': 'tester', 'PASSWORD': 'password', 'HOST': 'localhost', 'PORT': '', },

Re: Multiple Databases

2017-02-27 Thread Luvpreet Singh
ect.com/en/1.10/topics/db/multi-db/ > > Dylan > > > On Sun, Feb 26, 2017 at 11:17 PM, Luvpreet Singh <s.luvpree...@gmail.com> > wrote: > >> Hi everyone, >> >> I am using 2 databases in my django app. One is default sqlite and second >> is postgre. &g

Multiple Databases

2017-02-26 Thread Luvpreet Singh
Hi everyone, I am using 2 databases in my django app. One is default sqlite and second is postgre. Now, I make a simple model named Check1 in my app, having only title attribute. class Check1(models.Model): title = models.CharField(max_length=100) Now, in my shell, >> from

Re: A server that runs django

2017-02-22 Thread Luvpreet Singh
Yeah I am running my django on nginx. I just wanted to make sure that if I'm doing wrong by doing so? On Tuesday, February 7, 2017 at 1:08:01 AM UTC+5:30, Dário Carvalho wrote: > > Hi everyone. So, I now understand a little more about how django works and > I was thinking about how can I run a

Re: Django template language resolve url

2017-02-22 Thread Luvpreet Singh
Iudovic is right, your syntax is wrong. use {% url 'ytlinks:save_ytlinks' %} the original syntax is , {% url 'namespace:url_name' arguments %} On Thursday, February 16, 2017 at 9:42:14 PM UTC+5:30, xyron wrote: > > Code hier eingeben... > > Hey there, > > I'm searching since more than 12 hours

Re: A server that runs django

2017-02-22 Thread Luvpreet Singh
Well, I completely agree with you. But can we use Nginx servers? On Tuesday, February 7, 2017 at 1:08:01 AM UTC+5:30, Dário Carvalho wrote: > > Hi everyone. So, I now understand a little more about how django works and > I was thinking about how can I run a site built with django in my own >

Re: Models/Foreign Keys best practice

2017-02-22 Thread Luvpreet Singh
Hi Richard, I am facing a difficulty here. Can you please tell me that how to iterate over this queryset , performance.ensemble_set.all() ?? Thanks. On Wednesday, February 22, 2017 at 7:55:24 PM UTC+5:30, Richard Jackson wrote: > > Hi all, > > I'm putting together my first app, closely

Re: Difference

2017-02-15 Thread Luvpreet Singh
YES. Thank you very much for explaining this. On Thursday, February 16, 2017 at 12:20:45 PM UTC+5:30, Michal Petrucha wrote: > > On Wed, Feb 15, 2017 at 12:48:21PM -0800, Luvpreet Singh wrote: > > What is the difference between realted_name and related_query_name ?? >

Difference

2017-02-15 Thread Luvpreet Singh
What is the difference between realted_name and related_query_name ?? -- 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.