Re: Why counter tag is not working as expected in django?

2016-01-21 Thread sonu kumar
No, I am numbering in different ways. each question got different number event hough it's part of sub question. Yeah I got working see my gist https://gist.github.com/sonus21/0ebd1b894ec837c8f8b2 On Fri, Jan 22, 2016 at 4:27 AM, James Schneider wrote: > > > On Wed, Jan 20, 2016 at 8:00 PM, sonu

Re: Why counter tag is not working as expected in django?

2016-01-21 Thread James Schneider
On Wed, Jan 20, 2016 at 8:00 PM, sonu kumar wrote: > SO link: > http://stackoverflow.com/questions/34894964/why-counter-tag-is-not-working-as-expected-in-django > > I am using two for loop one is for main question and another one is for > sub questions. > Why? We have some comprehension type ques

Re: logged in user permissions and roles caching

2016-01-21 Thread James Schneider
On Wed, Jan 20, 2016 at 10:06 PM, Eddilbert Macharia wrote: > Hello guys I'm a little bit confused... . When using django all that > is, permissions and roles He is my understanding of how django > works. On each request made my by a client django creates a request > object from it..

Re: Using API to get data and display it on my website using DJANGO..

2016-01-21 Thread Rij K
Thank you Muhammad for your constructive guide, really appreciate the help provided! :) Kind regards, RJ On Thursday, 21 January 2016 01:32:01 UTC, Muhammad wrote: > > Hi Rij, > > I would approach it like this (though there might be alternative routes to > the same results): > > First: Where i

Re: Access denied for MySQL user in Django

2016-01-21 Thread James Schneider
On Thu, Jan 14, 2016 at 4:11 AM, Galil wrote: > I have created a Django app and which uses MySQL. The settings.py file in > the database sections is: > > DATABASES = { > 'cdraccess': { > 'ENGINE': 'django.db.backends.mysql', > 'NAME': os.environ.get('CDR_DB_NAME', 'portal2'),

Re: like query django

2016-01-21 Thread James Schneider
On Tue, Jan 19, 2016 at 10:56 AM, Xristos Xristoou wrote: > i follow you not work again first i cant use {% url %} show me template > error,i thing so i am is very noob > must necesery tu urls for that ? > Can you post your template with the changes you made? And the errors that you are receivin

Re: How to learn Django stepwise Effectively

2016-01-21 Thread Carsten Fuchs
Hi Andrew, Am 20.01.2016 um 15:31 schrieb Andrew Pinkham: There are many resources for learning Django (NB: this email assumes you’re not looking to learn Python). Thank you very much for assembling this list, it's very much appreciated! I knew many of these resources, but certainly not all.

Redefine RelatedManager

2016-01-21 Thread Горобец Дмитрий
Hello. Is there any way to redefine a relatedmanager for one field with foreignkey? For example: class Contract(models.Model): name = models.CharField(max_length=255, db_index=True) owner = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='contracts') class AppUser(AbstractUser