Re: django.models problem

2014-09-07 Thread Martin Spasov
or easy_install pip and then pip install pillow why use pip instead of easy_install can be seen here Martin! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubsc

Re: Django and AJAX jQuery

2014-09-01 Thread Martin Spasov
Perfect, thank you On 9/1/14, Collin Anderson wrote: > If the url name is not guessable (for example, it includes a secure random > string, like django's forgot password url), that should provide enough > security. > > Though you can always pass in the csrf token using javascript: > https://docs.

Django and AJAX jQuery

2014-09-01 Thread Martin Spasov
I am completely new to AJAX and I was wondering. I have a a view that ajax is posting to but in order for the request to be processed in the view correctly i have to add csrf_exempt decorator to that view, but is that safe? I named the url for that view with a name that would not be guessable,

Re: Looking for an email-based tutor

2014-08-19 Thread Martin Spasov
Hello study! My name is Martin and like you I am beginner. I am certainly not qualified to apply for this but would love to share what i know and to have some1 to comunicate with thats around my level of knowledge (i am currently building an commerce website as well). So suburb4nfi...@gmail.co

Re: Question on creating a contact form app using bootstrap template

2014-08-19 Thread Martin Spasov
Maybe you could copy the classes and id's from the template and put them in your form like this : class SomeForm(forms.Form): name=forms.CharField(attrs={'class':'form-control', 'id':'name'}) message=forms.CharField(widget=forms.TextInput(attrs={'class':'the class name thats on the temp

Updating database object after a Signal is not working

2014-08-19 Thread Martin Spasov
So i am using django-paypal for a simple eCommerce website and my goal is to change the IPN's buyer fields to match the logged in user's registration info after a signal is received from paypal. Now I am almost there but there is something thats escaping me ... Here is the code models.py def

Tango with Django chapter 7 Exercises

2014-07-06 Thread Martin Spasov
I am doing the exercises in chapter 7 and I have to create an add page link on every category page that would take the users to a new page on which they can enter name and url to add to certain category if the category in que

admin ViewDoesNotExistError

2014-06-28 Thread Martin Spasov
Hello guys, I am following the Tango with Django tutorial and cant access my admin site. For the past hour and a half I was trying to figure out why i get the following