Re: are migrations the same regardless of database type?

2021-12-28 Thread Lars Liedtke
As far as I know, the migrations are "Python-Code" in themselves, only 
defining which tables change in what way. Only when they are being 
applied, this is turned into actual database code.


But you can test this easily by creating migrations and look at them. Or 
use e.g. a postgres docker container, if my memory is wrong.


Cheers

Lars

Am 28.12.21 um 16:02 schrieb Anil Felipe Duggirala:

hello,
I running an app locally using an  SQlite database (I have not been able to set 
up postgresql locally). I am running the same app in Heroku, using Postgresql.
If I run "makemigrations" locally, then push  those migrations to Heroku (which is using 
postgresql), will those migrations be applied correctly by just doing "migrate" on Heroku.
Do the contents of migrations files depend on the database type that is 
associated to the app when creating the migrations?
thank you,

Anil F


--
punkt.de GmbH
Lars Liedtke
.infrastructure

Kaiserallee 13a 
76133 Karlsruhe

Tel. +49 721 9109 500
https://infrastructure.punkt.de
i...@punkt.de

AG Mannheim 108285
Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/af8fec05-774c-d007-c2c9-1b99cb6d7d9a%40punkt.de.


Re: Creating dynamic chart / graphs with Django

2021-04-12 Thread Lars Liedtke
Hey,

this is quite good https://bokeh.org it can create dynamic html/js as
well, but I don't know how the interagion into django is.

Cheers

Lars

Am 12.04.21 um 15:32 schrieb Walter Randazzo:
> Hi Tristan,
>
> i have used this one just once. 
>
>
> https://www.highcharts.com/demo <https://www.highcharts.com/demo>
>
> Check it, it easy to setup.
>
> Regards,
>
>
>
> El lun, 12 abr 2021 a las 10:05, tristant ( <mailto:tran.trong@gmail.com>>) escribió:
>
> I am looking to build site with a variety of charts and graphs. A
> quick search shows quite a lot of packages out there, as listed
> here Django Packages : Charts
> <https://djangopackages.org/grids/g/charts/>
>
> Has anyone used any of these packages and could provide some
> advice on which is better? For my task, I am looking to create
> both typical 2D charts as well as possible 3D plots. The charts
> need to be interactive ( as in user can tweak inputs and expect
> the charts to respond).
>
> I have done similar charts with R Shiny. I am wondering which of
> these packages can do similar things?
>
> I notice in the link, some packages mention "offline". Does this
> mean they cannot create interactive charts?
>
> Thanks.
> -- 
> 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
> <mailto:django-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> 
> https://groups.google.com/d/msgid/django-users/efe61d41-1e8c-4c56-899f-8164c0384bf3n%40googlegroups.com
> 
> <https://groups.google.com/d/msgid/django-users/efe61d41-1e8c-4c56-899f-8164c0384bf3n%40googlegroups.com?utm_medium=email_source=footer>.
>
> -- 
> 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
> <mailto:django-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAL7Dry50qF%3DJ0A5f3p%3DUMpVhzhnAV2s4nRmUr4g37LZ5Qju3%3Dg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAL7Dry50qF%3DJ0A5f3p%3DUMpVhzhnAV2s4nRmUr4g37LZ5Qju3%3Dg%40mail.gmail.com?utm_medium=email_source=footer>.

-- 
---
punkt.de GmbH
Lars Liedtke
.infrastructure

Kaiserallee 13a 
76133 Karlsruhe

Tel. +49 721 9109 500
https://infrastructure.punkt.de
i...@punkt.de

AG Mannheim 108285
Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b1a86516-79e5-faf1-9d6d-87edbf3301bc%40punkt.de.


Re: Form.has_changed() == False and Form.changed_data empty

