Re: Clear view cache using @cache_page

2015-12-01 Thread Dimitris R
Thanks for your reply Tim. I have tried the code provided, but it seems that the cache is not deleted. I am testing the code in development, which uses django.core.cache.backends.locmem.LocMemCache. I don't know if that makes any difference. Also, I have noticed that the path in *url.path*

The first version of Django Fancy Cronfield is now available

2015-12-01 Thread Saeed Salehian
Hello, I just released django fancy cronfield 0.1.1, which I'd like to share it with you. Current features are - Cron format validation - Custom django field - Ability to specify a daily run limit Gentle select UI for Cronfield is planned to be supported at version 0.2. - Github l

Django 1.9 cache.get_or_set issue while using DummyCache backend

2015-12-01 Thread Oleksiy Ivanenko
Hi, I'm trying to use Django 1.9rc2. But I have issue while using django.core.cahe.cache.get_or_set with *DummyCache backend*. from django.core.cache import cache cache.get_or_set('some_key', 'my_val') # Always return None, instead of default value This behaviour brakes lots of my tests. Is

Re: Django 1.9 cache.get_or_set issue while using DummyCache backend

2015-12-01 Thread Tim Graham
It seems to be an omission in the implementation. Feel free to create a Trac ticket and offer a patch if you can. For future reference, please don't cross post between django-users (appropriate place for "is it a bug?" questions) and django-developers. Thanks! On Tuesday, December 1, 2015 at 7

AttributeError: type object 'Product' has no attribute '_meta'

2015-12-01 Thread yogesh gupta
My Models.py looks like this : from django.db import models # Create your models here. class Product(models.Model): item_name = models.CharField(max_length=100) item_price = models.IntegerField() item_image = models.ImageField() class Meta: ordering = ['item_name'] I am getting this error : At

Possible bug with forms and arrays? Multiple forms on one view and Array fields in Models ---: Django and Postgres

2015-12-01 Thread Kevin Geyer
I get a strange error and I can't find the solution. The view is used to create data entries for a user but with an option to go back and edit hence the singular view to deal with an update... The code works with only one form being pulled into the view but not with several, then it gives a non

Transitioning existing login portal to Django

2015-12-01 Thread Evan Palmer
Hello, Does anyone have experience with transitioning an existing database *including user login data* to Django? I am about to begin work on a startup's hand-written web portal that consists of about 2000 lines of custom Python code (hashing passwords, managing user accounts, DB connections,

Unicode in email addresses

2015-12-01 Thread Zac Delagrange
I was wondering if there were any plans to change the email validation to support unicode characters as per https://tools.ietf.org/html/rfc6531 and https://tools.ietf.org/html/rfc5890 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscr

Re: Unicode in email addresses

2015-12-01 Thread Simon Charette
Hi Zac, There's a ticket and a pull request suggesting to improve the actual email validation based on RFCs. You might want to join the conversation there. Simon Le mardi 1 décembre 2015 17:37:30

[ANNOUNCE] Django 1.9 released

2015-12-01 Thread Tim Graham
Django 1.9 is now available: https://www.djangoproject.com/weblog/2015/dec/01/django-19-released/ With the release of Django 1.9, Django 1.7 has reached end-of-life. Django 1.7.11 is the final release of the 1.7 series and all users are encouraged to upgrade to Django 1.8+ as soon as possible s