Re: Django formset hidden id field

2015-07-04 Thread Javier Guerra Giraldez
On Sat, Jul 4, 2015 at 1:42 AM, Peter of the Norse wrote: > You can’t have it both ways. Either exposing the PK is a security flaw or it > isn’t. It’s just as easy for nefarious n’er-do-wells to edit the form’s URL > as a hidden field. In either case, if you are using object-level permissions,

Installing Django and Python 3.4 on a freshly registered Debian VPS

2015-07-04 Thread Christian Kleineidam
I want to install Django and Python 3.4 on a freshly registered Debian server. What are the steps I have to take given that I want to use Python 3.4 and not the debian default of 2.7? I expect I also need to install Apache, is that right? Can you point me to a good tutorial that explains all the

Error :- Debuge= True

2015-07-04 Thread Wanare Piyush 13MCC1056
I am getting this error :- You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page. My views.py file:- from django.http import HttpResponse import datetime f

Re: Error :- Debuge= True

2015-07-04 Thread monoBOT
what error? 2015-07-04 8:05 GMT+01:00 Wanare Piyush 13MCC1056 < piyush.subhashrao2...@vit.ac.in>: > I am getting this error :- > > You're seeing this error because you > have DEBUG = True in your Django settings file. Change that to False, and > Django will d

Re: Error :- Debuge= True

2015-07-04 Thread Bradford Wade
Happy to assist—a few notes/questions up-front: - It's much easier to troubleshoot if you provide the full stack-trace, as is. It helps answer questions like - Which URL were you requesting that ultimately gave you this 404? - Which URL patterns were "tried" or were regex-compar

How to restrict update of a record to the record owner in Django REST?

2015-07-04 Thread Daniel Grace
I want to restrict update of a record to the record owner in an UpdateAPIView with Django REST, but I don't know how to code the method. For example, something like this: from rest_framework import generics from testapp.serializers import UserProfileSerializer from rest_framework.renderers impor

Re: Installing Django and Python 3.4 on a freshly registered Debian VPS

2015-07-04 Thread Andreas Kuhne
2015-07-04 14:19 GMT+02:00 Christian Kleineidam < christian.kleinei...@gmail.com>: > I want to install Django and Python 3.4 on a freshly registered Debian > server. > What are the steps I have to take given that I want to use Python 3.4 and > not the debian default of 2.7? > I expect I also need

noob in Django

2015-07-04 Thread Roberth Solis Martínez
¡Hello guys! sorry it is not a question, i am new in python and Django :) I just want to introduce myself, and share more of this framework -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Post - Deploy project Django-Nginx,gunicorn,virtualenv and supervisor

2015-07-04 Thread Roberth Solis Martínez
Hi guys in this post i can learn, how to deploy app in server with django :), and i share it with us ! http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: How to restrict update of a record to the record owner in Django REST?

2015-07-04 Thread Daniel Grace
I found a solution based on the example in REST API guide: http://www.django-rest-framework.org/api-guide/permissions/#examples -- 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, sen

Not getting static files with django & heroku deployment

2015-07-04 Thread Martin Torre Castro
Hello, I'm developing a webapp with Django 1.7 (project_name is "sonata") and the project layout from the "Two scoops of Django 1.6", so I have a 3-tier basic folder tree. .├── requirements└── sonata ├── person │ └── templatetags ├── registration ├── sonata │ └── setting

Re: Not getting static files with django & heroku deployment

2015-07-04 Thread Malik Rumi
Hi Martin, First let me say unapologetically that I love PyDanny and his work and contributions to the Django community, especially Two Scoops. However, you should know that the philosophy he espouses there is very different from the one Heroku espouses. I've been told he talks about that somew