programming error in group by clause

2015-01-24 Thread satya
Need some help on fixing the following error. I recently moved to 1.8alpha version from an older version django-e9d1f11 and I started seeing this error. Looks like the way group by is constructed has changed. Here is the model that I have. class everydaycost(models.Model): cost =

Re: Downloading thumbnails and replacing them with full images

2015-01-24 Thread Fred Stluka
+1 for easy-thumbnails. We use it and it works great. Allows the user to upload images, optionally crop them during the upload, manages the full-size and thumbnail files on the file system with their names in the DB, etc. All automatic and all easy. --Fred

Re: CSRF verification failed. Request aborted.

2015-01-24 Thread Stephen J. Butler
Have you checked the rendered HTML in the browser? Is the CSRF element present? Is there any JavaScript that could be doing pre-processing on the form? Did you open up the browser's inspector and verify that the POST request actually included the CSRF key/value? Is it the correct value? On Sat,

Re: CSRF verification failed. Request aborted.

2015-01-24 Thread Cornelio Royer Climent
Yes I have MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware',

Re: CSRF verification failed. Request aborted.

2015-01-24 Thread Larry Martell
On Sat, Jan 24, 2015 at 2:51 PM, Cornelio Royer Climent wrote: > HI. SOMEBODY COULD YOU HELP WITH THIS ERROR? > > I THINEK THAT I SAW EVERYTHING, BUT I DON'T FIND THE ERROR . > > > > > {{ words.english }} > > > {% if error_message %}{{ error_message }}{% endif

CSRF verification failed. Request aborted.

2015-01-24 Thread Cornelio Royer Climent
HI. SOMEBODY COULD YOU HELP WITH THIS ERROR? I THINEK THAT I SAW EVERYTHING, BUT I DON'T FIND THE ERROR . {{ words.english }} {% if error_message %}{{ error_message }}{% endif %} {% csrf_token %} {% for opcion in opciones %} {{ opcion.d_spanish }} {% endfor %} Forbidden

Re: Django: How to customize the admin form for specific model

2015-01-24 Thread Thomas Rega
You could get this things done by customization of the corresponding admin template: templates/admin/change_form.html This can be done per app and per model: https://docs.djangoproject.com/en/1.7/ref/contrib/admin/#templates-which-may-be-overridden-per-app-or-model Good Luck TR 2015-01-24 20:31

Django: How to customize the admin form for specific model

2015-01-24 Thread Shoaib Ijaz
First of all I apologize the question title can be unrelated to my query. I am also confused what I want to do because I am less familiar with django. I want to create simple comment system. The requirement is clear that user can post comment with multiple images.Every comment should have

Re: Downloading thumbnails and replacing them with full images

2015-01-24 Thread Larry Martell
On Fri, Jan 23, 2015 at 7:44 PM, Russell Keith-Magee wrote: > > On Sat, Jan 24, 2015 at 12:20 AM, Larry Martell > wrote: >> >> I have a django app that downloads 100's of images. To increase the >> performance, I want to change it so that it

Smoke tests

2015-01-24 Thread Tomáš Ehrlich
Hello, last few weeks I’ve been thinking about implementing smoke tests into my deployment process. Last week I wrote simple test runner (https://github.com/djentlemen/django-smoked ), but still I’m missing methodology *what* should I test and

Re: unable to open project

2015-01-24 Thread patrickbeeson
What do you mean by open? On Saturday, January 24, 2015 at 3:59:55 AM UTC-5, abhishek kumar wrote: > > I am unable to open my project again. As i am using virtual enviroment in > windows. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: How do you link your Django project to a domain

2015-01-24 Thread patrickbeeson
You might also check out Google's recently launched domain registrar at domains.google.com. On Saturday, January 24, 2015 at 2:01:43 AM UTC-5, djangocharm2020 wrote: > > pretty much have a project built but now want to purchase a domain to link > it live . Do you guys have any suggestions on

Re: How do you link your Django project to a domain

2015-01-24 Thread Majo
I'd say compare prices and then decide (For example, check out uniteddomains.com. A .com sets you back $9.99/year there.). If you're planning to get something more exotic than .com or .org, etc. You might be able to save some money by going for a local provider (e.g. if you want a .de,

A sample project showing server side rendering with React and Django

2015-01-24 Thread Ustun Ozgur
Last year I gave a conference talk at Djangocon EU where I introduced React.js to the community. Since then, I have been getting some emails asking for some sample code. I just published a sample project that simply uses a node.js server to delegate server side rendering from Django. Hope that

unable to open project

2015-01-24 Thread abhishek kumar
I am unable to open my project again. As i am using virtual enviroment in windows. -- 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, send an email to

Wanted: Best practices for setting "_" (to ugettext/ugettext_lazy)

2015-01-24 Thread Torsten Bronger
Hallöchen! This is not about where to use ugettext/ugettext_lazy. I know that. :-) But I was fed up with all those "_ = ugettext" scattered in my code and tried to find a more systematic approach. The following test program runs through: ugettext = lambda x: x ugettext_lazy = lambda