Unable to setup Django

2017-12-08 Thread Nav Pat
So Im trying to activate virtual environment but its not happening. I type "venv\Scripts\activate" into my powershell and out comes : "venv\Scripts\activate : The module 'venv' could not be loaded. For more information, run 'Import-Module venv'. At line:1 char:1 + venv\Scripts\activate +

Re: Unable to parse connection string: "" when using django cache

2016-03-11 Thread nav
Setting the key CACHE_MIDDLEWARE_ALIAS to 'default' fixes the issue Cheers, Nanda On Thursday, March 10, 2016 at 5:02:37 PM UTC-8, nav wrote: > > Sorry forgot to add the traceback I am getting: > > Internal Server Error: / > Traceback (most recent call last): > File > &

Unable to parse connection string: "" when using django cache

2016-03-10 Thread nav
I have verified that the memcache daemon is up and running and have added and retrieved data from it. Hence, I believe that there is something wrong with my configuration and I have been trying to figure out what is wrong for hours. I hope someone can lend some assistance. Many thanks, nav P.S. This is t

Django middleware cache settings

2016-03-08 Thread nav
to do for is just cache the response, from just a single view not the entire site. It does not seem clear to me from the documentation here <https://docs.djangoproject.com/en/1.9/topics/cache/>. I hope someone can shed some light on this. Thanks in advance. nav P.S. Also posted this qu

Re: Using clean_fields and full_clean in django Admin

2012-12-04 Thread nav
Thanks. It seems so obvious something kept telling that forms worked differently in the Admin interface compared to normal developer defined forms. This is exactly what I would have done if it was form that I had defined. Cheers, nav On Wednesday, December 5, 2012 5:21:37 AM UTC+5:30, Chris

Using clean_fields and full_clean in django Admin

2012-12-04 Thread nav
public = models.BooleanField(default=True, null=False) Please do let me know if anything else is needed. Cheers, nav -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.co

Setting an unusable password on an existing user

2012-09-21 Thread nav
that the user.has_usable_password() method will return False instead of True? Many Thanks, nav -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/yqNmZJR5mJg

Re: Django development running on 127.0.0.1:8000 not accessible from same machine

2012-09-01 Thread nav
, nav On Friday, August 31, 2012 10:22:41 PM UTC+5:30, nav wrote: > > Chris, > > Thank you for your email. I had cleared my cache quite a number of times > before. > > What is interesting is that if I start a new Django 1.4.1 the browser > finds the server running at

Re: reverse function giving me NoReverseMatch exception

2012-08-29 Thread nav
Thanks Sebastian that worked. Can't believe it was that simple been breaking my head on this for hours! Cheers, nav On Wednesday, August 29, 2012 12:19:22 PM UTC+5:30, Sebastian wrote: > > On Tue, 28 Aug 2012 23:35:01 -0700 (PDT) > nav <navani...@gmail.com > wrote: > >

Re: reverse function giving me NoReverseMatch exception

2012-08-29 Thread nav
. I am aware that I am missing something simple but I am not sure what. TIA, nav On Wednesday, August 29, 2012 11:54:08 AM UTC+5:30, nav wrote: > > Dear Folks, > > I have the following view function defined like this: > > my_view(request, uuid, backend=None) > > -- Y

reverse function giving me NoReverseMatch exception

2012-08-29 Thread nav
Dear Folks, I have the following view function defined like this: my_view(request, uuid, backend=None) -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Django development running on 127.0.0.1:8000 not accessible from same machine

2012-08-27 Thread nav
. In addition I am not sure if assigning the above causes any security issues but since it is just a name I think it should be fine. This issue may be related to not assigning a fully qualified domain name to the Linux host. Thanks for your help Anton and hope this helps others. Cheers, nav

Re: Django development running on 127.0.0.1:8000 not accessible from same machine

2012-08-27 Thread nav
. This makes me think this is a DNS issue that may be due to a network related problem. In which case I will have to investigate. I will post once I find a work around or solution. Cheers, nav On Aug 27, 5:36 pm, Anton Baklanov <antonbakla...@gmail.com> wrote: > oh, i misunderstood your question

Django development running on 127.0.0.1:8000 not accessible from same machine

2012-08-27 Thread nav
localhost 127.0.1.1 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters TIA Cheers, nav -- You received this message because you are

Re: Addng extra variable to request sent by self.client.get() when using django TestCase

2011-11-11 Thread nav
in response.templates] AttributeError: 'TemplateResponse' object has no attribute 'templates'. Have you seen this happen in your experience? I am thinking of taking a look at the django source to see what client.get() does different. Thanks, Yours sincerely, nav On Nov 9, 4:14 pm, Flavia Missi <flavi

Re: Addng extra variable to request sent by self.client.get() when using django TestCase

2011-11-08 Thread nav
and wondered if you have any pointers in this respect. Thanks once again. Yours sincerely, nav On Nov 8, 8:39 pm, Flavia Missi <flaviami...@gmail.com> wrote: > When I need something like you want, I usually use RequestFactory to create > the request and call the view directly. >

Addng extra variable to request sent by self.client.get() when using django TestCase

2011-11-08 Thread nav
this request.field = 'some value' self.client.get(url) assertsomething() The variable field is checked for in the views and does some processing based on that. What would be the best way to add this field to the request sent by self.client.get(). Thanks, Yours sincerely, nav -- You received this message

Re: cannot concatenate 'str' and 'FilterExpression' objects

2011-10-18 Thread nav
AT, Thank you very much for your detailed answer. I have managed to get it to work now and it seemed obvious after your explanation. Thank you once again. Yours sincerely, nav On Oct 18, 9:11 pm, Andre Terra <andrete...@gmail.com> wrote: > Hello, nav > > The most relevan

Re: cannot concatenate 'str' and 'FilterExpression' objects

2011-10-18 Thread nav
AT, Thanks for your email I have posted the custom template tag code and the traceback at dpaste. The template code is at: http://dpaste.com/636570/ the traceback is at: http://dpaste.com/636571/ Please do let me know if anything else is required. Thanks, nav On Oct 18, 5:20 pm, Andre Terra

Re: cannot concatenate 'str' and 'FilterExpression' objects

2011-10-18 Thread nav
If anyone has any pointers as to what might be the problem please answer. I would greatly appreciate any help you maybe able to provide. Thanks. nav On Oct 17, 11:44 pm, nav <navanitach...@gmail.com> wrote: > Dear Folks, > > I am using a number of subdomains for my website and de

cannot concatenate 'str' and 'FilterExpression' objects

2011-10-17 Thread nav
the standard url method in django {% url "app.views.view_decider" "about" %} and this works. I would like to know where I am going wrong with my function so I can get this to work. The full traceback of the error is below: Than