Re: Django not serving static files with even after collectstatic

2017-07-02 Thread Antonis Christofides
Hello, Take a look at https://djangodeployment.com/2016/11/21/how-django-static-files-work-in-production/ and if you still have problems show us the related nginx or apache configuration. Regards, Antonis Antonis Christofides http://djangodeployment.com On 2017-07-03 02:25, Dennis Gathagu

Re: Django not serving static files with even after collectstatic

2017-07-02 Thread Dylan Reinhold
django does not (should not) serve your static files. You want your web server to serve up those files, so you dont have the overheard of url routing for files that don't need to run any python code to display. Dylan On Sun, Jul 2, 2017 at 4:25 PM, Dennis Gathagu wrote:

Django not serving static files with even after collectstatic

2017-07-02 Thread Dennis Gathagu
i'm having problems with django static files in production.I know django requires that you collectstatic during deployment, which i did. The real problem comes when i try to access my page on the browser and i get a 403 forbidden error on all static files. I tried changing my permissions and

Re: Django Smart Selects - What does 'models world readable' mean??

2017-07-02 Thread Jani Tiainen
It means that there are no permission checks implied on models - so data you expose to select fields are readable by anyone for example by using curl tool. 2.7.2017 7.16 ip. "Mark Phillips" kirjoitti: > I need to chain some select boxes in my admin forms to make data

Django Smart Selects - What does 'models world readable' mean??

2017-07-02 Thread Mark Phillips
I need to chain some select boxes in my admin forms to make data input less error-prone and easier. There are quite a few projects like django-smart-selects out there, but django-smart-selects seems to be quite easy to implement. However, I don't understand the implications of the warning for

Re: Creating list of sub-objects where...

2017-07-02 Thread softie . coder
Am Sonntag, 2. Juli 2017 12:09:55 UTC+2 schrieb Derek: > > There is almost too much information here, but not enough actual details > on your errors to help someone help you debug your logic. > Thanks for your answer. But I'm afraid that if I post queryset lines I tryed, it will be more

Re: Creating list of sub-objects where...

2017-07-02 Thread Derek
There is almost too much information here, but not enough actual details on your errors to help someone help you debug your logic. One thing I can suggest is that the admin functionality should look more like: class ExportFunction(admin.ModelAdmin): ... actions = ['export_all_as_yaml',