Re: How use model objects in ver1.9 WITHOUT an app and get rid off "Model class doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS." error mssg?

2016-04-04 Thread Mike Dewhirst
On 5/04/2016 7:23 AM, Chris Seberino wrote: I'm trying to create a simple stripped down skeleton Django application. Django ver1.9 forces everything to be in apps which are not needed for this application. When I try using models I get an error like the following: "Model class doesn't

Re: Migrating older 1.4 project to 1.9

2016-04-04 Thread Mike Dewhirst
Larry I saw that after I sent it and thought .. just as well I signed my name after the apology. Mike On 4/04/2016 11:15 PM, Larry Martell wrote: On Sun, Apr 3, 2016 at 7:31 PM, Mike Dewhirst wrote: On 4/04/2016 12:58 AM, Larry Martell wrote: I import models in

How use model objects in ver1.9 WITHOUT an app and get rid off "Model class doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS." error mssg?

2016-04-04 Thread Chris Seberino
I'm trying to create a simple stripped down skeleton Django application. Django ver1.9 forces everything to be in apps which are not needed for this application. When I try using models I get an error like the following: "Model class doesn't declare an explicit app_label and isn't in an

Help with Django initial setup

2016-04-04 Thread George Mathew
Hi, I am trying to learn Django. I was following the official tutorial https://docs.djangoproject.com/en/1.9/intro/tutorial01/ When I entered the command "python manage.py runserver" I got the following error. Please help. *Performing system checks...* *Unhandled exception in thread

Django + Apache Web server on Windows

2016-04-04 Thread asimkon
I would like to configure Django with Apache web server on Windows using XAMPP or Wamp. I looked over the Web until i came across the following video https://www.youtube.com/watch?v=VOkXG0jL_8U. Do you think i will have problem following all the steps along? From python installation, Django,

Re: Request works with sqlite not with Postgres

2016-04-04 Thread Simon Charette
Hi Tazo, I just submitted a patch that correctly resolves the `output_field` of `Avg` over non-numeric fields. If it gets merged you shouldn't have to worry about passing an explicit `output_field=DurationField()` in Django 1.10. Simon Le lundi 4 avril 2016 09:46:53 UTC-4, Tazo Gil a écrit : >

Re: Request works with sqlite not with Postgres

2016-04-04 Thread Tazo Gil
Without your help, I would not get the solution. Maybe the doc (https://docs.djangoproject.com/en/1.9/ref/models/querysets/#avg) should be more precise about this case. Merci beaucoup Le lundi 4 avril 2016 05:35:14 UTC+2, Simon Charette a écrit : > > Hi Tazo, > > The default `output_field` of

django template {% url %}

2016-04-04 Thread 颜刚
i have this code in my template: {% for i in var %} {% for action in actions %} {{ action.name_short }} {% endfor %} {% endfor %} the value of action.url_alias is 'user-edit' i.id host 'account' ,that's what i want from table,i use django-hosts in my project,the error is that: Reverse

Re: django template {% url %}

2016-04-04 Thread 颜刚
yes,you are right,i have noticed that,but now i have a new error: i have this code in my template: {% for action in actions %} {{ action.name_short }} {% endfor %} the value of action.url_alias is 'user-edit' i.id host 'account' ,that's what i want value from table,i use django-hosts in

Re: Migrating older 1.4 project to 1.9

2016-04-04 Thread Larry Martell
On Sun, Apr 3, 2016 at 7:31 PM, Mike Dewhirst wrote: > On 4/04/2016 12:58 AM, Larry Martell wrote: >>> >>> I import models in the top level of each app so I can say "from app >>> import >>> >this, that, other" and it works fine. Django 1.8. Please watch your attribution. I