2021-04-12 Thread Lars Liedtke
'd checked this running perfectly.
>  You have take in mind that in template you must ask if the value
> check field is chequed or not with {% if.. %}..{%else%}{%endif%}. This
> is sent from context.
> If you need some help,
> Regards  
>  
> Gabriel Araya Garcia
> GMI - Desarrollo de Sistemas Informáticos
> Santiago de Chile
>
>
>
> El dom, 11 abr 2021 a las 10:49, Lars Liedtke ( <mailto:lied...@punkt.de>>) escribió:
>
> Hello,
>
> I have got two checkboxes in a Form on Django 3.1, with which
> everything
> works fine, but unchecking them.
>
> I use a class derived from UpdateView and in its post() method I check
> for if my form has changed. This works fine for an initial empty form
> and checking form.has_changed(); after then handling the change and
> calling get() with the objects id in the Browser. I get the Form back
> with checked checkboxes. The values in the database are fine as well.
>
> So now I want to test with unchecking those checkboxes and it does not
> work. Form.has_changed() == False and Form.changed_data is empty.
> While
> the correct values are in Form.cleaned_data(). But my code does not
> detect these values because I check for Form.has_changed().
>
> Am I understanding something wrong here or do I have to check if there
> is a difference from the values I get in Form.cleaned_data to what my
> current state in the database is myself?
>
> I am happy to show the code. But I thought I'd ask about it in general
> before posting lots of code.
>
> ---
> punkt.de <http://punkt.de> GmbH
> Lars Liedtke
> .infrastructure
>
> Kaiserallee 13a
> 76133 Karlsruhe
>
> Tel. +49 721 9109 500
> https://infrastructure.punkt.de <https://infrastructure.punkt.de>
> i...@punkt.de <mailto:i...@punkt.de>
>
> AG Mannheim 108285
> Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein
>
> -- 
> 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
> <mailto:django-users%2bunsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> 
> https://groups.google.com/d/msgid/django-users/13e0719e-8d06-e37c-b07e-1c6deb1f84e6%40punkt.de
> 
> <https://groups.google.com/d/msgid/django-users/13e0719e-8d06-e37c-b07e-1c6deb1f84e6%40punkt.de>.
>
> -- 
> 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
> <mailto:django-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKVvSDDROtUwj_HR1B5OdbjASD2udkgbyy24MXKOCxzz%3DmhyCg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKVvSDDROtUwj_HR1B5OdbjASD2udkgbyy24MXKOCxzz%3DmhyCg%40mail.gmail.com?utm_medium=email_source=footer>.

-- 
---
punkt.de GmbH
Lars Liedtke
.infrastructure

Kaiserallee 13a 
76133 Karlsruhe

Tel. +49 721 9109 500
https://infrastructure.punkt.de
i...@punkt.de

AG Mannheim 108285
Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/204e4231-7c74-766f-c1e7-d7a30d44a901%40punkt.de.


Form.has_changed() == False and Form.changed_data empty

2021-04-11 Thread Lars Liedtke
Hello,

I have got two checkboxes in a Form on Django 3.1, with which everything
works fine, but unchecking them.

I use a class derived from UpdateView and in its post() method I check
for if my form has changed. This works fine for an initial empty form
and checking form.has_changed(); after then handling the change and
calling get() with the objects id in the Browser. I get the Form back
with checked checkboxes. The values in the database are fine as well.

So now I want to test with unchecking those checkboxes and it does not
work. Form.has_changed() == False and Form.changed_data is empty. While
the correct values are in Form.cleaned_data(). But my code does not
detect these values because I check for Form.has_changed().

Am I understanding something wrong here or do I have to check if there
is a difference from the values I get in Form.cleaned_data to what my
current state in the database is myself?

I am happy to show the code. But I thought I'd ask about it in general
before posting lots of code.

---
punkt.de GmbH
Lars Liedtke
.infrastructure

Kaiserallee 13a 
76133 Karlsruhe

Tel. +49 721 9109 500
https://infrastructure.punkt.de
i...@punkt.de

AG Mannheim 108285
Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/13e0719e-8d06-e37c-b07e-1c6deb1f84e6%40punkt.de.


Re: Django asychronous for millions of users

2021-03-31 Thread Lars Liedtke
I was on the brink of proposing this before, but if you'd like we could
have an online beer together and talk of course without any cost,
because we are just having a beer or any other beverage of your liking.
Just send me a mail privately and we'll find an appointment

