Re: Somethings the connection to the Postgress get lost. Why?

2014-07-12 Thread Rajesh Dhawan
Oh, wow! I'm glad to see that the information in that 6-year old thread is still helpful :) Glad this fixed your problem. Cheers, Rajesh On Sat, Jul 12, 2014 at 7:09 PM, Jay Crossler wrote: > Who woulda thunk it, but switching the DATABASE_HOST to a "" blank string > (then restarting nginx an

Re: Somethings the connection to the Postgress get lost. Why?

2014-07-12 Thread Jay Crossler
Who woulda thunk it, but switching the DATABASE_HOST to a "" blank string (then restarting nginx and postgresql) fixed the intermittent connection dropping for me! On Thursday, March 13, 2008 10:11:00 AM UTC-4, Rajesh Dhawan wrote: > > Hi, > > On Mar 12, 12:31 pm, mamcxyz wrote: > > I'm getti

Re: Admin UI not commiting to DB

2014-07-12 Thread Timothy W. Cook
Thanks for the reply Derek. This post was just a stab to see if anyone had seen this before and I just missed the post. I guess it is time to roll up my sleeves and take a formal approach at debugging. This one of VERY few, non-open source apps I work on. Otherwise I would just point to the rep

When permissions from meta are saved in database?

2014-07-12 Thread Andrzej Winnicki
Hello, I have a trouble understanding when exactly extra permissions (in Meta) are added to database. In doc I can read that: Extra permissions to enter into the permissions table when creating this > object. Add, delete and change permissions are automatically created for > each model. But

Re: RuntimeWarning: DateTimeField Task.start received a naive datetime (2014-07-21 07:39:14) while time zone support is active. RuntimeWarning)

2014-07-12 Thread Tom Evans
On Fri, Jul 11, 2014 at 4:44 AM, Neto wrote: > Hi guys, I need a help here: > > > settings.py > > TIME_ZONE = 'America/Sao_Paulo' > > > view.py: > task = Task.objects.get(id=id) > task.start = request.GET['task_start'] > tarefa.save() > > Terminal: > > RuntimeWarning: D

Having a hard time installing Graphite on Windows 7

2014-07-12 Thread 'nate dingo' via Django users
I am following the instruction on this document. http://www.s2-industries.com/wordpress/2013/01/running-graphite-webapp-on-windows - Install Python 2.7 (as mentioned in the other blog post) - Install PyPi (as mentioned in the other blog post) - Install PythonGTK+ (for Cairo graphics) f

Re: validators not working in shell

2014-07-12 Thread tim
Model validation is not invoked when calling model.save(). You can read more here: https://docs.djangoproject.com/en/1.6/ref/models/instances/#validating-objects On Saturday, July 12, 2014 6:46:17 AM UTC-4, thebsom wrote: > > Hello > I am creating a django library application. I have made a bo

Re: urls not maching

2014-07-12 Thread Tom Evans
On Sat, Jul 12, 2014 at 9:01 AM, ngangsia akumbo wrote: > i have a problem with my urls it keeps breaking > > here is my url > from django.conf.urls import patterns, include, url > from django.contrib import admin > admin.autodiscover() > #from blogs import views > > urlpatterns = patterns('blogs.

Re: Admin UI not commiting to DB

2014-07-12 Thread Derek
Tim Hard to tell without code; but what happens when you test without the form override? Also, unless you can reproduce the errors they get, then you will struggle to debug. Have you tried adding in log statements at key points to try & see where things go haywire? On Saturday, 12 July 2014

Re: urls not maching

2014-07-12 Thread Lachlan Musicman
show slug on the model? how is it defined? On 12 July 2014 18:01, ngangsia akumbo wrote: > i have a problem with my urls it keeps breaking > > here is my url > from django.conf.urls import patterns, include, url > from django.contrib import admin > admin.autodiscover() > #from blogs import views

validators not working in shell

2014-07-12 Thread alghafli
Hello I am creating a django library application. I have made a book model and it has some fields with validators. Most of them are standard MinValueValidator and MaxValueValidator. Using the webserver, the validators work completely fine. I see errors when I put invalid values. However, when I

Admin UI not commiting to DB

2014-07-12 Thread Timothy W. Cook
Django 1.65, PostgreSQL. Several users of the admin UI in my app have noted that clicking Save or Save and Continue buttons does not always actually save changes to the database. Has anyone else seen this? I do override get_form in admin.py so that I can set some fields as readonly based on a bo

urls not maching

2014-07-12 Thread ngangsia akumbo
i have a problem with my urls it keeps breaking here is my url *from django.conf.urls import patterns, include, urlfrom django.contrib import adminadmin.autodiscover()#from blogs import viewsurlpatterns = patterns('blogs.views',url(r'^admin/', include(admin.site.urls)),##