arrange date-products data on admin

2014-09-26 Thread Jun Tanaka
Hello, I have a question on a way to arrange date-products data on admin. I want to make it looke like date productA 09/26 9:00 5 09/26 10:00 8 09/26 13:00 4 09/27 9:00 9 09/27 10:00 4

Re: at django login my request.POST.get data are all empty, I struggle with what I missed there

2014-09-26 Thread Sabine Maennel
Thank you Alejandro, it must be the template somehow: I had a seperate login form: *{% extends "base/base.html" %}* *{% load crispy_forms_tags %}* *{% block head_content %}* ** ** ** *Anmeldung bei Netteachers* ** ** *{% endblock %}* *{% block main_content %}* *{% if

Re: at django login my request.POST.get data are all empty, I struggle with what I missed there

2014-09-26 Thread Alejandro Varas G.
Hi Sabine, Your code looks good. Can you post you template code? Why are you not using form `is_valid`? [0] What version of Django are you using? You can be facing that your request.POST is empty! [1] This may be not what you are looking for but you can use Django Authentication System [2]

at django login my request.POST.get data are all empty, I struggle with what I missed there

2014-09-26 Thread Sabine Maennel
This is my login view: def login_view(request,template_name='userauth/login.html'): if request.method == 'POST': username = request.POST.get('username') password = request.POST.get('password') print username print password user =

Re: Mandrill API response 500 Failed to send a message

2014-09-26 Thread Damián Adriel Pérez Valdés
Done ! DEFAULT_FROM_EMAIL = 'em...@gmail.com' Thanks On Fri, Sep 26, 2014 at 12:46 AM, Damián Pérez wrote: > Hello, > > I'm using Django 1.7 and Mandrill to send emails and work fine in my > project, but i get the next error with django-allauth: > > Mandrill API

some suggested code change in Django 1.6.7

2014-09-26 Thread Arun Marathe
= I am not certain where to post or ask this question. If this is not the right forum, I apologize, and would appreciate if someone forwards it to the right one. In that case, just send me a note where I should watch for updates on this. = This is not a feature request

Re: Best way to use a 'all' QuerySet as a dict with id first

2014-09-26 Thread James Brewer
Do you have a single list of the IDs you want? If so, you can do something like `User.objects.get(id__in=user_ids)`. This will fetch all Users whose `id` is in some list `user_ids`. Does that help? Happy hacking! James On Fri, Sep 26, 2014 at 11:43 AM, Alejandro Varas G.

Re: Best way to use a 'all' QuerySet as a dict with id first

2014-09-26 Thread Alejandro Varas G.
Hi, You should use User.objects.get(id=X) Best El 26/09/2014 15:28, "aRkadeFR" escribió: > > Hey! > > I'm having a hard time trying to reduce the number of SQL queries on a view. > > Basically, I'm fetching all my User, with User.objects.all(), and save this > queryset as

Best way to use a 'all' QuerySet as a dict with id first

2014-09-26 Thread aRkadeFR
Hey! I'm having a hard time trying to reduce the number of SQL queries on a view. Basically, I'm fetching all my User, with User.objects.all(), and save this queryset as AllUser. Then every time I need to get the user with the id = X , I'm calling a function 'get_user_from_id', that iterate

Re: Unable to delete cookie

2014-09-26 Thread Tao Bojlen
Interestingly, delete_cookie didn't add any headers at all when I added a domain - so that didn't work! On Friday, September 26, 2014 7:09:37 PM UTC+1, Daniel Rus Morales wrote: > > Did you try to remove the last subdomain and call again delete_cookie? > Just curious. > > On 26 Sep 2014, at

Re: Unable to delete cookie

2014-09-26 Thread Daniel Rus Morales
Did you try to remove the last subdomain and call again delete_cookie? Just curious. On 26 Sep 2014, at 19:56, Tao Bojlen wrote: > I fixed this by using set_cookie() with a manually entered expiry date, > rather than delete_cookie(). Additionally, if I set the domain in

Re: Open Django template in dialog box (not in window)

2014-09-26 Thread Kamal Kaur
On Fri, Sep 26, 2014 at 10:40 PM, Collin Anderson wrote: > Ahh yup. I should really test my examples :) Indeed! > The SyntaxError will make the > even handler not register. Does removing the extra parentheses fix it? No. In fact, I got the content in next page only after

Re: Unable to delete cookie

2014-09-26 Thread Tao Bojlen
I fixed this by using set_cookie() with a manually entered expiry date, rather than delete_cookie(). Additionally, if I set the domain in Django, it prefixed a period which meant that it didn't match the existing cookie. I didn't enter a domain and it used the default, which worked. On

Re: Open Django template in dialog box (not in window)

2014-09-26 Thread Collin Anderson
Ahh yup. I should really test my examples :) The SyntaxError will make the even handler not register. Does removing the extra parentheses fix it? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: How to make a phone number field mandatory like password.