Am 31.03.21 um 18:09 schrieb Josh moten:
> I truly would love to do that but I know I do not have the funds to
> hire someone with that much experience. I am disabled so I only get
> paid once a month and what’s left after bills and groceries is only
> $200 a month so I am having to bootstrap everything. It would be very
> disrespectful to ask someone with that much ability and experience to
> basically be working for free.  I am open to anyone who wish to help.
> I do have a private GitHub repository for my website so if anyone is
> interested please let me know.
>
> Again I do not wish to disrespect anyone and I know I am a beginner
> but I know this can be done Ive only be programming since October of
> last year and I have made leaps and bounds
>
>
> Sent from my iPhone
>
>> On Mar 31, 2021, at 10:05 AM, Derek  wrote:
>>
>> I agree with Lars. You have said very little about your actual
>> situation; my concern would be that if someone was appointed to
>> develop a web-based system that was expected to scale that big and
>> that fast I would expect (in fact, if I was the project funder I
>> would *demand*) that you already have a number of years experience
>> developing, deploying and maintaining such systems - preferably in
>> more than one domain.  There are very smart and knowledgeable people
>> on this mailing list - you may want to consider hiring or partnering
>> with someone like that who can offer you this capability.
>>
>> On Wednesday, 31 March 2021 at 14:46:25 UTC+2 lie...@punkt.de wrote:
>>
>> Sorry for having been so blunt, but your mail looked to me like
>> some random person asking for how to simply implement something
>> with $framework.
>>
>> But my remarks had a lot of expirience in them. If you are still
>> not decided on a language or framework then I would suggest you
>> choose the language you are most familiar with and the framework,
>> that offers what you expect from it. Before deciding though you
>> should  also have a look at the integration of caching, because
>> you will definetely need something like e.g. redis and maybe
>> varnish. Additionally you should think about which database you
>> want to use and if this can do clustering.
>>
>> Django can do all of this and might be the right choice for you,
>> but have a look at how Django "thinks" and decide, if this is a
>> way that you could familiarize yourself well with.
>>
>> As often in IT there are now real "right" choices, only choices
>> that will be right for you and your usecase.
>>
>> Cheers
>>
>> Lars
>>
>> Am 31.03.21 um 01:28 schrieb Josh moten:
>>> I am trying to implement the right infrastructure, so that I can
>>> be able to support all the users. I am in no way trying to
>>> deceive anyone. I am asking because I truly want to make the
>>> right decisions from the beginning, so that it will be cost
>>> effective. I am thinking of using AWS elastic band, so that
>>> proper load balancing will be in place. I am also looking up
>>> cacheing as well
>>>
>>> Sent from my iPhone
>>>
>>>> On Mar 30, 2021, at 7:13 PM, Lars Liedtke  wrote:
>>>>
>>>> 
>>>>
>>>> Hello Josh,
>>>>
>>>> somehow this sounds a bit sketchy to me. Could you please
>>>> extend your request to your plans to setup such a system. This
>>>> is not simply done with choosing "the right"  library or
>>>> package. This has to be a quite elaborate system with multiple
>>>> kinds of Software, like caches as redis and/or elasticsearch,
>>>> most propably load balancers and multiple application servers
>>>> (which could be run with django). But simply sending a question
>>>> like you did will not solve the prpably appearing problems
>>>> you'll be facing, if you really will that many users.
>>>>
>>>> Cheers
>>>>
>>>> Lars
>>>>
>>>> Am 30.03.21 um 13:32 schrieb Josh moten:
>>>>> I am creating an auction that will be hosting millions to
>>>>> po

Re: Django asychronous for millions of users

2021-03-31 Thread Lars Liedtke
Sorry for having been so blunt, but your mail looked to me like some
random person asking for how to simply implement something with $framework.

But my remarks had a lot of expirience in them. If you are still not
decided on a language or framework then I would suggest you choose the
language you are most familiar with and the framework, that offers what
you expect from it. Before deciding though you should  also have a look
at the integration of caching, because you will definetely need
something like e.g. redis and maybe varnish. Additionally you should
think about which database you want to use and if this can do clustering.

Django can do all of this and might be the right choice for you, but
have a look at how Django "thinks" and decide, if this is a way that you
could familiarize yourself well with.

As often in IT there are now real "right" choices, only choices that
will be right for you and your usecase.

Cheers

Lars

