Re: add a secretballot middleware to MIDDLEWARE_CLASSES

2017-04-07 Thread Samuel Brunel
Hi, MIDDLEWARE is in settings.py of your project. Sam Le ven. 7 avr. 2017 23:29, shahab emami a écrit : > tanks > but my problem is: > I don't know where middleware section is. > i looked for middleware section in the app but i couldn't find anything. > that's why i

Re: How to structure this django application

2017-04-07 Thread Sithembewena Lloyd Dube
Hey Rich, Do take the time to peruse the book. It would be time well spent. Also, do keep in mind that the recommendations therein do not apply to a Django blog or CRM sustem etc, per se. They would apply just as well if you were building a RESTful mobile app backend. The problem you describe of

Re: add a secretballot middleware to MIDDLEWARE_CLASSES

2017-04-07 Thread shahab emami
On Saturday, April 8, 2017 at 1:59:20 AM UTC+4:30, shahab emami wrote: > > tanks > but my problem is: > I don't know where middleware section is. > i looked for middleware section in the app but i couldn't find anything. > that's why i asked that question here > > On Friday, April 7, 2017 at

Re: add a secretballot middleware to MIDDLEWARE_CLASSES

2017-04-07 Thread shahab emami
nobody can help me in this? what i have to add to middleware class? On Friday, April 7, 2017 at 7:16:36 PM UTC+4:30, shahab emami wrote: > > hello > i have a simple question > please help me if you can > > > i want to install this package on my project: > >

Re: How to structure this django application

2017-04-07 Thread Rich Shepard
On Sat, 8 Apr 2017, Sithembewena Lloyd Dube wrote: My best recommendation for structuring Django projects (and for optimization and a myriad other goodies) would be the book Two Scoops of Django by Daniel and Audrey Roy Greenfeld. I could say a lot but the bottom line is, check the book out.

Theming

2017-04-07 Thread Clinton Blackburn
Has anyone solved site-aware theming? I have a multi-tenant site (using sites framework) and I want to render custom templates for each site. My current design calls for a default design, and overrides of the base template (or child templates) for each site. Obviously, I can achieve the

Re: How to structure this django application

2017-04-07 Thread Sithembewena Lloyd Dube
Hey Rich, My best recommendation for structuring Django projects (and for optimization and a myriad other goodies) would be the book Two Scoops of Django by Daniel and Audrey Roy Greenfeld. I could say a lot but the bottom line is, check the book out. It's at https://www.twoscoopspress.com/

How to structure this django application

2017-04-07 Thread Rich Shepard
Caveat: I'm not a professional coder or web developer, but have written many applications over the years. Because I'm also new to django I need insights into how to structure an application application supporting multiple users, each in its own private section. This application will allow my

Re: Was Form choice.choice_value silently removed in 1.11?

2017-04-07 Thread Rodney Folz
Ah, you're right. I must have missed that. Thanks very much! On Tuesday, April 4, 2017 at 7:45:43 PM UTC-7, Tim Graham wrote: > > It looks like that's covered here: > > > https://docs.djangoproject.com/en/1.11/releases/1.11/#changes-due-to-the-introduction-of-template-based-widget-rendering > >

Re: add a secretballot middleware to MIDDLEWARE_CLASSES

2017-04-07 Thread shahab emami
tanks but my problem is: I don't know where middleware section is. i looked for middleware section in the app but i couldn't find anything. that's why i asked that question here On Friday, April 7, 2017 at 9:10:05 PM UTC+4:30, Daniel Roseman wrote: > > > > On Friday, 7 April 2017 15:46:36

Re: Best way to use Django with Knockout.js

2017-04-07 Thread Karthic Raghupathi
I'm looking for something similar and stumbled on this: http://stackoverflow.com/questions/10403094/using-knockout-js-with-django-forms. Hope that helps. On Saturday, May 3, 2014 at 12:04:45 AM UTC-4, Paul Rule wrote: > > Hi, I was wondering if there are any good resources for demonstrating

RE: How to make a dynamic table/form

2017-04-07 Thread Matthew Pava
Datatables has an Editor. https://datatables.net/ There’s also a package that let’s Django and Datatables talk with each other quite well. https://pypi.python.org/pypi/django-datatables-view From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of

Just learning about auth in django and getting error NoReverseMatch ; Exception Value: Reverse for 'password_reset_done' with arguments

2017-04-07 Thread Thames Khi
My example is simple, I am happy to use the standard views and templates provided by Django. NoReverseMatch at /myapp/password/reset/ Reverse for 'password_reset_done' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: [] Request Method: GET Request URL:

Re: Setting up an App and getting an import error

2017-04-07 Thread Nate Granatir
I may be speaking a bit out of my depth here, but I wonder if it's maybe because you haven't created __init__.py files in the directories? I believe Django (well, Python), requires an empty __init__.py file in directories when loading them as modules:

Re: 'migrate' triggers lazy reference error when changing custom user model name

2017-04-07 Thread Олег Ямников
Hello! I'm having the same problem right now. Have you found any solution? That would be very helpful to me. Thank you. On Wednesday, December 7, 2016 at 5:18:55 PM UTC+5, Johan Cockx wrote: > > I am running Django 1.10.4 with Python 3.4.3, learning about Django. > > I created a custom user

Re: [BUG] Django 1.11 backward compatibility bug when several authentication backends are in use

2017-04-07 Thread René Fleschenberg
Hi Raffi, Thanks for taking the time to report this. Can you please file an issue at https://code.djangoproject.com/? The people who deal with triaging and fixing bugs may not be following the django-users list. Thanks! René On 04/07/2017 03:43 PM, Raffi Enficiaud wrote: > Hi Django list! > >

How to make a dynamic table/form

2017-04-07 Thread rosettas
Hi All I want to make a dynamic table which display data and editable. The rows and columns could be inserted to table from table viewing, not necessary to go to other form for data submitting. same as the cells which could be also edited. is there something ready in Django? or is any package

Re: add a secretballot middleware to MIDDLEWARE_CLASSES

2017-04-07 Thread Daniel Roseman
On Friday, 7 April 2017 15:46:36 UTC+1, shahab emami wrote: > > hello > i have a simple question > please help me if you can > > > i want to install this package on my project: > > https://pypi.python.org/pypi/django-secretballot/ > > I am doing the installation step by step but after adding

add a secretballot middleware to MIDDLEWARE_CLASSES

2017-04-07 Thread shahab emami
hello i have a simple question please help me if you can i want to install this package on my project: https://pypi.python.org/pypi/django-secretballot/ I am doing the installation step by step but after adding 'secretballot', to my installed_apps It says: * add a secretballot middleware to

Integrating the Werkzeug web based debugger with Django - A lightweight management command

2017-04-07 Thread Juan Saavedra
Hello, We created a small management command to run a tweaked version of the Werkzeug dev server and debugger in Django. A small intro and description is available at https://www.octobot.io/blog/django-rundbg-release/ It is particularly useful for debugging REST APIs, but not exclusively.

[BUG] Django 1.11 backward compatibility bug when several authentication backends are in use

2017-04-07 Thread Raffi Enficiaud
Hi Django list! I am using a django-crowd authentication backend and the deployment today was not working with our setup. I nailed it down to the fact that the backward compatibility is not working as expected for 1.11 for the authenticate method:

Re: Channels Redis/channelfull spam without any ws connections.

2017-04-07 Thread Andrew Godwin
The first part is normal Redis traffic for Daphne. It polls Redis in a pretty tight loop in synchronous mode (and this is, annoyingly, faster than the slow poll in Twisted-native mode). The second part is an unrelated error that appears to be from handling a WebSocket that was incoming - is it

Channels Redis/channelfull spam without any ws connections.

2017-04-07 Thread dave . mcallister . dev
> > 1491540549.292837 [0 lua] "LPOP" "asgi:daphne.response.tJbmVMXFGX!" > 1491540549.343335 [0 unix:/var/run/redis/redis.sock] "EVALSHA" > "3640886a0c8901ca9188f5f7a5f7a346145b9c5f" "1" > "asgi:daphne.response.tJbmVMXFGX!" > 1491540549.343373 [0 lua] "LPOP" "asgi:daphne.response.tJbmVMXFGX!" >

Re: ORM for structured Logs

2017-04-07 Thread guettli
Hi Marten, Am Donnerstag, 6. April 2017 14:10:58 UTC+2 schrieb knbk: > > Hi Thomas, > > The primary purpose of logging is to catch and examine errors. If > something went wrong, you want to know *when *and *why*. Logging to a > database increases the complexity and greatly increases the number

Re: ORM for structured Logs

2017-04-07 Thread guettli
Am Donnerstag, 6. April 2017 10:42:17 UTC+2 schrieb Christian Ledermann: > > On 6 April 2017 at 09:15, guettli > wrote: > > Hello Brick Wall, how are you doing? > > Hello Stonemason. > > What is your question? > > It was more an idea than a question. The question