Re: Adding fields in model, migrating a sqlite.db in production...good idea?

2017-03-31 Thread kalinski
super thanks! i hoped for that answer! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send

Adding fields in model, migrating a sqlite.db in production...good idea?

2017-03-31 Thread kalinski
Hello, I have a sqlite db that already holds important production data. Well same time I am developing that application adding functions while I need them. Well I know not exactly best practice. Now I need to add two fields to a model (boolean and char), I want to makemigrations, git add, git

Re: HttpRequest.DELETE implemented?

2010-06-14 Thread kalinski
only be populated from a POST. > > So you would do: > if request.method=='DELETE': >   MyModel.objects.get(id=request.GET['id']).delete() > > (assuming, based on your code, that your client software is genuinely > doing an HTTP DELETE request and that you have an id in the que

Re: HttpRequest.DELETE implemented?

2010-06-14 Thread kalinski
well the answer is "no" yes?: On Jun 14, 11:48 am, kalinski <kalin...@amei.se> wrote: > Hi Djangos, > > is this working like expected with recent django version:? > > def myview(request): >    if request.is_ajax: >       if request.DELETE #or alt

HttpRequest.DELETE implemented?

2010-06-14 Thread kalinski
and for example hidden form fields? thanks kalinski -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@google

Re: Integrity Error with trying to save UserProfile automatically

2010-06-02 Thread kalinski
o On Jun 2, 8:34 pm, kalinski <kalin...@amei.se> wrote: > Hi Djangos, > > i am attaching a UserProfile to my Users > by using a post_save signal: > > class UserProfile(models.Model): >     user = models.ForeignKey(User, unique=True) >     address = models.ForeignKey(Addr

Integrity Error with trying to save UserProfile automatically

2010-06-02 Thread kalinski
is there another way of creating UserProfiles this way without having to fill them with infos already? mange tak kalinski -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@google

database design

2009-09-30 Thread max kalinski
hi djangos, i switched from symfony to django :) its fun, thanks! but i am stuck with my database/model design. now it gets OT (sorry) but i need an opinion on how to design a typical order process: class Order(models.Model): user = models.ForeignKey(User, verbose_name=_("Customer"),