Am 31.03.21 um 01:28 schrieb Josh moten:
> I am trying to implement the right infrastructure, so that I can be
> able to support all the users. I am in no way trying to deceive
> anyone. I am asking because I truly want to make the right decisions
> from the beginning, so that it will be cost effective. I am thinking
> of using AWS elastic band, so that proper load balancing will be in
> place. I am also looking up cacheing as well
>
> Sent from my iPhone
>
>> On Mar 30, 2021, at 7:13 PM, Lars Liedtke  wrote:
>>
>> 
>>
>> Hello Josh,
>>
>> somehow this sounds a bit sketchy to me. Could you please extend your
>> request to your plans to setup such a system. This is not simply done
>> with choosing "the right"  library or package. This has to be a quite
>> elaborate system with multiple kinds of Software, like caches as
>> redis and/or elasticsearch, most propably load balancers and multiple
>> application servers (which could be run with django). But simply
>> sending a question like you did will not solve the prpably appearing
>> problems you'll be facing, if you really will that many users.
>>
>> Cheers
>>
>> Lars
>>
>> Am 30.03.21 um 13:32 schrieb Josh moten:
>>> I am creating an auction that will be hosting millions to possibly
>>> billions of users so I am trying to figure out which would be the
>>> best library to use for scalability at a rapid pace. I am positive
>>> to reach a million users in four months. What is the best library
>>> and/or package to us for over 100k+ users per second? --
>>> 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
>>> <mailto:django-users+unsubscr...@googlegroups.com>.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/b0ed59a5-5892-4a0e-b159-adc89476da78n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/b0ed59a5-5892-4a0e-b159-adc89476da78n%40googlegroups.com?utm_medium=email_source=footer>.
>> -- 
>> ---
>> punkt.de GmbH
>> Lars Liedtke
>> .infrastructure
>>
>> Kaiserallee 13a  
>> 76133 Karlsruhe
>>
>> Tel. +49 721 9109 500
>> https://infrastructure.punkt.de
>> i...@punkt.de
>>
>> AG Mannheim 108285
>> Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein
>> -- 
>> You received this message because you are subscribed to a topic in
>> the Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/7XmCZgz3XzI/unsubscribe
>> <https://groups.google.com/d/topic/django-users/7XmCZgz3XzI/unsubscribe>.
>> To unsubscribe from this group and all its topics, send an email to
>> django-users+unsubscr...@googlegroups.com
>> <mailto:django-users+unsubscr...@googlegroups.com>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/b93ddf40-0c57-732c-36af-c53728bb7cd4%40punkt.de
>> <https://groups.google.com/d/msgid/django-users/b93ddf40-0c57-732c-36af-c53728bb7cd4%40punkt.de?utm_medium=email_source=footer>.
> -- 
> 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
> <mailto:django-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.goog

Re: Django asychronous for millions of users

2021-03-30 Thread Lars Liedtke
Hello Josh,

somehow this sounds a bit sketchy to me. Could you please extend your
request to your plans to setup such a system. This is not simply done
with choosing "the right"  library or package. This has to be a quite
elaborate system with multiple kinds of Software, like caches as redis
and/or elasticsearch, most propably load balancers and multiple
application servers (which could be run with django). But simply sending
a question like you did will not solve the prpably appearing problems
you'll be facing, if you really will that many users.

Cheers

Lars

Am 30.03.21 um 13:32 schrieb Josh moten:
> I am creating an auction that will be hosting millions to possibly
> billions of users so I am trying to figure out which would be the best
> library to use for scalability at a rapid pace. I am positive to reach
> a million users in four months. What is the best library and/or
> package to us for over 100k+ users per second? --
> 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
> <mailto:django-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b0ed59a5-5892-4a0e-b159-adc89476da78n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/b0ed59a5-5892-4a0e-b159-adc89476da78n%40googlegroups.com?utm_medium=email_source=footer>.

-- 
---
punkt.de GmbH
Lars Liedtke
.infrastructure

Kaiserallee 13a 
76133 Karlsruhe

Tel. +49 721 9109 500
https://infrastructure.punkt.de
i...@punkt.de

AG Mannheim 108285
Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b93ddf40-0c57-732c-36af-c53728bb7cd4%40punkt.de.