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
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
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]
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 =
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
=
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
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
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
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
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:
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
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
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
28 matches
Mail list logo