Django 1.8.1, DB router and get_absolute_url()

2015-05-20 Thread Davide Setti
Hi all, I'm using Django 1.8.1 with some models on a legacy DB. They all are in the same app, so the router is simple: class MyRouter(object): MYAPP = 'pkmain' def db_for_read(self, model, **hints): if model._meta.app_label == self.MYAPP: return 'other_db'

Re: I can't load fixtures

2014-08-17 Thread Davide Scatto
of django are you using? Davide Il giorno giovedì 14 agosto 2014 19:05:30 UTC+2, Daniel Grace ha scritto: > > I created a fixtures file called testdata.xml in a fixtures folder, but I > can't load the fixtures file into the database. > > I placed an __init__.py file in the

Re: Should I use generic foreign key, and how?

2014-08-17 Thread Davide Scatto
another way is not to use fk but generic field, where patent_id is a normal integer field. In a custom manager you have to manage the data content in this field with data content in table field to retrieve yr linked record. Il giorno sabato 16 agosto 2014 21:46:33 UTC+2, Aaron Law ha scritto: >

Re: query on models

2014-05-07 Thread Davide Scatto
Do you start from Ques model? What are your starting data? Il giorno mercoledì 7 maggio 2014 15:24:38 UTC+2, Anushree ha scritto: > > I have the following models. I want to retrieve list of question banks > related to a particular subject. Is it possible to do without modifying the > existing

Re: Django URLS help app not defined

2014-05-06 Thread Davide Scatto
it seems in yr project urls.py you don't import vmware. from django.conf.urls import patterns, include, url from django.contrib import admin from . import vmware urlpatterns = patterns Il giorno martedì 6 maggio 2014 07:09:51 UTC+2, G Z ha scritto: > > project name = provisioning

So you decided that you want to join a startup, right?

2012-11-28 Thread Davide Pluda
Well, You are smart and and if you are still reading you are probably looking for a fun and interesting place to work. I am david and the CTO of Wedding Snap (weddingsnap.com) a photo sharing application that collects pictures during events. To build and manage the infrastructure that keep all

Re: Port Django to Javascript

2012-04-05 Thread Davide Callegari
backend or you can use a db router to make sure all the requests for that model are redirected to that specific db backend. Thanks for the support :) Davide Il giorno 05/apr/2012, alle ore 10:42, sebastien piquemal ha scritto: > I guess the people that don't get the point have probably never m

Re: Django error about utf8 with BOM when running "python manage.py compilemessages"

2012-03-27 Thread Davide Setti
On Thursday, March 8, 2012 10:04:09 PM UTC+1, Tom Evans wrote: > > Yes, just remove the BOM: > > http://en.wikipedia.org/wiki/Byte_order_mark > But that file is in django, not in his code, am i wrong? -- You received this message because you are subscribed to the Google Groups "Django users"

shared authentication and profiles

2011-04-22 Thread Davide Setti
i can use Database Routers to keep centralized data in a different DB, but i would like to know if there are out-of-the-box solutions... Regards -- Davide Setti blog: http://blog.flatlandia.eu code: http://github.com/vad -- You received this message because you are subscribed to the Google Group

Re: Modifying the User model

2009-04-11 Thread Davide
, as we have to remember it is a general purpose user class (in some applications you won't even need email adress). Thanks anyway for your help ;) Davide On Apr 10, 8:12 pm, soniiic <soni...@gmail.com> wrote: > The way I achieved this was to make my own registration form and use > thi

Modifying the User model

2009-04-10 Thread Davide
, but if I missed something please let me know. Thanks in advance, Davide --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroup

Re: problem with django tagging application

2008-02-21 Thread Francesco Davide Calabrese
See the changes listed here: http://code.google.com/p/django-tagging/wiki/BackwardsIncompatibleChanges you may be able to give directly the queryset rather than the model On Thu, Feb 21, 2008 at 1:25 AM, cesco <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using the latest version of the django

Re: save() called 2 times.

2006-05-05 Thread Davide Bertola
Victor : in that post it says that _post_save() is called twice, I tryed to create that _post_save() but I see nobody calls it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this