Re: Manage.py runserver is showing somthing else

2017-04-13 Thread ludovic coues
Without the stack trace, it's hard to tell what is wrong, but my first guess would be that you saved at least one file as utf8 with BOM. Or some other encoding not understood by python. Explaining what that means is a bit technical. Text file are really a list of rather small number. Each letter i

Re: Error with Tutorial - Writing your first Django app, part 1

2017-04-13 Thread ludovic coues
Lynn, you should really start your own thread. If you have an error, copy/paste it entirely, this make debugging a lot easier. And don't​ hesitate to share your code. There is a lot of things that can go wrong when we begin and most give more or less the same result. On 12 Apr 2017 9:27 pm, "Lyn

Re: Unicode decoding error

2017-04-13 Thread Mike Dewhirst
Thanks Christophe Mike On 13/04/2017 2:31 AM, Christophe Pettus wrote: On Apr 12, 2017, at 02:26, Antonis Christofides wrote: Does this mean I should globally replace "str(" with "|six.text_type(" in a 2/3 codebase?| I don't think so; afaiu this must be done for the return value of __str__

Re: Manage.py runserver is showing somthing else

2017-04-13 Thread Karthik Chowdary
Yes, we need some stack trace to know whats the problem. Please copy and paste your error. I'm not familiar with windows OS when it comes to CMD. Try this "python manage.py runserver 80" instead of "manage.py runserver" and make sure you use CMD with administrative access. On Thursday, April

Using CSRF header only?

2017-04-13 Thread Grant Means
We have a SPA that will be served from a separate domain than the API backend. The SPA posts to an authenticate endpoint and receives a token.That view is setting the CSRF token for me as follows: class Authenticate(APIView): throttle_classes = () authentication_classes = () permissi

django booking

2017-04-13 Thread RICHARD GARUBA
How, Please someone should help me with it, do I put something like a booking or reservation system like this: tuteria.com. it uses Django? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

model functions to interact with other models

2017-04-13 Thread Brandon Graves
I've been trying to find some "best practice" information on this and have been coming up dry. I have a "User" Model and an "event" model that tracks things that happens to users: Start date, End date, Status, etc. >From a purely logical Object oriented perspective, it feels right to add funct

Django custom Authentication Backend

2017-04-13 Thread ahmadyosr
Hello everyone I've been trying to create a custom Authentication Backend in Django , It worked .. And it returns an authenticated user and It Logs-in successfuly, BUT , whenever I refresh the page or move for another page it just logout ! it doesn't stuck logged in . here's the backend snap :

How To style a Django formset for fileField

2017-04-13 Thread Rohit Chopra
stackoverflow question down votefavorite I have this formset. instance = get_object_or_404(Post, user = reques