Re: "django.db.models.query.QuerySet" vs "django.db.models.QuerySet"

2015-09-29 Thread Tim Graham
Either way is okay; the original location isn't deprecated. I'd use the "convenience" import in django.db.models if it were me. On Tuesday, September 29, 2015 at 2:00:00 PM UTC-4, Ilya Kazakevich wrote: > > In Django 1.6 it QuerySet was in package > "django.db.models.query.QuerySet". But since 1

upload zip or rar files

2015-09-29 Thread dk
I set up a form to upload files, and every thing works fine, the only problem is when I am in the webpage and I click the button to choose the file I want to upload doesn't show or zips, or rars. I try playing with the input tag accept, from all the type of zips, to leave it open to upload

"django.db.models.query.QuerySet" vs "django.db.models.QuerySet"

2015-09-29 Thread Ilya Kazakevich
In Django 1.6 it QuerySet was in package "django.db.models.query.QuerySet". But since 1.7 it also may be imported with "django.db.models.QuerySet". Is "django.db.models.query.QuerySet" deprecated since 1.7? What is the "official" way to import QuerySet? I can't find any documentation regard thi

Re: Admin: Unknown fields

2015-09-29 Thread Florian Schweikert
On 29/09/15 18:47, Rolston Jeremiah wrote: > class Genus(models.Model): > genus_id = models.AutoField(primary_key=True), > scientific_genus = models.CharField(max_length=32), > common_name = models.CharField(max_length=32), > common_examples = models.TextField(), It's probably because of the ',' a

Re: Admin: Unknown fields

2015-09-29 Thread Rolston Jeremiah
On Monday, September 28, 2015 at 6:56:42 PM UTC-4, Rolston Jeremiah wrote: > > Hello, > > I am new to Python and Django so please bear with me. > > I have created a model(below) and would now like to access > from the admin interface. As per instructions I found on the > django site (Part 2 t

Re: Converting implicit m2m through table to explicit through model with Django 1.7 migrations

2015-09-29 Thread Carsten Fuchs
Hi John, Am 28.09.2015 um 15:54 schrieb John Lucas: So - is my approach safe? Or will there be complications down the line? I've recently had a similar / the same question. See this thread, which also contains the solution that worked very well for me: http://thread.gmane.org/gmane.comp.pyth

Re: Platform.sh alternative for Django?

2015-09-29 Thread Aaron C. de Bruyn
Heroku is another paid alternative. For myself, I purchase a $5/mo digital ocean server and install 'dokku' (https://github.com/progrium/dokku) so I can 'git push'. For automated builds I use Drone CI (https://github.com/drone/drone) which can also be installed on the same (or a separate) server.

Platform.sh alternative for Django?

2015-09-29 Thread Radek Svarz
Hi, there is the https://platform.sh/ for PHP world for Continuous Deployment. Do you know of something similar for Django apps? Thanks, Radek -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

Re: Drop constrailts

2015-09-29 Thread Tim Graham
I believe it's a bug that's fixed in Django 1.9: https://github.com/django/django/commit/f37c11eea3cb860112a26f8a65d823842f65b96f On Monday, September 28, 2015 at 11:12:26 PM UTC-4, Григорий Крамаренко wrote: > > In migrations I need delete constraints before creating table-partitioning. > But Dj

Django inlineform not adding cinema field info on save

2015-09-29 Thread drifter
I have a inline form which looks like the snapshot above but when I save the "Cinema, Movie type and Price" doesn't get added to the additional fields (each starts time is another instance of the field). For example the second line with 2015-10-02 Cinema2 will only be saved on the instance of