Re: empty request object

2016-02-27 Thread Larry Martell
Yes, you are absolutely correct. Thanks for directing me away from that red herring. But it seems request.user no longer exists. There is code that does this: if request.user.is_authenticated(): which throws: AttributeError: "'WSGIRequest' object has no attribute 'user'" On Sat, Feb 27, 2016 a

Re: empty request object

2016-02-27 Thread knbk
I was referring to the wrong release notes. The rights one can be found in the 1.8 release notes in the miscellaneous section[1]: HttpRequest > > now > has a simplified repr (e.g. ). This won’t > change the

form dynamic javascript input in django

2016-02-27 Thread xristos sarantis
i want to create html form with dynamic input javascript on django but the javascript script not connect with the form the code {% csrf_token %} Book

javascript,html form and django

2016-02-27 Thread xristos sarantis
hello i want ta create a html form using javascript dynamic input but the javascript script not working,where is wrong ? my code html form... {% csrf_token %} Book

Re: empty request object

2016-02-27 Thread Larry Martell
On Sat, Feb 27, 2016 at 5:14 PM, knbk wrote: > The `__repr__` method on HttpRequest was simplified in 1.9[1]. It is not an > accurate description of what is actually contained in the request, and I > doubt it has anything to do with the actual issues you're facing. > > [1] > https://docs.djangopro

Re: empty request object

2016-02-27 Thread knbk
The `__repr__` method on HttpRequest was simplified in 1.9[1]. It is not an accurate description of what is actually contained in the request, and I doubt it has anything to do with the actual issues you're facing. [1] https://docs.djangoproject.com/en/1.9/releases/1.9/#httprequest-details-in-

Re: empty request object

2016-02-27 Thread Larry Martell
On Sat, Feb 27, 2016 at 5:02 PM, James Schneider wrote: > > On Feb 27, 2016 1:55 PM, "Larry Martell" wrote: >> >> Anyone have any insights on this? Is there anything special I need to >> do get the request structure? The way this 1.9 site is now, it doesn't >> work at all because the request stru

Re: empty request object

2016-02-27 Thread James Schneider
On Feb 27, 2016 1:55 PM, "Larry Martell" wrote: > > Anyone have any insights on this? Is there anything special I need to > do get the request structure? The way this 1.9 site is now, it doesn't > work at all because the request structure is not getting passed in. > I'd be most suspicious of midd

Re: empty request object

2016-02-27 Thread Larry Martell
Anyone have any insights on this? Is there anything special I need to do get the request structure? The way this 1.9 site is now, it doesn't work at all because the request structure is not getting passed in. On Fri, Feb 26, 2016 at 10:09 PM, Larry Martell wrote: > I just integrated a broken djan

Re: How to use selenium automated testing in django projects

2016-02-27 Thread Dan Tagg
Harry Percival is very good http://www.obeythetestinggoat.com Not sure if he covers Excel Dan On 27 Feb 2016 13:22, "Vikneswaran S J" wrote: > I need to use selenium automated testing for django application with input > from excel sheet. How to use use this feature? any idea? > > -- > You recei

Re: Session recycling during login times out

2016-02-27 Thread Stodge
The title is misleading; it should probably be "Session recycling stalls during login". I also noticed that logout stalls. On Saturday, February 27, 2016 at 3:12:08 PM UTC-5, Stodge wrote: > > I'm trying to diagnose a problem where noone can login to my django site. > The login attempt times ou

Session recycling during login times out

2016-02-27 Thread Stodge
I'm trying to diagnose a problem where noone can login to my django site. The login attempt times out as NGINX (proxy) gives up waiting for Apache to respond. There are no errors in the logs anywhere. I copied the Django code into my app to debug: def this_real_login(request, user): > """ >

Re: Error running Django tutorial

2016-02-27 Thread James Schneider
On Feb 27, 2016 11:49 AM, "Mike Kipling" wrote: > > I am working through the Django tutorial Writing your first Django app, part 1. > I am using Windows 10, python 3.5.1 and Django 1.9.2 . > > In the Write your first view section: > after writing the polls/views.py and polls/urls.py files, >

Error running Django tutorial

2016-02-27 Thread Mike Kipling
I am working through the Django tutorial *Writing your first Django app, part 1.* I am using Windows 10, python 3.5.1 and Django 1.9.2 . In the *Write your first view* section: after writing the polls/views.py and polls/urls.py files, and modifying the manage/urls.py file, and st

Re: Default Site

2016-02-27 Thread Sergiy Khohlov
This is task for apache not for django. G 26 лют. 2016 23:06 пише: > no > Hi, > > > Shouldn’t django.contrib.sites.models.SiteManager.get_current() first check the given request to determine the current site and then look at the SITE_ID setting? > > > I would like to have multiple Sites and choose

Provide way to add an item during "Selecting a ForeignKey"

2016-02-27 Thread guettli
I use django-select2 for easy ForeignKey picking. Works nice. But how can I add a new item in the ForeignKey table? I would like to have a big [+] button and then a dialog should open. AFAIK django-select2 does not help here. Is there a differ

How to use selenium automated testing in django projects

2016-02-27 Thread Vikneswaran S J
I need to use selenium automated testing for django application with input from excel sheet. How to use use this feature? any idea? -- 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

Re: errors while trying to add extra context (detailview, __getitem__)

2016-02-27 Thread James Schneider
On Fri, Feb 26, 2016 at 6:04 PM, Malik Rumi wrote: > JAMES wrote: >>> Can you post the entire section for your urls.py, as > well as the entire traceback? Nothing is immediately jumping out at me. Do > you get this error when you start the Django server, or when you visit the > page that matches

Re: errors while trying to add extra context (detailview, __getitem__)

2016-02-27 Thread James Schneider
> > > urlpatterns = patterns(['', > > url(r'^$', TemplateView.as_view(template_name='library.html')), > > url(r'code/', > CodeDetail.as_view(template_name='code_family_detail')), > > You've got CodeDetail instead of CodeDetailView, is that correct? That's > not the class that you posted ear

Re: errors while trying to add extra context (detailview, __getitem__)

2016-02-27 Thread James Schneider
On Fri, Feb 26, 2016 at 6:38 PM, Malik Rumi wrote: > *OK, so maybeMAYBE I've got this figured out. The problem is here:* > > https://docs.djangoproject.com/en/1.9/ref/urls/#django.conf.urls.url > > > *I knew this, but note the examples still use the parens()* > > > https://docs.djangoproject.