Problem UnicodeDecodeError when run createsuper

2017-02-04 Thread Lucas Simon Rodrigues Magalhaes
Hello everyone, I have a problem when run createsuperuser.py command in python 3.4. How can I solve it definitely? Look the code: https://gist.github.com/lucassimon/7837dce442e3a4a090ce4d155b4a2035 -- You received this message because you are subscribed to the Google Groups "Django users" gr

Re: How to set response headers in DetailView

2014-08-22 Thread Lucas Simon Rodrigues Magalhaes
, 22 de agosto de 2014 20h29min47s UTC-3, André Luiz escreveu: > > I did it two days ago rewriting the render_to_response method. > > for reference > http://stackoverflow.com/questions/1628/send-a-file-through-django-class-based-views/16287950#16287950 > > > 2014-08-

How to set response headers in DetailView

2014-08-22 Thread Lucas Simon Rodrigues Magalhaes
Hello, I see this tutorial [1] to control the response header and caching of pages in django. So I'm trying to enable this response header in a generic class DetailView. I did a search and found this code [2] at the end of the page and also the source code [3] of View. But are confused and

Re: Problem to access admin url in server production

2014-07-06 Thread Lucas Simon Rodrigues Magalhaes
Nginx.conf and gunicorn.conf are int this link [1]. And I use Django - 1.6.5 https://gist.github.com/lucassimon/0b982d228490bbd263ce Em domingo, 6 de julho de 2014 21h39min28s UTC-3, Lucas Simon Rodrigues Magalhaes escreveu: > > > > Hi, > > I has a problem when

Problem to access admin url in server production

2014-07-06 Thread Lucas Simon Rodrigues Magalhaes
Hi, I has a problem when I access the admin url the nginx redirect my domain to https://xxx.com.br/admin. I can't fix this error, I try everything. So, How to disable it ? Forbidden (403) CSRF verification failed. Request aborted. Help Reason given for failure: Referer checking faile

Error to customize a user

2014-04-30 Thread Lucas Simon Rodrigues Magalhaes
Hello, I have a problem when rendering my admin after creating a custom user. I followed the tutorial of Django [1] documentation and also Subclass AbstractBaseUser section of the book Twoo Scoops of Django. The error is described in this gist [2] and the code is in this repository [3]. Th

Re: Class Based View returning blank post data

2013-07-02 Thread Lucas Simon
urlencoded. You probably want to use > request.body ( > https://docs.djangoproject.com/en/1.5/ref/request-response/#django.http.HttpRequest.body) > > to get at the raw JSON. To get it as a dictionary object in Python, import > the json module, then do: > > >>> data = json.loads(r

Re: Class Based View returning blank post data

2013-07-02 Thread Lucas Simon
in/bash', 'SHLVL': '2', 'SSH_AUTH_SOCK': '/run/user/1000/keyring-wmgVNG/ssh', 'TERM': 'xterm-256color', 'TZ': 'America/Denver', 'USER': 'lucas', 'USERNAME': 'lucas', 'WIN

Re: Class Based View returning blank post data

2013-07-02 Thread Lucas Simon
s). > > Likewise, unless you submitted POST data with your request, you should > expect request.POST to be empty. > > _Nik > > On 7/2/2013 2:03 PM, Lucas Simon wrote: > > Hi, > > I think I found a bug and was not sure where to post it other than here. > I hav

Class Based View returning blank post data

2013-07-02 Thread Lucas Simon
Hi, I think I found a bug and was not sure where to post it other than here. I have created a view defined as follows from django.http import HttpResponse, Http404 from django.views.generic.base import View class TestView(View): def post(self, request, *args, **kwargs): print "*

Error on use django-fluent-dashboard app

2013-04-23 Thread Lucas Simon Rodrigues Magalhaes
Hi, I am using django-fluent-dashboard app instead grapelli but I got this error, and I do not know how to solve it. I follow these tutorial [1] and django version is 1.4.5 ImportError at /admin/ No module named menu Request Method: GET Request URL: http://localhost:8000/admin/ Django V