Re: Permissions for Anonymous Users in Django

2017-05-11 Thread Constantine Covtushenko
You are welcome :) Have a fun with you project and Django. Django is very great! On Thu, May 11, 2017 at 10:44 PM, Uzair Tariq wrote: > Thanks man! So basically my example and deduction of the sentence was > right about the anonymous and inactive authenticated users

Trigger receiver signal on Proxy model

2017-05-11 Thread Yarnball
I'm using a proxy model, so that I can use Elastic search on the same model using two different serialisers. However, the new_index_elastic function never runs (ie I never see the print, and my NewModel never gets indexed). How would I do this? class Item(EsIndexable, models.Model): title

Re: Permissions for Anonymous Users in Django

2017-05-11 Thread Uzair Tariq
Thanks man! So basically my example and deduction of the sentence was right about the anonymous and inactive authenticated users where i stated that the anonymous may be able to view the public profile but if it's an inactive authenticated user because of some reason he may be directed to some

Re: Permissions for Anonymous Users in Django

2017-05-11 Thread Constantine Covtushenko
Hi Uzair, Please find my answer in blue: On Thu, May 11, 2017 at 9:10 PM, Uzair Tariq wrote: > A Bundle of thank Constantine Covtushenko now the working to > Authentication Backend for anonymous and inactive users is clear. Just one > last question does the scenario that

Re: Permissions for Anonymous Users in Django

2017-05-11 Thread Uzair Tariq
A Bundle of thank Constantine Covtushenko now the working to Authentication Backend for anonymous and inactive users is clear. Just one last question does the scenario that i defined in my example when you asked for the use case fit this line from the same topic. * The support for anonymous

Re: trouble with setting static for img and css

2017-05-11 Thread Melvyn Sopacua
On Thursday 11 May 2017 05:28:33 johnf wrote: > I have researched this issue and I know all I have to do is read the > doc's. But I can seem to get the correct path working to allow the > website to find the correct files in my Media,CSS and JS folders. Read this wikipedia piece[1]. And then

Re: Localization with thousand separator makes foreign key id invalid in forms

2017-05-11 Thread Simon Charette
Hello Thomas, Probably caused by #28075 [0], fixed in 1.11.1. Cheers, Simon [0] https://code.djangoproject.com/ticket/28075 Le jeudi 11 mai 2017 11:39:41 UTC-4, Alti a écrit : > > Hello, > > With localization and thousand separator active, my foreign keys ids are > rendered with a thousand

Re: Localization with thousand separator makes foreign key id invalid in forms

2017-05-11 Thread Melvyn Sopacua
On Thursday 11 May 2017 08:39:41 Alti wrote: > With localization and thousand separator active, my foreign keys ids > are rendered with a thousand separator in django forms and give me an > invalid field during validation. Is this a regression? Same code works in 1.10? -- Melvyn Sopacua --

Localization with thousand separator makes foreign key id invalid in forms

2017-05-11 Thread Alti
Hello, With localization and thousand separator active, my foreign keys ids are rendered with a thousand separator in django forms and give me an invalid field during validation. in settings.py: USE_L10N = True USE_THOUSAND_SEPARATOR = True example : Company something something with the

Re: Permissions for Anonymous Users in Django

2017-05-11 Thread Constantine Covtushenko
Hi Uzair, It seems like I see your point. Let me head you on answer off your first question: > Does the Django have support for permission for the anonymous users? Open the link provided by you: Reference Topic Link

Re: trouble with setting static for img and css

2017-05-11 Thread Antonis Christofides
No, if you change the STATIC_URL you don't need to run collectstatic again. Antonis Christofides http://djangodeployment.com On 05/11/2017 04:59 PM, John Fabiani wrote: > First thanks for responding. > Yes there is a website www.pesprograms.com but > I'm using the

Re: trouble with setting static for img and css

2017-05-11 Thread Antonis Christofides
Hello, Hopefully these drawings of mine can help. How Django static files work in production If you have trouble understanding |STATIC_ROOT|, |STATIC_URL|, |collectstatic|, and the web server’s configuration, it’s because some things are better said with pictures than with text.

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

2017-05-11 Thread Constantine Covtushenko
I am not a huge expert of django-cms. I just got it in 1 project of mine. And I ca say that all works as expected. It is difficult to describe what is wrong with your menu based on what you provided. May be you can bring some sort of screenshots here? Regards, Constantine C. On Thu, May 11,

Re: trouble with setting static for img and css

2017-05-11 Thread John Fabiani
First thanks for responding. Yes there is a website www.pesprograms.com but I'm using the code in the development and it is a virtualenv. The path I provided is in fact the real path (not my 'home'). When I run collectstatic I get none of my static files - actually I'm just looking for

Re: trouble with setting static for img and css

2017-05-11 Thread Carl
Hi Johnf, Subject: Nginx + Gunicorn + Django Example For a website using Nginx + Gunicorn + Django, try using STATIC_ROOT along with the following settings. If you login as user z, then usually your web project would be set up in a path like /home/z/pesweb/ Note: The folder, pes_django1.11,

RE: trouble with setting static for img and css

2017-05-11 Thread Matthew Pava
Typically, we set it to "/static/". STATIC_URL = "/static/" Don't forget to run your collectstatic management command. python manage.py collectstatic -Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of johnf Sent: Thursday, May 11,

trouble with setting static for img and css

2017-05-11 Thread johnf
Hi folks, I have researched this issue and I know all I have to do is read the doc's. But I can seem to get the correct path working to allow the website to find the correct files in my Media,CSS and JS folders. I'm using 1.11.x and have the following setup in OS file system. I have set

django-tables change header with variable

2017-05-11 Thread Sixtine Vernhes
Using django-tables2 I try to have 2 dimensions table. I tried to make this using accessors with the docs here But it doesn't work at all. I don't seen any example and I don't know if it's possible. Has anyone has an

Re: i dont know from where to start my first project on django

2017-05-11 Thread vitalysweb
yess, thank u for the tip ;) Le mercredi 10 mai 2017 00:39:03 UTC+2, Lachlan Musicman a écrit : > > A further tip. Your models might be (doesn't have to be): > > - Drivers > - Cars > - reservations (a Many to Many relationship with extra fields >

Re: i dont know from where to start my first project on django

2017-05-11 Thread vitalysweb
Thank you very much, I'll start with that! -- 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, send an email to django-users+unsubscr...@googlegroups.com. To post to this group,

Re: Alternative to celery

2017-05-11 Thread marcin . j . nowak
RQ is simple, stable and reliable. Redis is also a persistent storage, but you should read about this and use the best solution for your case: https://redis.io/topics/persistence You may also consider deploying a fault-tolerant Redis cluster (min. 3 nodes AFAIR) RQ has different

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

2017-05-11 Thread lisa . frischer
For me it looks more like a bug of the cms. I mean for what reason is the button if it does not work? :S Am Mittwoch, 10. Mai 2017 13:17:05 UTC+2 schrieb lisa.f...@tenag.de: > > Hi there, > I have a problem with the "in menu" section of a child-page in django. The > URL is >