Re: Permissions for Anonymous Users in Django

2017-05-10 Thread Constantine Covtushenko
Hi Uzair, Can you please provide some use cases when there is needed such behavior? Regards, Constantine C. On Tue, May 9, 2017 at 6:56 AM, Uzair Tariq wrote: > Does the Django have support for permission for the anonymous users? Reference > Topic Link >

"In menu" does not work - Can anybody help?

2017-05-10 Thread lisa . frischer
Hi there, I have a problem with the "in menu" section of a child-page in django. The URL is www.tenag.de/arbeitshilfen/energierelevante-gesetze-normen-und-verordnungen/ and should stay like this but should not show in the menu of "Arbeitshilfen". If I erase the arrow in "Show in menu" the page

Re: Model (beginner user) : Sum of the model entries

2017-05-10 Thread Rúben Rodrigues
Anyone could help? terça-feira, 9 de Maio de 2017 às 13:20:56 UTC+1, Rúben Rodrigues escreveu: > > Hi people, > > I'm new in django, so i have simple questions. Sorry for that. > > I want to develop a simple app to make entries in stock. To start i > install the jet dashboard and start an app

Re: CPU usage by workers

2017-05-10 Thread qnub
Thanks for answer! python manage.py runworker --threads=4 This process consume CPU resources (daphne and delay processes seems not meaningful here). I'll try describe step by step: 1. daphne, workers and delay started and workers consume about 10% CPU 2. open new tab in chrome and worker's

Re: Unicode error in __unicode__(self) function

2017-05-10 Thread Melvyn Sopacua
On Tuesday 09 May 2017 06:00:31 rmschne wrote: > > I'm sorry - but this isn't your real error. > > > > You will see it in your WSGI daemon logs once you set DEBUG to > > false. > > > > > > > > This error is caused by Django trying to print the error using ascii > > codec for the debug output

Re: CPU usage by workers

2017-05-10 Thread Melvyn Sopacua
On Tuesday 09 May 2017 23:21:23 qnub wrote: > Also it's may be my fault somewhere (and i pretty sure it is). But i > not sure where to start my investigation. I would start with strace[1] - a common cause for this is expecting a resource that does not exist and keep trying. A filename or

Re: vs {{ form }}

2017-05-10 Thread Melvyn Sopacua
On Tuesday 09 May 2017 14:08:44 Jani Tiainen wrote: > And to use bootstrap you don't need any special package, you can do it > without it just fine. To render a webpage, you don't need Django you can do just fine typing HTML. What's your point really? -- Melvyn Sopacua -- You received this

Re: "In menu" does not work - Can anybody help?

2017-05-10 Thread Constantine Covtushenko
Hi Lisa, Can you please tell what application do you use for that? Is it django-cms? Regards, Constantine C. On Wed, May 10, 2017 at 10:28 AM, wrote: > Hi there, > I have a problem with the "in menu" section of a child-page in django. The > URL is

Re: "In menu" does not work - Can anybody help?

2017-05-10 Thread lisa . frischer
Hi, I am just using the Django CMS. :) Best Lisa Am Mittwoch, 10. Mai 2017 13:29:14 UTC+2 schrieb Constantine Covtushenko: > > Hi Lisa, > > Can you please tell what application do you use for that? > Is it django-cms? > > Regards, > Constantine C. > > On Wed, May 10, 2017 at 10:28 AM,

Re: Permissions for Anonymous Users in Django

2017-05-10 Thread Uzair Tariq
Consider a scenario in which an anonymous user search for the user profiles on the google. He gets public profile link to different social network which he can view as the anonymous user but if this user is registered and authenticated user on the social site but his profile is inactive at the

SaveFig(graph_filename) VS canvas.print_png(graph_filename)

2017-05-10 Thread Thames Khi
I have a small app which generates a graph and saves it to a file. The file is then displayed using a reference. My question is, is it better to use matplotlib.pyplot SaveFig function or matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas function? Here is an extract of my

SaveFig(graph_filename) VS canvas.print_png(graph_filename)

2017-05-10 Thread Thames Khi
Hi I am wondering the best method to save a graph to a file which is then displayed on a rendered webpage? Currently, I have URL which calls a view. This view: def graph(request): from datetime import datetime, timedelta graph_filename = (djangoSettings.STATICFILES_DIRS[0] + 'graph_' +

Displaying Categories / Subcategories (Tango with Django Example)

2017-05-10 Thread Michael Smith
I'm following the latest Tango book and was experimenting with different ways of looping through categories and subcategories to create a list. I have a 'Category' and 'Page' model, where Page has a foreign key to Category's ID. To display a list with sub-bullets I simply passed all

Re: django-cruds-adminlte 0.0.4 is out

2017-05-10 Thread bobhaugen
On Tuesday, May 9, 2017 at 1:04:41 PM UTC-5, Óscar M. Lage wrote: > > I would like to say that django-cruds-adminlte 0.0.4 is out ( > https://github.com/oscarmlage/django-cruds-adminlte). We're requesting > for collaboration but if not (dunno what happens, maybe the goal of the > project is not

Re: SaveFig(graph_filename) VS canvas.print_png(graph_filename)

2017-05-10 Thread Melvyn Sopacua
On Wednesday 10 May 2017 09:03:51 Thames Khi wrote: > I have a small app which generates a graph and saves it to a file. The > file is then displayed using a reference. Consider saving some CPU cycles: http://nginx.org/en/docs/http/ngx_http_proxy_module.html#p roxy_store -- Melvyn Sopacua --

Re: Permissions for Anonymous Users in Django

2017-05-10 Thread Melvyn Sopacua
On Wednesday 10 May 2017 09:49:48 Uzair Tariq wrote: > Consider a scenario in which an anonymous user search for the user > profiles on the google. He gets public profile link to different > social network which he can view as the anonymous user but if this > user is registered and authenticated

[Channels] Unit tests simulating two connections

2017-05-10 Thread Luís Antonio De Marchi
First of all I'm sorry for my English, I'm supported by the translator. I'm trying to simulate 2 simultaneous connections in my unit tests, but channel name gets repeated and causes the system to "ignore" one of the connections. self._send_and_consume('websocket.connect', {"text": "", "path":

Re: "In menu" does not work - Can anybody help?

2017-05-10 Thread Melvyn Sopacua
On Wednesday 10 May 2017 08:06:59 lisa.frisc...@tenag.de wrote: > Hi, > > I am just using the Django CMS. :) Could list INSTALLED_APPS in the settings.py? -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe