[ANNOUNCE] Django bugfix releases issued: 1.9.6 and 1.8.13

2016-05-02 Thread Tim Graham
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2016/may/02/bugfix-releases/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubsc

Re: Django formset security and injecting PKs in formset hidden id fields

2016-05-04 Thread Tim Graham
How would you keep track of which objects were in the original formset? If you generate the same queryset in the formset for both formset creation and formset submission you shouldn't run into any security issues. On Tuesday, May 3, 2016 at 2:23:12 PM UTC-4, Rob Ladd wrote: > > I've noticed some

Re: Ubuntu 16.04 Django 1.9.6 & MySql

2016-05-06 Thread Tim Graham
It helps if you tell us the actual errors you encountered. Maybe http://stackoverflow.com/questions/36796167/upgraded-to-ubuntu-16-04-now-mysql-python-dependencies-are-broken helps? On Thursday, May 5, 2016 at 2:21:50 PM UTC-4, Mauro Miotello wrote: > > I cannot install mysqlclient on this env

Re: Why not working exampe from Django docs

2016-05-18 Thread Tim Graham
It might be that the meta class should be removed (or at least, app_label should refer to the actual label of your app): class Meta: app_label = 'mysessions' Does it work if you do that? Do you have the app in INSTALLED_APPS? On Wednesday, May 18, 2016 at 8:39:48 AM UTC-4, Seti Volkylany w

[ANNOUNCE] Django 1.10 alpha 1 released

2016-05-20 Thread Tim Graham
We've made the first release on the way to Django's next major release, Django 1.10! With two and a half months until the scheduled final release, we'll need timely testing from the community to ensure an on-time and stable release. Check out the blog post: https://www.djangoproject.com/weblog/

Re: Why are models must for permissions?

2016-06-01 Thread Tim Graham
It's a know limitation: https://code.djangoproject.com/ticket/24754 Maybe http://stackoverflow.com/questions/13932774/how-can-i-use-django-permissions-without-defining-a-content-type-or-model helps. On Wednesday, June 1, 2016 at 10:32:12 AM UTC-4, Ankush Thakur wrote: > > Why are all permissio

Re: Django websites for study and improvement

2016-06-01 Thread Tim Graham
You might enjoy looking at djangoproject.com itself: https://github.com/django/djangoproject.com/ On Tuesday, May 31, 2016 at 1:56:39 PM UTC-4, Ankush Thakur wrote: > > Are there any large-ish (I mean, beyond blogs, polls, etc.) websites (web > apps?) out there that are open source and can help

[ANNOUNCE] Django bugfix release issued: 1.9.7

2016-06-04 Thread Tim Graham
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2016/jun/04/bugfix-release/ -- 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

Re: Loader Template without context (request), Use Case and Proposal

2016-06-06 Thread Tim Graham
Doesn't seem too likely to me as all user-facing rendering functions would have to accept (require?) the request argument. By the way, not sure if this post might have been meant for the django-developers mailing list? On Monday, June 6, 2016 at 6:02:26 AM UTC-4, aRkadeFR wrote: > > > Hello all

Re: template tag don't work ==

2016-06-09 Thread Tim Graham
A sample project to reproduce the problem is probably needed. On Thursday, June 9, 2016 at 12:33:24 PM UTC-4, Ing. Jaime Sanchez wrote: > > Help please!! > > I need do like this > in django 1.9 template tag > > {% if model1.obj == model2.obj %} > print ok > {% else %} > print not OK > {% endif %}

Re: Where is this warning coming from?

2016-06-09 Thread Tim Graham
timezone.now().date() returns datetime.date() which doesn't have a timezone. You can use the date lookup in Django 1.9+: https://docs.djangoproject.com/en/stable/ref/models/querysets/#date On Thursday, June 9, 2016 at 7:43:33 AM UTC-4, jorr...@gmail.com wrote: > > I have a view that calculates s

[ANNOUNCE] Django 1.10 beta 1 released

2016-06-21 Thread Tim Graham
We've made the second release on the way to Django's next major release, Django 1.10! With a month and a half until the scheduled final release, we'll need timely testing from the community to ensure an on-time and stable release. Check out the blog post: https://www.djangoproject.com/weblog/20

Fellow Report - June 25, 2016

2016-06-25 Thread Tim Graham
Triaged --- https://code.djangoproject.com/ticket/26779 - i18n_javascript should take extra_context as argument (accepted) https://code.djangoproject.com/ticket/26781 - SQLite crashes when changing the case of db_table (accepted) https://code.djangoproject.com/ticket/26794 - Migrating F

Re: Django tests failing for development env

2016-06-28 Thread Tim Graham
If you're running the tests at the checkout point mentioned in the tutorial note, "If you’re using Python 3.5+, there will be a couple failures related to deprecation warnings that you can ignore. These failures have since been fixed in Django." On Tuesday, June 28, 2016 at 7:49:43 PM UTC-4, pr

Re: Contribute to Django - Python 3 or Python 2

2016-06-28 Thread Tim Graham
You can use either, but use Python 3. You can rely on the continuous integration server to test your pull request on Python 2 and debug any issues Can you given an example of "most places python2 is used"? In fact, the tutorial says, "This tutorial assumes you are using Python 3." On Tuesday,

Re: error logging in after updating to 1.9

2016-06-28 Thread Tim Graham
Did you upgrade Django version by version as suggested in our upgrade guide [0] and fix deprecation warnings along the way? That might help alert you to the issue. [0] https://docs.djangoproject.com/en/dev/howto/upgrade-version/ On Tuesday, June 28, 2016 at 4:05:06 PM UTC-4, larry@gmail.com

Re: Confused about this aggregation example from the docs

2016-06-28 Thread Tim Graham
'book' (the model name) is the default value of ForeignKey.related_name for the publisher field on Book. class Book(models.Model): publisher = models.ForeignKey(Publisher, on_delete=models.CASCADE) https://docs.djangoproject.com/en/stable/ref/models/fields/#django.db.models.ForeignKey.relate

Re: How to use password_change function from django.contrib.auth.views

2016-06-28 Thread Tim Graham
You need a url() with name='password_change_done' -- instead you wrote 'change_password_done'. On Monday, June 27, 2016 at 11:39:23 AM UTC-4, Juan Sebastian Avila Rodriguez wrote: > > I tried to implement the password_change view but is not working. I only > add the code below to the urls.py: >

Re: AUTH_PASSWORD_VALIDATORS not used when creating new users?

2016-06-28 Thread Tim Graham
Validation happens in the management commands (createsuperuser, changepassword) as well as the user creation forms. We assume that if you're creating a user using the command line, you know what you're doing. If you want to open a documentation ticket, we could add a note about this. On Monday,

Re: How by help Python generate random image with vector figures.

2016-06-28 Thread Tim Graham
This probably isn't the best place to ask since it isn't Django related. On Tuesday, June 28, 2016 at 6:16:20 AM UTC-4, Seti Volkylany wrote: > > I need a pure python module from PyPI without additional packages on my OS. > -- You received this message because you are subscribed to the Google Gr

Re: Serving static files

2016-06-28 Thread Tim Graham
The concerns about needing a separate server are likely overblown. In particular, Whitenoise is a popular solution for static file serving using Python. See its FAQ: http://whitenoise.evans.io/en/stable/#isn-t-serving-static-files-from-python-horribly-inefficient On Tuesday, June 28, 2016 at 9:

Re: How can I hide Groups and Permissions on User deatils in Django Admin?

2016-07-01 Thread Tim Graham
Create your own ModelAdmin subclass without those fields following the process outlined here: https://docs.djangoproject.com/en/stable/topics/auth/customizing/#extending-the-existing-user-model On Friday, July 1, 2016 at 1:48:32 PM UTC-4, Fellipe Henrique wrote: > > How can I hide Groups and Per

Re: def__str__(self) not working properly

2016-07-01 Thread Tim Graham
Hm, not much can go wrong there. Just to be sure, did you start the shell after you added the __str__ method? On Friday, July 1, 2016 at 5:52:12 AM UTC-4, gary719_list1 wrote: > > Hi all; > > I am working on the official django tutorial > (https//docs.djangoproject.com/en/1.9/intro/tutorial/02/

Re: parallel test running throwing pickleError

2016-07-01 Thread Tim Graham
A sample project to reproduce would be helpful. On Thursday, June 30, 2016 at 5:53:25 PM UTC-4, Harry Moreno wrote: > > Any progress made on this front? I'm seeing this too in a Django 1.9 app > using python 2.7 > > On Monday, February 29, 2016 at 3:24:13 PM UTC-5, girish ramnani wrote: >> >> Sor

Re: AUTH_PASSWORD_VALIDATORS not used when creating new users?

2016-07-01 Thread Tim Graham
require a password that conforms > with AUTH_PASSWORD_VALIDATORS there, but not with a function I would use in > production code. > > On Tuesday, June 28, 2016 at 10:00:06 PM UTC-4, Tim Graham wrote: >> >> Validation happens in the management commands (createsuperuser, &

Re: error logging in after updating to 1.9

2016-07-01 Thread Tim Graham
Perhaps the issue is a bit different as I don't see that same behavior. On Thursday, June 30, 2016 at 6:56:54 AM UTC-4, larry@gmail.com wrote: > > It seems like in 1.6 template code like this: > > {% if error %} > ... > {% endif %} > > Was OK. But in 1.9 if error is not defined it throws a

Re: Modified postgresql backend

2016-07-06 Thread Tim Graham
Looks reasonable to me -- want to submit a pull request? Maybe "self." was lost in a refactoring. If you can find where that happened, it's always helpful. On Wednesday, July 6, 2016 at 10:27:41 AM UTC-4, Alexander Scherbatey wrote: > > Hello, > > I need to create my own modified backend based o

Re: Django PostGis BUG?

2016-07-15 Thread Tim Graham
This query is also duplicated on Trac: https://code.djangoproject.com/ticket/26893 (closed as "worksforme"). For future reference, please ask "is it a bug?" questions on django-users and wait for confirmation that it is a bug before creating a Trac ticket. On Friday, July 15, 2016 at 6:26:27 AM

Re: Disabling migrations when running tests

2016-07-16 Thread Tim Graham
You can use MIGRATION_MODULES for this: https://docs.djangoproject.com/en/1.9/ref/settings/#migration-modules Also, there's a ticket to simplify disabling of migrations during tests further: https://code.djangoproject.com/ticket/25388 On Saturday, July 16, 2016 at 6:44:26 PM UTC-4, marcin@g

Re: Disabling migrations when running tests

2016-07-17 Thread Tim Graham
> > BTW: Would you consider bringing back patch > https://github.com/django/django/commit/157d7f1f1de4705daddebb77f21bd7097a74513d > > ? This patch is what I've asking for months. > > Marcin > Yes -- that patch didn't work properly as noted on the ticket. We'll certainly include a working pat

Re: admin css not working

2016-07-17 Thread Tim Graham
Do you have DEBUG=False in your settings? That disables automatic serving of static files: https://docs.djangoproject.com/en/stable/howto/static-files/#serving-static-files-during-development On Sunday, July 17, 2016 at 6:52:23 AM UTC-4, pritesh singh wrote: > > The stylesheet http://127.0.0.1:8

[ANNOUNCE] Django security releases issued: 1.10 release candidate 1, 1.9.8, and 1.8.14

2016-07-18 Thread Tim Graham
Today the Django team issued 1.10 release candidate 1, 1.9.8, and 1.8.14 as part of our security process. This releases address a security issue, and we encourage all users to upgrade as soon as possible. Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2

Re: Running Django tests for postgres_tests

2016-07-20 Thread Tim Graham
You need to use a custom settings module that uses the postgresql database backend. https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#using-another-settings-module On Tuesday, July 19, 2016 at 11:37:35 PM UTC-4, premdjango wrote: > > I'm trying to run django t

Re: Is it possible to share a DB between Django and another application

2016-07-20 Thread Tim Graham
Yes, databases can accept connections from different applications. On Wednesday, July 20, 2016 at 11:31:48 AM UTC-4, Albert180 wrote: > > Hello I wanted to know if it's possible to share a Database between a > Django App ( The WebApp) and another external App which processes the Data ? > -- You

[ANNOUNCE] Django 1.10 and 1.9.9 released

2016-08-01 Thread Tim Graham
Django 1.10 and a bug fix release for the 1.9 series (1.9.9) are now available: https://www.djangoproject.com/weblog/2016/aug/01/django-110-released/ With the release of Django 1.10, Django 1.9 has reach end of mainstream support. It will continue to receive security and data loss fixes for an

Re: How to start Django app with apache server

2016-08-05 Thread Tim Graham
Are you following these instructions? https://docs.djangoproject.com/en/stable/howto/deployment/wsgi/modwsgi/ On Friday, August 5, 2016 at 3:44:27 PM UTC-4, Terry Sankar wrote: > > apache2.4 working , postgresql working , the django app is working - how > do I start the app in apache instead of

Re: Django migrations taking all the memory on Django 1.9

2016-08-06 Thread Tim Graham
As long as your tests don't rely on any data migrations, you can set MIGRATIONS_MODULES['app'] = None for all apps in a test settings file as described in https://docs.djangoproject.com/en/stable/ref/settings/#std:setting-MIGRATION_MODULES to disable migrations while testing. There's a ticket

Re: deprecated urls as strings: problem adding second + urls to main urls.py file

2016-08-06 Thread Tim Graham
You're not missing something. You should imports. Sorry you don't like the look of it, but that's Python. On Saturday, August 6, 2016 at 8:42:29 AM UTC-4, Andrew Emory wrote: > > I am having trouble with how I would intuitively get my url patterns to > work, by listing the actual path to the vie

Re: deprecated urls as strings: problem adding second + urls to main urls.py file

2016-08-08 Thread Tim Graham
t; > > On Saturday, August 6, 2016 at 10:05:25 AM UTC-5, Tim Graham wrote: >> >> You're not missing something. You should imports. Sorry you don't like >> the look of it, but that's Python. >> >> On Saturday, August 6, 2016 at 8:42:29 AM UTC-4, Andr

Re: Django migrations taking all the memory on Django 1.9

2016-08-08 Thread Tim Graham
t is what that's about, > but sadly it's not even merged in master now from my understanding). > > PS. so to clarify our tests do rely on migrations (and there are some data > migrations too) but since we normally use --keepdb anyway we definitively > not need to run only a

Re: Adding custom Template downloaded

2016-08-08 Thread Tim Graham
I'm not sure what you're asking. Does this documentation proposal help? https://github.com/django/django/pull/6720 On Monday, August 8, 2016 at 9:55:23 AM UTC-4, Timothy Steele wrote: > > I want to get a step by step process on how to add a django template > downloaded > so that i can over rid

Re: Adding custom Template downloaded

2016-08-08 Thread Tim Graham
What template did you download? What template are you trying to replace? On Monday, August 8, 2016 at 12:41:06 PM UTC-4, Timothy Steele wrote: > > > Please What I am Talking about is this > i have download a template from www.github.com, but i can not configure > it and i need a help please >

Re: Django 1.10

2016-08-09 Thread Tim Graham
Remove the strings at the start of each urlpatterns, e.g. 'matricula.views.Auth'. That's obsolete from when you were using patterns(). urlpatterns should be a list of url()s. On Tuesday, August 9, 2016 at 11:57:09 AM UTC-4, ludovic coues wrote: > > What you are writing is not valid python syntax

Re: (Is it a bug?) TruncMonth does not work when there is "ordering" in the model Meta (Django 1.10)

2016-08-10 Thread Tim Graham
Default ordering affects aggregation queries like that: https://docs.djangoproject.com/en/stable/topics/db/aggregation/#interaction-with-default-ordering-or-order-by On Wednesday, August 10, 2016 at 3:44:33 PM UTC-4, Neto wrote: > > I'm trying to get number of records per month, but Django does n

Re: (Is it a bug?) TruncMonth does not work when there is "ordering" in the model Meta (Django 1.10)

2016-08-10 Thread Tim Graham
10 de agosto de 2016 17:17:31 UTC-3, Tim Graham escreveu: >> >> Default ordering affects aggregation queries like that: >> https://docs.djangoproject.com/en/stable/topics/db/aggregation/#interaction-with-default-ordering-or-order-by >> >> On Wednesday, August 10, 201

Re: "add another" for inline in admin disappeared in 1.10

2016-08-11 Thread Tim Graham
Are you using any third-party enhancements that might need to be updated? I see "Add another Choice" at a page like /admin/polls/question//change/ for the tutorial. More specifics about how to reproduce the issue are needed. On Thursday, August 11, 2016 at 4:55:04 PM UTC-4, Chris Gray wrote: >

Re: Adding new models to test Django unit test case

2016-08-15 Thread Tim Graham
Migrations will run automatically but you need to add the models to the migrations in tests/postgres_tests/migrations. On Sunday, August 14, 2016 at 10:53:45 PM UTC-4, premdjango wrote: > > I'm implementing a fix for a ticket-26819 and need to add new models to > test it. > > The new models were

Re: Adding new models to test Django unit test case

2016-08-15 Thread Tim Graham
ons but dont see the manage.py module > anywhere. > > On Monday, August 15, 2016 at 7:18:33 AM UTC-4, Tim Graham wrote: >> >> Migrations will run automatically but you need to add the models to the >> migrations in tests/postgres_tests/migrations. >> >> On Sun

Re: Adding new models to test Django unit test case

2016-08-15 Thread Tim Graham
the test is running by default against sqllite. How do I run it > against the postgres? > > On Monday, August 15, 2016 at 1:48:48 PM UTC-4, premdjango wrote: >> >> It worked..thanks. >> >> On Monday, August 15, 2016 at 1:12:52 PM UTC-4, Tim Graham wrote: >>

Re: Database data caching in Django?...

2016-08-17 Thread Tim Graham
I did a quick search and found https://github.com/BertrandBordage/django-cachalot. Does it meet your requirements? On Wednesday, August 17, 2016 at 3:34:33 PM UTC-4, Fred Stluka wrote: > > Django users, > > Is there an easy way to enable an automatic write-through > database cache in Django? >

Re: Python dictionaries saved to models

2016-08-17 Thread Tim Graham
You need to transform your data dictionary so that the keys match the models field names and then you can use: players_data = [{'number': 1, ...}, {...}] for data in players_data: Player.objects.bulk_create(**data) (or something similar with bulk_create()) https://docs.djangoproject.com/en

Re: MIDDLEWARE vs MIDDLEWARE_CLASSES: 'WSGIRequest' object has no attribute 'user'

2016-08-18 Thread Tim Graham
Are you running Django 1.10? It looks like your MIDDLEWARE setting is ignored which suggests you might be using an older version. On Wednesday, August 17, 2016 at 6:43:14 PM UTC-4, Andrew Emory wrote: > > My settings.py file has the default MIDDLEWARE settings generated by > django-admin startap

Re: Python dictionaries saved to models

2016-08-18 Thread Tim Graham
I guess where I'm fuzzy is where to >> exactly put that code. >> >> Do I put it in the models.py? class.py? and how do I execute? >> >> That is the final piece of the puzzle for me. >> >> Thanks so much. >> >> Aaron >> >> On

Re: Odd problem: some database updates do not appear on other pages until server restart

2016-08-18 Thread Tim Graham
I'd guess you're doing a query for the form field's choices at the module level which will be executed once and cached for as long as the server runs. See if https://docs.djangoproject.com/en/stable/ref/forms/fields/#fields-which-handle-relationships helps, otherwise please post the code for t

Re: Python dictionaries saved to models

2016-08-18 Thread Tim Graham
o this error: >> >> Enter code here...NameError: name apps is not defined >> >> That is coming from this line in the migration: >> >> Players = apps.get_model("team","Players") >> >> This is a copy/paste from the documentation.

Re: query values() calls don't use transforms as filter() does

2016-08-18 Thread Tim Graham
I merged support for expressions in values() a few hours ago: https://github.com/django/django/commit/39f35d4b9de223b72c67bb1d12e65669b4e1355b If that doesn't meet your needs, can you give an idea of what the QuerySet you want would look like? On Thursday, August 18, 2016 at 5:10:41 PM UTC-4, R

Re: Starting new project -- version 1.10

2016-08-19 Thread Tim Graham
Don't use the same name for your app and project. When you "startproject crm", the project settings.py, urls.py, and wsgi.py are placed in a module named "crm" so you can't use the same name for an app. On Friday, August 19, 2016 at 2:54:56 PM UTC-4, Rich Shepard wrote: > > I'm working my way

Re: Django-drip not working

2016-08-20 Thread Tim Graham
Looks like it could be a bug in django-drip because: Model._meta.fields + Model._meta.many_to_many + Model._meta.get_all_related_objects() (tuple) + (tuple) + (list) A possible fix could be: ... + tuple(Model._meta.get_all_related_objects()) On Saturday, August 20, 2016 at 7:56:46 AM UTC-4, M H

Re: Django m2m through model with classic admin widget

2016-08-22 Thread Tim Graham
I haven't look into what's needed to make this work on current Django versions, however, if you're interested in contributing to Django, there's an open ticket to allow using the widget as long as there aren't any extra required fields on the through model: https://code.djangoproject.com/ticket

Re: TypeError: 'class Meta' got invalid attribute(s): indexes

2016-08-22 Thread Tim Graham
What Django version are you using? Meta.indexes is a new feature in Django 1.11 -- are you using it in your models? On Monday, August 22, 2016 at 10:58:51 AM UTC-4, Dennis Kornbluh wrote: > > Going through the Django tutorial > , now at p

Re: DateField default value

2016-08-22 Thread Tim Graham
What do you mean by "not accepted"? Is there some error message? What you wrote should work as far as I know. from datetime import date pub_date = models.DateField(default=date.today) On Monday, August 22, 2016 at 7:04:11 PM UTC-4, Rich Shepard wrote: > > Reading the doc for DateField() I tri

Re: Strange failing test

2016-08-24 Thread Tim Graham
You'll be glad to know that's fixed in Django 1.10: https://github.com/django/django/commit/e0837f2cb12de5e95e621d19b186b0da43bcdee2 On Wednesday, August 24, 2016 at 10:27:37 AM UTC-4, Gergely Polonkai wrote: > > It just turned out that value_list(…, flat=True) returns a QuerySet, not a > list.

Re: Trying to overload Django 1.9 JSONField

2016-08-28 Thread Tim Graham
Custom encoding for JSONField will be a feature in Django 1.11. See if https://github.com/django/django/pull/7071/commits/13c3e5d5a05e9c358d212d154addd703cac3bc66 and the documentation tips in that patch helps. On Sunday, August 28, 2016 at 2:15:38 PM UTC-4, Ben Scherrey wrote: > > I have an ap

Re: get_available_name() got an unexpected keyword argument 'max_length'

2016-08-30 Thread Tim Graham
You need to update your own code or one of your dependencies as per https://docs.djangoproject.com/en/stable/releases/1.8/#support-for-the-max-length-argument-on-custom-storage-classes. If you follow https://docs.djangoproject.com/en/stable/howto/upgrade-version/ with an older version of Djang

Re: Django documentation release 1.10.1a1

2016-08-30 Thread Tim Graham
I don't think there have been any recent changes to the styling, but if you'd like to contribute, the place to look is probably https://github.com/django/django/tree/master/docs/_theme. On Tuesday, August 30, 2016 at 6:15:45 PM UTC-4, Rich Shepard wrote: > > I don't know how this PDF displays

Re: cache.get_or_set : function name is misleading

2016-08-31 Thread Tim Graham
You're welcome to submit a documentation patch to help clarify. On Wednesday, August 31, 2016 at 5:54:21 AM UTC-4, florian wrote: > > Hi, > > I wanted to refactor my code using cache.get_or_set instead of using > cache.get and then check for None and so on > > However, after a few tests, it see

Re: Possible bug in AlterField migration with spatial_index

2016-08-31 Thread Tim Graham
That looks plausible. The place to patch would probably be https://github.com/django/django/blob/master/django/contrib/gis/db/backends/postgis/schema.py. Could you create a Trac ticket and, if possible, a patch? On Wednesday, August 31, 2016 at 6:33:23 PM UTC-4, Arjun Attam wrote: > > Hi, > > I

[ANNOUNCE] Django bugfix release issued: 1.10.1

2016-09-01 Thread Tim Graham
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2016/sep/01/bugfix-release/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

Re: NIST’s new password rules - Digital Authentication Guidelines

2016-09-02 Thread Tim Graham
Hi, We have fairly comprehensive documentation about passwords: https://docs.djangoproject.com/en/stable/topics/auth/passwords/ Let us know if you have unanswered questions after reading that. Tim On Friday, September 2, 2016 at 7:35:03 AM UTC-4, uri wrote: > > To Django users, > > Did you see

Re: Project time and expense tracking

2016-09-02 Thread Tim Graham
I see some results by searching "django time tracking app" in a search engine. In particular, Django Packages has a nice comparison of some options: https://djangopackages.org/grids/g/project-management/ On Thursday, September 1, 2016 at 1:58:08 PM UTC-4, Rich Shepard wrote: > > Before I re-in

Re: NIST’s new password rules - Digital Authentication Guidelines

2016-09-04 Thread Tim Graham
enchen> <http://twitter.com/urievenchen> > > On Fri, Sep 2, 2016 at 3:35 PM, Tim Graham > wrote: > >> Hi, >> >> We have fairly comprehensive documentation about passwords: >> https://docs.djangoproject.com/en/stable/topics/auth/passwords/ >> >

Re: Django migrations taking all the memory on Django 1.9

2016-09-06 Thread Tim Graham
t and things are done > in the right order it might be safe enough, but of course we get into muddy > waters.. > > On Monday, August 8, 2016 at 2:36:23 PM UTC+1, Tim Graham wrote: >> >> I think that error suggests that you disabled migrations for an app >> (some

Re: FileField with UUID filename

2016-09-06 Thread Tim Graham
See https://code.djangoproject.com/ticket/4345 for the ticket that disallowed primary_key/unique on FileField. You can write a custom field to get FileField to use a UUID in the database (and likely also lift the other restrictions you want to bypass). On Sunday, September 4, 2016 at 11:54:06 A

Re: Try to read data from remote database

2016-09-06 Thread Tim Graham
Please take a look at https://docs.djangoproject.com/en/stable/howto/legacy-databases/ On Tuesday, September 6, 2016 at 3:16:29 PM UTC-4, MPY wrote: > > Hi everyone , I am new with Django and I try to connect with external > database to read the data and show in my view. > > Hi create a new ent

Re: Database is not reset after StaticLiveServerTestCase (Django 1.9.5)

2016-09-12 Thread Tim Graham
Yes, a minimal example project that demonstrates the issue would be helpful. My guess is that you have a mistake in your tests that's causing some state to leak between them. On Monday, September 12, 2016 at 9:36:23 AM UTC-4, ankitj...@gmail.com wrote: > > Hello, > > I have a Python project tha

Re: GeoDjango has few problems on Django 1.11-dev version

2016-09-13 Thread Tim Graham
I'm not aware of any bugs or regressions. Could you provide a sample project that we can use to reproduce that issue? Does you have the same issue with older versions of Django? On Tuesday, September 13, 2016 at 9:23:38 AM UTC-4, Satish wrote: > > Hi, > > Am a starting a new Django project, I ch

Re: GeoDjango has few problems on Django 1.11-dev version

2016-09-13 Thread Tim Graham
git >3. pip install psycopg2 >4. django-admin startproject projectname >5. Change the db backend to postgis in settings file >6. python manage.py makemigrations > > After this step, we have this error. > > On Tuesday, 13 September 2016 19:30:21 UTC+5:

Re: creating a loginpage

2016-09-14 Thread Tim Graham
Import the view: from django.contrib.auth.views import login and replace 'django.contrib.auth.views.login' with a reference to the login function. from django.contrib.auth.views import login urlpatterns = [ <-- remove the empty string on this line ... url(r'^login/$', login), ] On Wed

Re: creating a loginpage

2016-09-14 Thread Tim Graham
Have you looked at the official Django documentation? http://masteringdjango.com/django-book/ is another nice resource. On Wednesday, September 14, 2016 at 2:22:18 PM UTC-4, Timothy Steele wrote: > > Thanks Tim it has work this time but can any one help me with a beginner > book to learn Django

Re: Access request body in the django.request logger

2016-09-15 Thread Tim Graham
If true, it does seem like a bug. Could you provide a test for Django's test suite or a sample project to reproduce it? On Thursday, September 15, 2016 at 6:53:55 AM UTC-4, Ben Whale wrote: > > Hi > > What I'd like to do is log the request body whenever the django.request > logger logs somethin

Re: Access request body in the django.request logger

2016-09-15 Thread Tim Graham
t;> >> Some testing seems to indicate that it is an issue with >> django-rest-framework. When I contact the web server using urls managed by >> django rest the issues occurs, when I do the same via url managed by >> vanilla django the request variable in the context object

Re: ModelAdmin missing a couple of key features, or am I doing this wrong?

2016-09-15 Thread Tim Graham
I think these ideas have been floated before. If you look through the Trac tickets you might find something related. However, your subclass where you store "self.instance" on ModelAdmin is a no no due to thread safety. See http://stackoverflow.com/questions/3388111/modeladmin-thread-safety-cachi

Re: Issue using django-admin

2016-09-19 Thread Tim Graham
Did you install it as described at https://docs.djangoproject.com/en/dev/topics/install/#installing-the-development-version ? On Sunday, September 18, 2016 at 10:10:50 PM UTC-4, PARTH VERMA wrote: > > Hello everyone, > > I am new to Django and just cloned it. I am getting error running > djang

Re: Setting FK field in list view

2016-09-19 Thread Tim Graham
Is your request https://code.djangoproject.com/ticket/10743? On Monday, September 19, 2016 at 10:08:59 AM UTC-4, RompePC wrote: > > Yep, the second one is what I wanna do. Althrough they aren't inlines, but > like FK filter choices in the list view (not the default ones). > It's hard to understan

Re: Setting FK field in list view

2016-09-19 Thread Tim Graham
eptiembre de 2016, 16:31:55 (UTC+2), Tim Graham escribió: >> >> Is your request https://code.djangoproject.com/ticket/10743? >> >> On Monday, September 19, 2016 at 10:08:59 AM UTC-4, RompePC wrote: >>> >>> Yep, the second one is what I wanna do. Althrough th

Re: Setting FK field in list view

2016-09-19 Thread Tim Graham
> El lunes, 19 de septiembre de 2016, 18:15:17 (UTC+2), Tim Graham escribió: >> >> ModelAdmin.list_editable? >> >> >> https://docs.djangoproject.com/en/stable/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_editable >> >> On Monday, September 19, 20

Re: Incorrect number of bindings supplied. The current statement uses 0, and there are 1 supplied

2016-09-19 Thread Tim Graham
Can you print query and params where the error happens? On Monday, September 19, 2016 at 12:56:12 PM UTC-4, premdjango wrote: > > Im trying to run the tests in Django but get the following error. > > > (djangodev) Anands-MacBook-Pro:tests premlaks$ ./runtests.py > --settings=test_sqlite requests

Re: Setting FK field in list view

2016-09-19 Thread Tim Graham
problem is to get the field correctly, as I just only get str > representations of the field or the widget. > > El lunes, 19 de septiembre de 2016, 18:53:56 (UTC+2), Tim Graham escribió: >> >> I still don't understand the goal. Maybe you can mock up a screenshot >

Re: How to do a generic field in an app.

2016-09-19 Thread Tim Graham
Do you know about https://docs.djangoproject.com/en/stable/ref/contrib/contenttypes/#generic-relations ? On Monday, September 19, 2016 at 12:30:01 PM UTC-4, Jonty Needham wrote: > > I want to have a model that has a foreignkey to a model from another app. > The app can be one of many. > > So f

Re: No module named MySQLdb

2016-09-20 Thread Tim Graham
I'm not sure if PyMySQL is compatible, but it's not tested by the Django team. I'd use mysqlclient as documented: https://docs.djangoproject.com/en/stable/ref/databases/#mysql-db-api-drivers On Tuesday, September 20, 2016 at 11:18:08 AM UTC-4, Alessandro Madruga wrote: > > pip install MySQL-pyt

Starting maintenance on code.djangoproject.com

2016-09-20 Thread Tim Graham
https://code.djangoproject.com/ is going down shortly for an upgrade. I'll send an update if it takes more than an hour. -- 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 e

Re: Starting maintenance on code.djangoproject.com

2016-09-20 Thread Tim Graham
The maintenance is complete. If you find any issues creating or updating tickets, let me know. Thanks! On Tuesday, September 20, 2016 at 1:17:11 PM UTC-4, Tim Graham wrote: > > https://code.djangoproject.com/ is going down shortly for an upgrade. > I'll send an update if it take

Re: Unable to post to the bug tracker (Submission rejected as potential spam)

2016-09-20 Thread Tim Graham
Sorry for the inconvenience. We don't have a good solution right now. I tried training the filter by marking your submission as valid. Alternately, you just need to rephrase your comment until the filter accepts. On Tuesday, September 20, 2016 at 7:00:41 PM UTC-4, Ben Whale wrote: > > Hi all > >

Re: Cannot find table "..." after django updated from 1.7 to 1.9

2016-09-21 Thread Tim Graham
Please post the full traceback. On Wednesday, September 21, 2016 at 7:12:18 AM UTC-4, ranvir singh wrote: > > Hello there and apologies for asking this silly question here. > Actually I am facing some trouble in a Django app. Here is the link > for that app. > > https://github.com/GreatDevelopers/

Re: Foreign key set template

2016-09-22 Thread Tim Graham
model.foreignkey_set returns a manager while model.foreignkey_set.all returns a QuerySet. https://docs.djangoproject.com/en/stable/topics/db/queries/#following-relationships-backward On Thursday, September 22, 2016 at 7:09:27 AM UTC-4, jorr...@gmail.com wrote: > > I have a question about using

Re: Hello - need help on accessing current user in django forms.

2016-09-23 Thread Tim Graham
Try a web search for "django passing request to a form". Here's the first result: http://stackoverflow.com/questions/6325681/passing-a-user-request-to-forms On Friday, September 23, 2016 at 7:17:32 AM UTC-4, Naresh Kumar wrote: > > Hello, > > I need filter a queryset based on current user in Dja

Re: Complex query, queryset.query.alias_map and query changes

2016-09-23 Thread Tim Graham
Not sure, this is using lots of private API and QuerySet.extra() which is discourage these days. I'm afraid you won't get much help for unsupported Django versions. After you upgrade to Django 1.9+, hopefully you can construct your query using the new expressions API! https://docs.djangoprojec

Re: Model Meta is overwriten by abstract parent class

2016-09-23 Thread Tim Graham
I see you posted the same thing in Trac: https://code.djangoproject.com/ticket/27264 For future reference, it's better not to duplicate posts. Otherwise, you might have multiple people duplicating effort to investigate the issue. Thanks. On Friday, September 23, 2016 at 10:58:13 AM UTC-4, luxc

Re: Getting AttributeError: type object 'RunPython' has no attribute 'noop' error

2016-09-26 Thread Tim Graham
RunPython.noop is new in Django 1.8. You should try to upgrade as 1.7.x is unsupported and has unpatched security issues. On Monday, September 26, 2016 at 7:03:36 AM UTC-4, Arundas R wrote: > > My django version is 1.7.11. While migrating I get an error as described. > What might be the possibl

Re: Deleting PROTECTED objects that would be deleted by a CASCADE anyway

2016-09-26 Thread Tim Graham
And now a Trac ticket for this: https://code.djangoproject.com/ticket/27272 On Friday, September 23, 2016 at 7:17:32 AM UTC-4, Daniel Izquierdo wrote: > > Hello, > > Consider this set of models: > > class Artist(models.Model): > name = models.CharField(max_length=10) > > class Album(models.Mod

<    1   2   3   4   5   6   >