2014-09-26 Thread Kakar Nyori
You can do it in the form itself. On Fri, Sep 26, 2014 at 8:49 PM, Sachin Tiwari wrote: > Hi > > I am learning django and I want to add a phone number field which would be > mandatory when we use add user button in users section. > > I tried it with blank=False or

AppRegistryNotReady error running fastcgi on IIS

2014-09-26 Thread Shawn H
So I have a project running at version 1.6 fine on IIS. I switch it to use 1.7, and it quits working. Specifically, it's trying to translate something using ugettext, but it's not in my code. It seems to be trying to translate something using dateformat.py from django. I don't understand what's

Re: Django 1.7 not working with mysql-connector-python 1.1.6 & Python 3.3 ?

2014-09-26 Thread yamil moreno
No hablo inglés. Tenía el mismo problema. 1 - Lo que hice fue actualizar mi versión de Python (Python 2.7.* a Python 3.3.5). 2 - Descargue el driver de MySQL para Python 3.3.* ( mysql-connector-python-2.0.1-py3.3.msi ) desde http://dev.mysql.com/downloads/file.php?id=453803. 3 - Deje los

How to make a phone number field mandatory like password.

2014-09-26 Thread Sachin Tiwari
Hi I am learning django and I want to add a phone number field which would be mandatory when we use add user button in users section. I tried it with blank=False or null=False but it would not work for me. I am also using django-phone-number field package. Thanks -- You received this

Re: Django 1.7 not working with mysql-connector-python 1.1.6 & Python 3.3 ?

2014-09-26 Thread yamil moreno
No hablo inglés. Tenía el mismo problema. 1 - Lo que hice fue actualizar mi versión de Python (Python 2.7.* a Python 3.3.5). 2 - Descargue el driver de MySQL para Python 3.3.* ( mysql-connector-python-2.0.1-py3.3.msi ) desde http://dev.mysql.com/downloads/file.php?id=453803. 3 - Deje

Re: Upgrading Django (to 1.7)

2014-09-26 Thread Fred Stluka
Bob, You can control the order in which migrations run. For South, see "depends_on" and "needed_by": - http://south.readthedocs.org/en/latest/dependencies.html For Django 1.7 migrations, see "dependencies": - https://docs.djangoproject.com/en/dev/topics/migrations/#dependencies --Fred

Re: 1 named url per page/screen?

2014-09-26 Thread Daniel Roseman
On Thursday, 25 September 2014 22:43:43 UTC+1, Malik Rumi wrote: > > 1. I am trying to understand the documentation here: > https://docs.djangoproject.com/en/1.7/topics/http/urls/#naming-url-patterns >

Re: Upgrading Django (to 1.7)

2014-09-26 Thread bobhaugen
Andrew, thanks for the article, and the more-to-come. When you get to data migrations, you might want to cover a problem I ran into with them: when I had a data migration in the middle of a sequence of other migrations, and then later wanted to set up a new environment, which meant running all

Suggestions on autocomplete solutions for non-model forms not in the admin

2014-09-26 Thread Tiago Almeida
Hi, I'd like to implement an autocomplete functionality for a text field that is defined via a normal form class (forms.Form, not a ModelForm) and rendered automatically via cryspy-forms (although this is not a requirement). Autocomplete suggestions should have some kind of template (not simply

Re: Django installation issue on Win 7 Pro 64 Bits

2014-09-26 Thread Ivo Roupa
Ezequiel, I followed your sugestion and run cmd as administrator (which I didn't know it was possible) and everything went fine. I have already Django installed and working. I'm already using PyCharm Community 3.4. Thank you a lot. Ivo On Friday, 26 September 2014 04:29:15 UTC+1, Ezequiel

Re: Open Django template in dialog box (not in window)

2014-09-26 Thread Kamal Kaur
On Fri, Sep 26, 2014 at 1:49 AM, Collin Anderson wrote: > $("#popup").dialog({modal: true}).dialog('open')).load(this.href) > > I've updated my blog post. This is opening the template on next page :/ And you need to edit the post: $("#popup").dialog({modal:

Re: Upgrading Django (to 1.7)

2014-09-26 Thread Benjamin Scherrey
Great summary - looking forward to the rest. Especially like some of the backgrounder insights also explaining "why" certain things were done. I think this often helps developers understand and use features better than even the otherwise excellent and detailed online docs. Wonder if the Django doc

Re: Customize admin look & fee (Django 1.7 / Windows)

2014-09-26 Thread Dario Chemello
Uhm. site_title|default:_('Dario Administration') Is site_title valorized??? I think, if yes, that the problem is only there. But on tutorial, imho, this part is not so clear. Il giorno venerdì 26 settembre 2014 08:37:58 UTC+2, Dario Chemello ha scritto: > > Yes! > And I change on the

Re: Customize admin look & fee (Django 1.7 / Windows)

2014-09-26 Thread Dario Chemello
Yes! And I change on the template only the "title": {% extends "admin/base.html" %} {% block title %}{{ title }} | {{ site_title|default:_('Dario Administration') }}{% endblock %} {% block branding %} {{ site_header|default: _('Dario Administration') }} {% endblock %} {% block nav-global