Re: Static Code analysis and Security Scanning tools for Django Web Applications
i'd recommend bugbear and bandit, but afaik they are already in prospector On Wed, 6 Jul 2022 at 06:16, Ram wrote: > Hi, > > We have tried Prospector tool: https://prospector.landscape.io/en/master/ > > and got the following result > > > Check Information >> = >> Started: 2022-07-05 20:29:59.548372 >> Finished: 2022-07-05 20:38:58.411776 >> Time Taken: 538.86 seconds >>Formatter: grouped >> Profiles: default, no_doc_warnings, no_test_warnings, >> strictness_medium, strictness_high, strictness_veryhigh, no_member_warnings >> Strictness: None >> Libraries Used: django, celery >>Tools Run: dodgy, mccabe, profile-validator, pycodestyle, >> pyflakes, pylint >> Messages Found: 17186 > > > but wondering if you guys use any other better tools than this. Our goal > is find out gaps and error from the following items: > > 1. Security scanning > 2. Static code analysis > 3. Vulnerabilities scanning > > Best regards, > ~Ram > > > > > -- > 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/CA%2BOi5F17JJhVcAa5WY3gGSLX%3Db5qOhbK%3D2LeRBngtKsxvKiogw%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CA%2BOi5F17JJhVcAa5WY3gGSLX%3Db5qOhbK%3D2LeRBngtKsxvKiogw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Best Regards, Christian Ledermann Galway, IE Mobile : +353 (0) 899748838 https://www.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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/CABCjzWqy%2Brx1mzEtJeNgM80%2Bf_uaFs-GrV-n_pz1%3D4hZeXDO6A%40mail.gmail.com.
Re: Generating Calendar files for iPhone and Android with Pthon3/django
icalendar is tried and tested and feature complete. OTOH if you want just to serve the iCal files from Google or Apple you don't even need to parse then, just pass them on? On Tue, 2 Aug 2022 at 15:48, lone...@gmail.com wrote: > I found: https://pypi.org/project/icalendar/. Are there any others out > there? > > On Tuesday, August 2, 2022 at 10:41:44 AM UTC-4 Ryan Nowakowski wrote: > >> The standard is called iCal. There are a few different python libraries >> to choose from. >> >> >> On August 1, 2022 2:51:34 PM CDT, "lone...@gmail.com" >> wrote: >>> >>> Hello all, >>> >>> I want to generate calendar files for both Android and iPhone. I >>> do not want to connect to the Google or Apple APIs to do this. I just want >>> static files that are downloaded from my webapp to the mobile device. How >>> and can this be done? >>> >>> Thank you. >>> >>> -- > 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/fab30b9f-5afd-459e-9186-f798baedefe5n%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/fab30b9f-5afd-459e-9186-f798baedefe5n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Best Regards, Christian Ledermann Galway, IE Mobile : +353 (0) 899748838 https://www.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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/CABCjzWoiEzdFzg2YRtiW4vz1imGhxJ_ejsz-2Li0AupwCFzT-Q%40mail.gmail.com.
Re: Upgrading Django from 3.2.16 to 4.1.x
Try: https://github.com/browniebroke/django-codemod or https://github.com/adamchainz/django-upgrade On Tue, 17 Jan 2023 at 05:18, 'Ellinghaus, Lance J' via Django users < django-users@googlegroups.com> wrote: > I will be upgrading from Django 3.2.16 to 4.1.x and wanted to know if > anyone has any suggestions. I am using oracle as the backend. > > The release notes do not go into much detail. > > Do I just need to install the Django 4.1.x software and run the > makemigrations to do the upgrade? > > > > Thank you, > > *Lance Ellinghausen* > > > > -- > 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/63c62f61.050a0220.cc9c2.6fc3SMTPIN_ADDED_MISSING%40gmr-mx.google.com > <https://groups.google.com/d/msgid/django-users/63c62f61.050a0220.cc9c2.6fc3SMTPIN_ADDED_MISSING%40gmr-mx.google.com?utm_medium=email&utm_source=footer> > . > -- Best Regards, Christian Ledermann Galway, IE Mobile : +353 (0) 899748838 https://www.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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/CABCjzWqYS_LTdLLaE5jwKqTBf-nwrrHQyqJz96HUw2MtUSQCKQ%40mail.gmail.com.
Re: Django for latex
see https://github.com/4teamwork/ftw.book it should be pretty straightforward to port it to django On 23 January 2015 at 12:41, Sergiy Khohlov wrote: > try to use texi2pdf > > Of course this list for django not LaTex > > Many thanks, > > Serge > > > +380 636150445 > skype: skhohlov > > On Fri, Jan 23, 2015 at 10:37 AM, Hitesh Sofat > wrote: >> >> I want to generate pdf using latex. Please guide me for this , anybody >> having any tutorial please share it here. >> >> -- >> 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 email to django-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/5666b161-6abe-43e0-b8ef-3e11c6607bf9%40googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > > -- > 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 email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CADTRxJO6BqTTzWn1-gdK7Qw5SQgA-LW1c07air_uG41mDke_zw%40mail.gmail.com. > > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann London - UK Mobile : +44 7474997517 <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWosnrsVRkRi1YL03c%3Dr8N8wWB7L0f5ZsVtNMZuRDT4D3g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Custom management commands provided as only .pyc files?
you can easily decompile pyc into py files http://stackoverflow.com/questions/5287253/is-it-possible-to-decompile-a-compiled-pyc-file-into-a-py-file so it doesn't protect your source code. On Tue, Aug 12, 2014 at 2:55 PM, Stodge wrote: > As explained in https://code.djangoproject.com/ticket/14952, Django doesn't > support custom management commands that are only provided as .pyc files. I > have a requirement with my project that I cannot distribute the .py files - > only the .pyc. It's a roundabout way of not providing the source code when > we install our software on a client's server. Is the only recommended way > around this to hack django/core/management/init.py? Is it acceptable to > monkey patch the file instead? I don't want to hack the Django source as it > will break when I upgrade Django in the future. 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. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/6b8f36ee-3419-4af7-a46c-43236b8620b0%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann London - UK Mobile : +44 7474997517 <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWrK%2BXWnsxUF5Se3keZ-y6k720zaJt4ipAxAS01bx5YZxA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Django 1,11 upgrade, render template with context in template.Node
In Django 1,8 it worked but in Django 1.11 it throws: TypeError: context must be a dict rather than RequestContext. The code is: class EpilogueNode(template.Node): def __init__(self): # noqa: D102 self.epilogue_template = template.loader.get_template('themes/presenter_epilogue.html') def render(self, context): # noqa: D102 rendered = self.epilogue_template.render(context) In https://docs.djangoproject.com/en/1.11/ref/templates/upgrading/ it is documeted that I need to pass a dict as context, but the context passed to Node,render is a RequestContext. How can I upgrade this to 1.11? -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWp-Z4SNhjj7kSDDoanvMtcsVfiDyuvAU%3Dc-fRx%2BYALm%2BQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Django 1,11 upgrade, render template with context in template.Node
cool thanks I try that :-) Django 1.11 vs 2.x => we are still on python 2.7 so the first step is Django 1.11 with python 2.7, that 1.11 upgrade to python 3.x and afterwards (well you get the timeline) Our codebase is 11 years old so there are some stumble blocks upgrading. On 5 March 2018 at 05:50, Bernd Wechner wrote: > Can't say I'm experienced with template.Node, but you piqued my curiosity so > I found this: > > https://stackoverflow.com/questions/14434624/how-to-get-dictionary-of-requestcontext-imported-from-django-template > > which may help, but am left wondering why upgrade to 1.11 when 2.0 is out > already and the way to go? I'm on 1.11 and about to move to 2.0. > > Regards, > > Bernd. > > > On Saturday, 3 March 2018 06:26:46 UTC+11, Christian Ledermann wrote: >> >> In Django 1,8 it worked but in Django 1.11 it throws: >> >> TypeError: context must be a dict rather than RequestContext. >> >> The code is: >> >> class EpilogueNode(template.Node): >> >> def __init__(self): # noqa: D102 >> self.epilogue_template = >> template.loader.get_template('themes/presenter_epilogue.html') >> >> def render(self, context): # noqa: D102 >> rendered = self.epilogue_template.render(context) >> >> In https://docs.djangoproject.com/en/1.11/ref/templates/upgrading/ it >> is documeted that I need to pass a dict as context, but the context >> passed to Node,render is a >> RequestContext. >> >> How can I upgrade this to 1.11? >> >> >> >> -- >> Best Regards, >> >> Christian Ledermann >> >> Newark-on-Trent - UK >> Mobile : +44 7474997517 >> >> https://uk.linkedin.com/in/christianledermann >> https://github.com/cleder/ >> >> >> <*)))>{ >> >> If you save the living environment, the biodiversity that we have left, >> you will also automatically save the physical environment, too. But If >> you only save the physical environment, you will ultimately lose both. >> >> 1) Don’t drive species to extinction >> >> 2) Don’t destroy a habitat that species rely on. >> >> 3) Don’t change the climate in ways that will result in the above. >> >> }<(((*> > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/0d289efe-614b-4fa8-ad87-87d559b6aaa3%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWrwSY6oNwX4hcpDKZXmYyDnd1BqvTJaGGoR5VLMwc2Vbw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Sample of GeoDjanco websites
is group and stop receiving emails from it, >>>>>> send an email to django-users...@googlegroups.com. >>>>>> To post to this group, send email to django...@googlegroups.com. >>>>>> Visit this group at https://groups.google.com/group/django-users >>>>>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_group_django-2Dusers&d=DwMFaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=tcxwEFWul8EmzesK5dqtHA&m=HDIEjiVN3JnJ4RZLb5p_rIswZ_ZtDXpVipTWH2L8UW0&s=eT0OXUyGFTYvakxg-ABKImkRRWzTwU4L-eaeizEAKWw&e=> >>>>>> . >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/django-users/09ae2680-65d0 >>>>>> -4c6e-bb32-9f776a76f138%40googlegroups.com >>>>>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_msgid_django-2Dusers_09ae2680-2D65d0-2D4c6e-2Dbb32-2D9f776a76f138-2540googlegroups.com-3Futm-5Fmedium-3Demail-26utm-5Fsource-3Dfooter&d=DwMFaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=tcxwEFWul8EmzesK5dqtHA&m=HDIEjiVN3JnJ4RZLb5p_rIswZ_ZtDXpVipTWH2L8UW0&s=ZK7YOasVQJqffkQfEkTomR92l7o5KhlF0WUgA8tmOR0&e=> >>>>>> . >>>>>> For more options, visit https://groups.google.com/d/optout >>>>>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_optout&d=DwMFaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=tcxwEFWul8EmzesK5dqtHA&m=HDIEjiVN3JnJ4RZLb5p_rIswZ_ZtDXpVipTWH2L8UW0&s=rFTy-3rPQlKc2jCxCZk2E6QeqDt6_AAbtKnkRzaJyjU&e=> >>>>>> . >>>>>> >>>>> -- >>>>> Fight On! >>>>> >>>>> Zachary Nickens >>>>> znic...@usc.edu >>>>> >>>>> >>>>> >>>>> >>>>> Become a Member of the Wild Sheep Foundation to Put and Keep Wild >>>>> Sheep on the Mountain <https://www.wildsheepfoundation.org/> >>>>> >>>>> -- >>>>> 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...@googlegroups.com. >>>>> To post to this group, send email to django...@googlegroups.com. >>>>> Visit this group at https://groups.google.com/group/django-users. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/django-users/CAEapDEBqPaC_ >>>>> 8bYq8b%2BSgtv6Utv_BHc%3Dhgc38jSZ58hMtQpUiw%40mail.gmail.com >>>>> <https://groups.google.com/d/msgid/django-users/CAEapDEBqPaC_8bYq8b%2BSgtv6Utv_BHc%3Dhgc38jSZ58hMtQpUiw%40mail.gmail.com?utm_medium=email&utm_source=footer>. >>>>> >>>>> >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >>>> 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...@googlegroups.com. >>>> To post to this group, send email to django...@googlegroups.com. >>>> Visit this group at https://groups.google.com/group/django-users. >>>> To view this discussion on the web visit https://groups.google.com/d/ms >>>> gid/django-users/CANoUts50JfjeaanLmJXBBiZ%2B_Oc1m-6O3q7ZZkM7 >>>> pANi8fL-KA%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/django-users/CANoUts50JfjeaanLmJXBBiZ%2B_Oc1m-6O3q7ZZkM7pANi8fL-KA%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>>> >>>> -- >>>> 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...@googlegroups.com. >>>> To post to this group, send email to django...@googlegroups.com. >>>> Visit this group at https://groups.google.com/group/django-users. >>>> To view this discussion on the web visit https://groups.google.com/d/ms >>>> gid/django-users/0ae3bbf7-60bf-f289-bcbb-73e6658dc553%40djan >>>> godeployment.com >>>> <https://groups.google.com/d/
Re: Django 1,11 upgrade, render template with context in template.Node
For the record, I ended up with: def get_context_dict_request(context): """Decompose a Context or a RequestContext to a request and dict.""" ctx = context.flatten() try: request = context.request except AttributeError: request = None return ctx, request class EpilogueNode(template.Node): def __init__(self): # noqa: D102 self.epilogue_template = template.loader.get_template('themes/presenter_epilogue.html') def render(self, context): # noqa: D102 context, request = get_context_dict_request(context) rendered = self.epilogue_template.render(context=context, request=request) On 5 March 2018 at 08:49, Christian Ledermann wrote: > cool thanks I try that :-) > Django 1.11 vs 2.x => we are still on python 2.7 so the first step is > Django 1.11 with python 2.7, that 1.11 upgrade to python 3.x and > afterwards (well you get the timeline) > Our codebase is 11 years old so there are some stumble blocks upgrading. > > On 5 March 2018 at 05:50, Bernd Wechner wrote: >> Can't say I'm experienced with template.Node, but you piqued my curiosity so >> I found this: >> >> https://stackoverflow.com/questions/14434624/how-to-get-dictionary-of-requestcontext-imported-from-django-template >> >> which may help, but am left wondering why upgrade to 1.11 when 2.0 is out >> already and the way to go? I'm on 1.11 and about to move to 2.0. >> >> Regards, >> >> Bernd. >> >> >> On Saturday, 3 March 2018 06:26:46 UTC+11, Christian Ledermann wrote: >>> >>> In Django 1,8 it worked but in Django 1.11 it throws: >>> >>> TypeError: context must be a dict rather than RequestContext. >>> >>> The code is: >>> >>> class EpilogueNode(template.Node): >>> >>> def __init__(self): # noqa: D102 >>> self.epilogue_template = >>> template.loader.get_template('themes/presenter_epilogue.html') >>> >>> def render(self, context): # noqa: D102 >>> rendered = self.epilogue_template.render(context) >>> >>> In https://docs.djangoproject.com/en/1.11/ref/templates/upgrading/ it >>> is documeted that I need to pass a dict as context, but the context >>> passed to Node,render is a >>> RequestContext. >>> >>> How can I upgrade this to 1.11? >>> >>> >>> >>> -- >>> Best Regards, >>> >>> Christian Ledermann >>> >>> Newark-on-Trent - UK >>> Mobile : +44 7474997517 >>> >>> https://uk.linkedin.com/in/christianledermann >>> https://github.com/cleder/ >>> >>> >>> <*)))>{ >>> >>> If you save the living environment, the biodiversity that we have left, >>> you will also automatically save the physical environment, too. But If >>> you only save the physical environment, you will ultimately lose both. >>> >>> 1) Don’t drive species to extinction >>> >>> 2) Don’t destroy a habitat that species rely on. >>> >>> 3) Don’t change the climate in ways that will result in the above. >>> >>> }<(((*> >> >> -- >> 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 email to django-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/0d289efe-614b-4fa8-ad87-87d559b6aaa3%40googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > > > -- > Best Regards, > > Christian Ledermann > > Newark-on-Trent - UK > Mobile : +44 7474997517 > > https://uk.linkedin.com/in/christianledermann > https://github.com/cleder/ > > > <*)))>{ > > If you save the living environment, the biodiversity that we have left, > you will also automatically save the physical environment, too. But If > you only save the physical environment, you will ultimately lose both. > > 1) Don’t drive species to extinction > > 2) Don’t destroy a habitat that species rely on. > > 3) Don’t change the climate in ways that will result in the above. > > }<(((*> -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/chri
Re: How to use Graphviz/Networkx in django?
https://django-extensions.readthedocs.io/en/latest/graph_models.html On 5 April 2018 at 19:10, wrote: > Hi everyone, > If I have three models and I successfully displayed the data using templates > and views, how can I use graphviz or networkx to draw graph using the data > that I displayed? > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/0dc4b526-9643-4096-9726-6277c807b33b%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWoxR0wz-62vfVi-Ukuv%3D9v132P78vfyb4QVUjSruMaJSA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Public Django administrative database
https://github.com/cleder/os-opendata-edubase TL;DR: use OS-Open On 18 May 2018 at 09:18, Daniel Chimeno wrote: > Hi community! > > I'm involved in a project heavily related to administrative geographic > entities in UK. > (postal_sectors, postal areas, etc..) > Although at the moment is only for UK, could be expanded to other > countries. > At first, I look into https://github.com/django/django-localflavor/ > tree/master/localflavor/gb > but there aren't so many entities there. > > Then, searched in Google for some hours and couldn't find any reliable > database or csv. > > How you folks get this kind of information? Any resource? > If it's Django related would be awesome, if not, I could process it. > > 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. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/4bbc9772-01e2-43f1-bb5a-4a8dafa30f2a%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/4bbc9772-01e2-43f1-bb5a-4a8dafa30f2a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWpDpzV1P%3DZNcZ5J_et3RKyi3eT7%2B2Uym5r5hvZ%3DnF61HA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Public Django administrative database
and to get areas from the Postcode points: https://github.com/roblascelles/uk-postcode-map/wiki/Cobbling-together-UK-postcode-area-data On 18 May 2018 at 11:24, Christian Ledermann wrote: > https://github.com/cleder/os-opendata-edubase > > TL;DR: use OS-Open > > On 18 May 2018 at 09:18, Daniel Chimeno wrote: > >> Hi community! >> >> I'm involved in a project heavily related to administrative geographic >> entities in UK. >> (postal_sectors, postal areas, etc..) >> Although at the moment is only for UK, could be expanded to other >> countries. >> At first, I look into https://github.com/django/django-localflavor/tree/ >> master/localflavor/gb >> but there aren't so many entities there. >> >> Then, searched in Google for some hours and couldn't find any reliable >> database or csv. >> >> How you folks get this kind of information? Any resource? >> If it's Django related would be awesome, if not, I could process it. >> >> 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. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/django-users/4bbc9772-01e2-43f1-bb5a-4a8dafa30f2a%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/4bbc9772-01e2-43f1-bb5a-4a8dafa30f2a%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Best Regards, > > Christian Ledermann > > Newark-on-Trent - UK > Mobile : +44 7474997517 > > https://uk.linkedin.com/in/christianledermann > https://github.com/cleder/ > > > <*)))>{ > > If you save the living environment, the biodiversity that we have left, > you will also automatically save the physical environment, too. But If > you only save the physical environment, you will ultimately lose both. > > 1) Don’t drive species to extinction > > 2) Don’t destroy a habitat that species rely on. > > 3) Don’t change the climate in ways that will result in the above. > > }<(((*> > -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWqALhQaSvdRDF%3D-fW%3DEVxMwdMZKX_nF9KiOQfdNNYJMdw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Public Django administrative database
https://github.com/mysociety/mapit http://djjr-courses.wikidot.com/soc128:qgis-voronoi-polygons On 18 May 2018 at 11:27, Christian Ledermann wrote: > and to get areas from the Postcode points: > https://github.com/roblascelles/uk-postcode-map/wiki/Cobbling-together-UK- > postcode-area-data > > On 18 May 2018 at 11:24, Christian Ledermann < > christian.lederm...@gmail.com> wrote: > >> https://github.com/cleder/os-opendata-edubase >> >> TL;DR: use OS-Open >> >> On 18 May 2018 at 09:18, Daniel Chimeno wrote: >> >>> Hi community! >>> >>> I'm involved in a project heavily related to administrative geographic >>> entities in UK. >>> (postal_sectors, postal areas, etc..) >>> Although at the moment is only for UK, could be expanded to other >>> countries. >>> At first, I look into https://github.com/django >>> /django-localflavor/tree/master/localflavor/gb >>> but there aren't so many entities there. >>> >>> Then, searched in Google for some hours and couldn't find any reliable >>> database or csv. >>> >>> How you folks get this kind of information? Any resource? >>> If it's Django related would be awesome, if not, I could process it. >>> >>> 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. >>> To post to this group, send email to django-users@googlegroups.com. >>> Visit this group at https://groups.google.com/group/django-users. >>> To view this discussion on the web visit https://groups.google.com/d/ms >>> gid/django-users/4bbc9772-01e2-43f1-bb5a-4a8dafa30f2a%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-users/4bbc9772-01e2-43f1-bb5a-4a8dafa30f2a%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Best Regards, >> >> Christian Ledermann >> >> Newark-on-Trent - UK >> Mobile : +44 7474997517 >> >> https://uk.linkedin.com/in/christianledermann >> https://github.com/cleder/ >> >> >> <*)))>{ >> >> If you save the living environment, the biodiversity that we have left, >> you will also automatically save the physical environment, too. But If >> you only save the physical environment, you will ultimately lose both. >> >> 1) Don’t drive species to extinction >> >> 2) Don’t destroy a habitat that species rely on. >> >> 3) Don’t change the climate in ways that will result in the above. >> >> }<(((*> >> > > > > -- > Best Regards, > > Christian Ledermann > > Newark-on-Trent - UK > Mobile : +44 7474997517 > > https://uk.linkedin.com/in/christianledermann > https://github.com/cleder/ > > > <*)))>{ > > If you save the living environment, the biodiversity that we have left, > you will also automatically save the physical environment, too. But If > you only save the physical environment, you will ultimately lose both. > > 1) Don’t drive species to extinction > > 2) Don’t destroy a habitat that species rely on. > > 3) Don’t change the climate in ways that will result in the above. > > }<(((*> > -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWpfhdaHBH4rp9cZ5zNKUkXi%2BxQn2H%3DeqvoYfSkXKWGBUw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: sub accounts in django
https://docs.djangoproject.com/en/1.9/ref/contrib/sites/ On 19 May 2016 at 14:02, M Hashmi wrote: > Can you explain one of those approaches or provide a web reference with > complete A to Z implementaiton? > > On Thursday, May 19, 2016 at 2:19:04 AM UTC-7, Javier Guerra wrote: >> >> On 18 May 2016 at 17:02, Mehdy M. Haghy wrote: >> > Creating sub accounts is a pretty common scenario. >> > you have clients like (copmany1, company2, ..., company N) >> > and they have their own users, roles and permissions. >> > any recommendation on how to implement this or any package >> > recommendation? >> >> that's commonly known as "multitenant" applications. there are >> several approaches to do it, and quite a few packages to help with >> either. >> >> >> >> -- >> Javier > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/6be76ebf-0d6b-4d53-97d3-3bf8a0c3cdb4%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWpMcAi%3DEeSHP%3DB%3DGK8NpeHvMVsZeAsVOUtsG2Osc_kOmg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: sub accounts in django
http://www.two-legs.com/2011/08/creating-a-dynamic-multisite-using-django/ On 19 May 2016 at 14:20, Christian Ledermann wrote: > https://docs.djangoproject.com/en/1.9/ref/contrib/sites/ > > On 19 May 2016 at 14:02, M Hashmi wrote: >> Can you explain one of those approaches or provide a web reference with >> complete A to Z implementaiton? >> >> On Thursday, May 19, 2016 at 2:19:04 AM UTC-7, Javier Guerra wrote: >>> >>> On 18 May 2016 at 17:02, Mehdy M. Haghy wrote: >>> > Creating sub accounts is a pretty common scenario. >>> > you have clients like (copmany1, company2, ..., company N) >>> > and they have their own users, roles and permissions. >>> > any recommendation on how to implement this or any package >>> > recommendation? >>> >>> that's commonly known as "multitenant" applications. there are >>> several approaches to do it, and quite a few packages to help with >>> either. >>> >>> >>> >>> -- >>> Javier >> >> -- >> 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 email to django-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/6be76ebf-0d6b-4d53-97d3-3bf8a0c3cdb4%40googlegroups.com. >> >> For more options, visit https://groups.google.com/d/optout. > > > > -- > Best Regards, > > Christian Ledermann > > Newark-on-Trent - UK > Mobile : +44 7474997517 > > https://uk.linkedin.com/in/christianledermann > https://github.com/cleder/ > > > <*)))>{ > > If you save the living environment, the biodiversity that we have left, > you will also automatically save the physical environment, too. But If > you only save the physical environment, you will ultimately lose both. > > 1) Don’t drive species to extinction > > 2) Don’t destroy a habitat that species rely on. > > 3) Don’t change the climate in ways that will result in the above. > > }<(((*> -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWorRn%2Bc7SnjErPdc%2BX9XDtSXYZ%3DZOo87Oz%2B8h7bFxofsg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Migrating an unmigrated database from 1.6 to 1.7
or use python manage.py sqlmigrate to get the sql, which you than can apply manually On 7 July 2016 at 12:59, Avraham Serour wrote: > I believe you can checkout your project with a commit still using django 1.6 > with south and run the south migration on the remaining database > > > On Thu, Jul 7, 2016 at 2:05 PM, bobhaugen wrote: >> >> We're upgrading an app from django 1.4 step-by-step through all the >> versions at least to 1.8. Got a self-inflicted problem with the new >> migrations in 1.7. >> >> Before we went to 1.7, we added a new field to a model, and migrated the >> db using South. Then when we went to 1.7, we restarted all the migrations. >> >> Unfortunately, we had one database that did not get the South migration >> with the new field. >> >> When we merge in the new code with the new field and try a migrate on the >> unmigrated database, it does nothing. I suppose because all we got now is >> the new-in-1.7 initial migration. >> >> And of course when I try to run the new code against the unmigrated db, I >> get an error about the missing field. >> >> I know we did wrong to leave that db unmigrated. But do we have any >> options for recovery now? Other than dump the data, recreate the db, and >> reload? >> >> -- >> 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 email to django-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/3b316785-23c0-4d49-9150-49da28d301ac%40googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAFWa6tLV2O__terOLDDMm1Eo1XhURjSMKps6nF4Hot7FDVLAYw%40mail.gmail.com. > > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWremkackG96v80uUN6V3TS5H23tv_Yc_MGXKWYEigo%2BUg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Postcode Search
have a look at https://github.com/cleder/os-opendata-edubase import of uk postcodes from ordonance survey: https://github.com/cleder/os-opendata-edubase/blob/master/fabric/fabfile.py#L286 get points near to: https://github.com/cleder/os-opendata-edubase/blob/master/django/schools/views.py#L63 or https://github.com/cleder/os-opendata-edubase/blob/master/django/schools/views.py#L120 HTH On 25 August 2016 at 10:25, 'David Turner' via Django users wrote: > Thanks for this but am looking for Uk Postcodes. Will continue my research. > > On 24 August 2016 at 15:10, Derek wrote: >> >> The Google geocoding API can help - see: >> https://developers.google.com/maps/documentation/geocoding/intro >> Their example shows the ZIP code being returned in the JSON/XML response. >> >> Or there is: https://www.zipcodeapi.com/ >> >> Of course, you need to adhere to the terms&conditions of these service >> providers. >> >> >> On Tuesday, 23 August 2016 23:19:53 UTC+2, dtdave wrote: >>> >>> I am looking to add the facility to "find my nearest" by postcode to my >>> django app. >>> >>> Does anyone have any recommendations for this facility? >>> >>> Many thanks in advance. >> >> -- >> 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/-DQWcH9zkbA/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> django-users+unsubscr...@googlegroups.com. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/ca6a1b18-c6b7-4292-be7c-edafeaea156a%40googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CALwQ%2B-tr%2Brz3NHLhwBA-tCXpguR5ozakyf7uo5Dedh-XYcD1rA%40mail.gmail.com. > > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWqJoyA454Grv0GbZ57KyAe%3D08E9hdaT78sCp7JRO0hnYg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Isolate Django apps in different Docker containers
On 25 August 2016 at 14:50, Guillaume Dupin wrote: > Hello, > > On a Django project (which will consist of several REST web services), I > would like to isolate my services (each service would be a Django > application) into different Docker containers to aim to a micro-services > architecture. It will allow to benefit of Docker isolation to update > independantly the different apps of the project and also to scale each > service idependantly according to the load increase by using load-balancers > in font of each group of services-containers (plus the numerous advantages > brought by Docker). > I understand that, by doing so, each container will run a Django server and > that this different servers will surely have to share some data. > > First, do you think it is possible to do so ? > I have searched examples of such architectural choice but I always found the > use of Docker to encapsulate a Django project (one container for the server, > one container for the DB for example) and never this idea of "one app per > container" architecture. > Do you think it is a valid approach ? yes it is, you just need to setup more than one django app container and possibly several postgresql containers as well > Has someone already tested such a solution ? > One problem I identify is : will each Django server have to be aware of all > the services or not ? that is your design decision, if every servioce has dependencies to every other service it probably is a 'not so good' architecture. services should have minimal dependencies. > To go further, if the previous idea is valid, do you think it can be coupled > with a separation of databases ? As Django can already manage different > databases, I imagined that each application could use several databases : a > common Django database (accesible from all the apps) for the generic data > and a specific database for all the app-specific data. Using a db as an integration point is not a good idea. > It would push further > the isolation of the services and improve the modularity of the whole > project (by allowing to easily delete or add a service without impacting the > others) > > Do you think it is coherent with Django concepts ? > > Thank you for your help > > Regards, > Guillaume > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/2745d24c-8de4-4922-8ace-72feeb8fdfa8%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWotaGPGRgaT_JN2F%2Bmsw1G%2BrXM8bHbqmdTcyZQmyOR9ww%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Postcode Search
also have a look at http://stackoverflow.com/questions/19703975/django-sort-by-distance/35896358#35896358 On 25 August 2016 at 13:24, 'David Turner' via Django users wrote: > Thanks for this. Exactly what I am looking for. > > On 25 August 2016 at 12:59, Christian Ledermann > wrote: >> >> have a look at https://github.com/cleder/os-opendata-edubase >> >> import of uk postcodes from ordonance survey: >> >> https://github.com/cleder/os-opendata-edubase/blob/master/fabric/fabfile.py#L286 >> >> get points near to: >> >> >> https://github.com/cleder/os-opendata-edubase/blob/master/django/schools/views.py#L63 >> or >> >> https://github.com/cleder/os-opendata-edubase/blob/master/django/schools/views.py#L120 >> >> HTH >> >> On 25 August 2016 at 10:25, 'David Turner' via Django users >> wrote: >> > Thanks for this but am looking for Uk Postcodes. Will continue my >> > research. >> > >> > On 24 August 2016 at 15:10, Derek wrote: >> >> >> >> The Google geocoding API can help - see: >> >> https://developers.google.com/maps/documentation/geocoding/intro >> >> Their example shows the ZIP code being returned in the JSON/XML >> >> response. >> >> >> >> Or there is: https://www.zipcodeapi.com/ >> >> >> >> Of course, you need to adhere to the terms&conditions of these service >> >> providers. >> >> >> >> >> >> On Tuesday, 23 August 2016 23:19:53 UTC+2, dtdave wrote: >> >>> >> >>> I am looking to add the facility to "find my nearest" by postcode to >> >>> my >> >>> django app. >> >>> >> >>> Does anyone have any recommendations for this facility? >> >>> >> >>> Many thanks in advance. >> >> >> >> -- >> >> 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/-DQWcH9zkbA/unsubscribe. >> >> To unsubscribe from this group and all its topics, send an email to >> >> django-users+unsubscr...@googlegroups.com. >> >> To post to this group, send email to django-users@googlegroups.com. >> >> Visit this group at https://groups.google.com/group/django-users. >> >> To view this discussion on the web visit >> >> >> >> https://groups.google.com/d/msgid/django-users/ca6a1b18-c6b7-4292-be7c-edafeaea156a%40googlegroups.com. >> >> For more options, visit https://groups.google.com/d/optout. >> > >> > >> > -- >> > 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 email to django-users@googlegroups.com. >> > Visit this group at https://groups.google.com/group/django-users. >> > To view this discussion on the web visit >> > >> > https://groups.google.com/d/msgid/django-users/CALwQ%2B-tr%2Brz3NHLhwBA-tCXpguR5ozakyf7uo5Dedh-XYcD1rA%40mail.gmail.com. >> > >> > For more options, visit https://groups.google.com/d/optout. >> >> >> >> -- >> Best Regards, >> >> Christian Ledermann >> >> Newark-on-Trent - UK >> Mobile : +44 7474997517 >> >> https://uk.linkedin.com/in/christianledermann >> https://github.com/cleder/ >> >> >> <*)))>{ >> >> If you save the living environment, the biodiversity that we have left, >> you will also automatically save the physical environment, too. But If >> you only save the physical environment, you will ultimately lose both. >> >> 1) Don’t drive species to extinction >> >> 2) Don’t destroy a habitat that species rely on. >> >> 3) Don’t change the climate in ways that will result in the above. >> >> }<(((*> >> >> -- >> 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/-DQWcH9zkbA/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> django-use
Re: What is the best library for Facebook social auth?
On 18 January 2017 at 07:13, christina zou wrote: > Hi, > > I am new to Django and web development in general. I am trying to > incorporate facebook social auth into django. I assume this is a common need > for which there is a well supported library. > > I was using django-social-auth and running into a lot of errors. In > particular, I am currently receiving the following error when trying to > authenticate: > > AuthAlreadyAssociated at /oauth/complete/facebook/ This facebook account is > already in use. > > > Does anyone have guidance on this error? You try to associate 2 django user accounts with the same facebook account. > > Anyways, I noticed this library has been deprecated for python-social-auth. > But when I visited its github page, I see that python-social-auth itself was > deprecated last month. So what is the recommended solution here, if not > django-social-auth? https://github.com/omab/python-social-auth/blob/master/MIGRATING_TO_SOCIAL.md > > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/ef1c348b-3992-46fb-b179-baf7ed9269e7%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWqF5Tt6tr4Cn7Ky%2B8yFLinfzCUw21SzLT-X_ZcS0SeyHA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: log out a user when user closes tab or browser
SESSION_EXPIRE_AT_BROWSER_CLOSE works for me but only when you close the browswer, closing a tab will not log you out also it depends on the browser (firefox seemed in the past to ignore this) On Thu, 21 Mar 2019 at 05:34, Sam W wrote: > Is there a way in Django to log out a user when user closes tab or > browser? This one "SESSION_EXPIRE_AT_BROWSER_CLOSE =True" Doesn't work > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/644cca74-0443-4c71-8d8e-7326a252eb2e%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/644cca74-0443-4c71-8d8e-7326a252eb2e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWq_uy06FeNF%2Bs5f5r9NOT14bcENz52HvKdTrRxKqTiHQA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Genetic Algorithm for generating timetable
Have a look at https://www.youtube.com/watch?v=OkusHEBOhmQ On Tue, 30 Apr 2019 at 17:41, Britto . wrote: > No one knows about genetic algorithm with Django > > On Mon, 22 Apr, 2019, 5:09 PM brittocj, wrote: > >> How to implement genetic algorithm in Django to develop a web application >> for timetable generation? >> >> -- >> 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 email to django-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/66b48364-c769-4c68-a2a2-29efb77d13a9%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/66b48364-c769-4c68-a2a2-29efb77d13a9%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAF0v3b5Rog8U08TQrKn3tTk9BjsHR7JU60uwKxT3VpHO6s9unQ%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAF0v3b5Rog8U08TQrKn3tTk9BjsHR7JU60uwKxT3VpHO6s9unQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWpZkW__vsiPpZqe6kXDkQ2Gw-525_wsEeuuFLNOBY5Bqw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Job opportunity: Django Developer, Newark on Trent, UK
This is an exceptional opportunity to be a key part of a team of eight developers and three sysadmins at PrimarySite, the leading provider of primary school websites. About PrimarySite We’re a 60 person company formed over ten years ago who build great products for primary schools to save them time and money, whilst enabling them to communicate more effectively with parents. Our office is located in the centre of Newark, with easy access to both train stations and the A1. About the team You would be joining us as a member of the Product Development team, working on-site with the Product Owner. We use the Kanban methodology, and support several different applications — mostly built as micro-services. Our team’s work is of a high quality — every line of code is peer reviewed and there is a minimum requirement of 90% test coverage. We constantly work to improve our processes and currently score a 10 out of 12 on the Joel Test What you’d bring to the team: At least 3 years of building web applications with Python. Experience in delivering products in an agile environment. The ability to write well structured and thoroughly tested code. A solid understanding of software design patterns, providing well-architected solutions to complex problems. We’d welcome further skills in the following areas: Django React or similar front-end framework REST APIs Redis Varnish Postgres Celery In return we’ll provide: A laptop of your choosing An adjustable standing desk and Aeron chair Flexible working Childcare vouchers Contribution pension scheme Cycle to work scheme Time for side projects to expand your skill set Conference and training opportunities Social events Up to 34 days annual leave If you’re interested in working with us, please send a covering letter and CV to j...@primarysite.net. https://primarysite.net/about-us/django-dev/ -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWryAuz2QNRzvOseLo77j0nOS3N5FHPmQv6qTDvv%2BP5aUA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: ORM for structured Logs
On 6 April 2017 at 09:15, guettli wrote: > Hello Brick Wall, how are you doing? Hello Stonemason. What is your question? I do not have a strong opinion on your approach - i don't even know the problem you are trying to solve. or how big your logs are. a couple of KB per day or some GB per hour? [the brickwall shrugs its shoulders] > > Am Dienstag, 4. April 2017 14:18:42 UTC+2 schrieb guettli: >> >> In the past I was told: Don't store logs in the database. >> >> Time (and hardware) has changed. >> >> I think it is time to store logs where I have great tools for analyzing >> logs. >> >> Storing in a model which I can access via django orm is my current >> strategy. >> >> It seems no one has done this before. I could not find such a project up >> to now. >> >> My first draft looks like this: >> >> >> class Log(models.Model): >> datetime=models.DateTimeField(default=datetime.datetime.now, >> db_index=True) >> data=jsonfield.JSONField() >> host=models.CharField(max_length=256, default='localhost', >> db_index=True) >> system=models.CharField(max_length=256, default='', db_index=True) >> >> I am missing two things: >> >> Missing1: Log level: INFO, WARN, ... >> >> Missing2: A way to store exceptions. >> >> >> What do you think? >> >> What's wrong with this, what could be improved? >> >> Regards, >> Thomas Güttler >> >> >> >> >> >> > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/c8742484-a252-4c05-939a-f7c3f2b4f505%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWr3G%3DNnqkx75CEEXZ3bMXsV9Wd31A2vhMAxytjJREEBEw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Creating multiple objects with one request in Django Rest Framework
maybe https://github.com/marcgibbons/django-rest-framework-bulk HTH On 18 April 2017 at 11:29, Camilo Torres wrote: > Hi, > > May be you can create a new Serializer, including a ListField to get > multiple seat IDs: > > class ManyMovieTicketsSerializer(serializers.Serializer): > show = serializers.IntegerField > user = serializers.IntegerField > seats = serializers.ListField(child=serializers.IntegerFields) > > def create(self, validated_data): > iterate over seats and save every instance. > > On Monday, April 17, 2017 at 1:19:23 AM UTC-4, Aamu Padi wrote: >> >> I am using Django as the backend server and Vue.js for the front end Movie >> app. >> >> I have a Ticket model >> >> class MovieTicket(models.Model): >> show = models.ForeignKey(Show) >> seat = models.ForeignKey(Seat) >> user = models.ForeignKey(User) >> purchased_at = models.DateTimeField(default=timezone.now) >> qrcode = models.ImageField(upload_to='qrcode', blank=True, null=True) >> qrcode_data = models.CharField(max_length=255, unique=True, >> blank=True) >> >> class Meta: >> unique_together = ('show', 'seat') >> >> And its related Serializer >> >> class MovieTicketSerializer(serializers.ModelSerializer): >> class Meta: >> model = MovieTicket >> fields = '__all__' >> >> To buy a new Ticket there's a view which is mapped to this url >> http://dev.site.com/api/movies/buy-ticket/: >> >> @api_view(['POST']) >> @permission_classes([IsAuthenticated]) >> def buy_ticket(request): >> serialized = MovieTicketSerializer(data=request.data) >> if serialized.is_valid(): >> serialized.save() >> return Response(serialized.data, status=status.HTTP_201_CREATED) >> return Response(serialized._errors, >> status=status.HTTP_400_BAD_REQUEST) >> >> Now from the front end (Vue.js) I can create a new movie ticket like this: >> >> const formBody = { >> show: this.$store.state.showSelected.showTime.id, >> user: this.$store.state.user.id, >> >> // selectedSeats is an array of seats that have been selected by the >> user. Here I am passing the first seat object. >> seat: this.$store.state.selectedSeats[0].seat.id >> }; >> >> this.$http.post("http://dev.site.com/api/movies/buy-ticket/";, formBody) >> .then(function (response) { >> console.log(response.data); >> }) >> .catch(function (response) { >> console.log(response); >> }); >> return; >> >> If the form was valid, this will create a new MovieTicket Object. >> >> Now, suppose if the user selected multiple seats, I can loop through each >> selectedSeats array and get the seat ids. But what I am confused is how can >> I pass multiple seat.id if Django rest framework is only accepting one seat >> per request? > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/b8c28522-cf21-4081-9563-97a869f4fa7f%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWotO%2B77TkYeJyBq%3DuKEtuPbTmnn%3DOzy%2BpmQ3AuDD462%3DA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Crone Job Issue
how does you medels.py look like? I have a hunch the definition of updated is updated = DateTimeField(default= timezone.now()) instead of updated = DateTimeField(default=timezone.now) On 18 April 2017 at 16:05, wrote: > Hi All , > > I am new for Django Framework , I need your help to fix this below issue > .I am trying to run cron job (python manage.py crontab add) but its > showing following error . > > *System check identified some issues:* > > *WARNINGS:* > *metric_db.note_appnav_table.updated: (fields.W161) Fixed default value > provided.* > *HINT: It seems you set a fixed date / time / datetime value as > default for this field. This may not be what you want. If you want to have > the current date as default, use `django.utils.timezone.now`* > *metric_db.note_automatedreg_table.updated: (fields.W161) Fixed default > value provided.* > *HINT: It seems you set a fixed date / time / datetime value as > default for this field. This may not be what you want. If you want to have > the current date as default, use `django.utils.timezone.now`* > *metric_db.note_autotest_table.updated: (fields.W161) Fixed default value > provided.* > *HINT: It seems you set a fixed date / time / datetime value as > default for this field. This may not be what you want. If you want to have > the current date as default, use `django.utils.timezone.now`* > *metric_db.note_buffer_table.updated: (fields.W161) Fixed default value > provided.* > *HINT: It seems you set a fixed date / time / datetime value as > default for this field. This may not be what you want. If you want to have > the current date as default, use `django.utils.timezone.now`* > *metric_db.note_featuredev_table.updated: (fields.W161) Fixed default value > provided.* > *HINT: It seems you set a fixed date / time / datetime value as > default for this field. This may not be what you want. If you want to have > the current date as default, use `django.utils.timezone.now`* > *metric_db.note_hardening_table.updated: (fields.W161) Fixed default value > provided.* > *HINT: It seems you set a fixed date / time / datetime value as > default for this field. This may not be what you want. If you want to have > the current date as default, use `django.utils.timezone.now`* > *metric_db.note_manualtest_table.updated: (fields.W161) Fixed default value > provided.* > *HINT: It seems you set a fixed date / time / datetime value as > default for this field. This may not be what you want. If you want to have > the current date as default, use `django.utils.timezone.now`* > *metric_db.note_planned_table.updated: (fields.W161) Fixed default value > provided.* > *HINT: It seems you set a fixed date / time / datetime value as > default for this field. This may not be what you want. If you want to have > the current date as default, use `django.utils.timezone.now`* > *metric_db.note_release_table.updated: (fields.W161) Fixed default value > provided.* > *HINT: It seems you set a fixed date / time / datetime value as > default for this field. This may not be what you want. If you want to have > the current date as default, use `django.utils.timezone.now`* > *metric_db.note_sustanance_table.updated: (fields.W161) Fixed default value > provided.* > *HINT: It seems you set a fixed date / time / datetime value as > default for this field. This may not be what you want. If you want to have > the current date as default, use `django.utils.timezone.* > > > *System configuration : * > OS: Linux > Python 2.7 and Django version 1.8.3 > > I have tried multiple ways but no luck , Could you please help me to resolve > this issue . > > Thanks > Syed > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/0860374c-cc80-4c43-9b95-c4abe02d9320%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a
Re: send email with django
try https://www.mailgun.com if you don't want to host your own smtp server On 20 April 2017 at 09:57, Antonis Christofides wrote: > You might also want to read this article of mine, which might give you lots > of ideas about what could be wrong: Why does Django not email me the 500 > internal server error? > > Regards, > > A. > > Antonis Christofides > http://djangodeployment.com > > On 2017-04-19 00:25, shahab emami wrote: > > hello > > i want to send email using django. i used to send email with pour python > before but now i can't do that in django. > > i have search about this and i have seen some tutorials on youtube in last > two days but i cant do this . > > this is in my settings.py : > > EMAIL_USE_TLS = True > EMAIL_HOST = 'smtp.gmail.com' > EMAIL_HOST_USER = 'my_gm...@gmail.com' > EMAIL_HOST_PASSWORD= 'my_password' > EMAIL_PORT = 587 > > and this is my send email: > > from django.core.mail import send_mail > def click(request): > send_mail( > 'shahab', > 'Here is the message.', > 'my_gm...@gmail.com', > ['shahabem...@yahoo.com'], > fail_silently=True > ) > return HttpResponseRedirect('index') > > but it doesn't work. > > I am running this code on localhost. but i doesn't work on heroku too. > i changed allow less secure app to on in my gmail account and > i went to this page too and i clicked on continue : > https://accounts.google.com/DisplayUnlockCaptcha > > can anybody tell me: > what am i missing ? > > > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/65e0ab09-ff5a-4ed5-89d6-e5e0991b9ea0%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/82fe4c4f-91c8-8cf0-b8b9-2f1d4d8cb75c%40djangodeployment.com. > > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWqnMe94BWBCaKcR%3DJMjktJXMx5aK2a1iZ5%3DZTAsowK1yQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Upload a excel table, generate model at run time and save it to database
I have some ancient, unfinished proof of concept code lying around in https://github.com/cleder/kotti_rdbt and https://github.com/cleder/geo_ko It uses Pyramid/kotti rather than django. It handled shapefiles and dBase file upload and converts them to sqlalchemy tables On 21 April 2017 at 07:39, wrote: > I like to create a site where users upload their excel (1 or many) and use > the platform to query the data anytime they login. > > So can someone help how can i do the below: > > > 1. How can i create a model for any excel table or shapefile at run time and > build ORM before saving it to database? Because its not possible to imagine > the column names and their data types. > > > 2. Also , like to know a simple strategy of loading those tables in database > instead of loading each imported excel table as different table in the > database. > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/07f053aa-508f-450c-946a-0b3fcfdbdff4%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWoX%3D868zYjoeiRRCBOPuma6tSixY0DrbE7xwdTVVzF5GA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Django replacement for Olap server for cubes
https://github.com/intelie/django-cubes HTH On 28 June 2017 at 12:07, Vigneshrajan wrote: > Is it is possible to used cubes and django on apache. In their blog they > have used cubes with Olap server. > Thank you. > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/082f772a-873c-4be3-8cdb-f99c48b299c5%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWqz8PJ4ySPV_rkM0wjPjB7Vq%3DkCE2AWw79Zxa1D3GWbqg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Django multi table on same model
What problem are you trying to solve and why this way? How many rows does your table have? What database are you using? On 13 July 2017 at 18:18, Kalvin Handilist wrote: > > down votefavorite > <https://stackoverflow.com/questions/45081886/django-multi-table-on-same-model#> > > I have huge table that needed to be sliced into some smaller table, ex: > campaign_01, campaign_02, ... While using django queryset with different > table name for same model, what I only know to set table name on a model > is: Model._meta.db_table = 'tableXXX' > > However this method doesn't work in single shell/request. (only work for > first time, but not for the next) -> maybe because it still on same > instance? After the second time we tried to set _meta.db_table = > 'tableYYY', it will occur an error "django.db.utils.ProgrammingError: > missing FROM-clause entry for table "tableXXX"" > > I also have tried some suggestion I read for this problem answer like: > > class ListingManager(models.Manager): > def get_custom_obj(self, table_name): > self.model._meta.db_table = table_name > return self > class ObjectName(models.Model): > objects = ListingManager() > > Try to create an Object manager to get new object, but it not work, it > still throw same error as before (on the second time setting _meta.db_table) > > The only way to make it work if we want to set multiple times for > _meta.db_table is we need to exit() the shell first, then re-enter the > shell mode (which means for loop is not gonna work). > > I know it can be achieved with raw query 'Insert into tableXXX values ()', > but any method to do it using django queryset? 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. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/fba2ca9e-874f-45b8-b285-3c116fefb036%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/fba2ca9e-874f-45b8-b285-3c116fefb036%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWpxwNiTQQ_urx3%2BkS%3DRKf_CNNUdOGg35LZ2N%2BzQMqLARA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: From old-school Post/Redirect/Get to modern web
https://blog.levit.be/new-django-admin-with-emberjs-what-are-the-news/ could give you some insights HTH On 24 July 2017 at 11:36, guettli wrote: > I use Post/Redirect/Get since several years. I use simple HTML forms (via > ModelForm) with a plain old submit-button. > > Above pattern works. > > But I think the web of the future works different. > > Up to now my web application sends html to the web client. I think modern > web applications > don't send html, they send data (in json format). > > I guess in the future web clients render the (json) data using a > library/framework. > > For me this client-side rendering is completely new. I have no clue where to > start this adventure. > > I guess django-rest-framework could help on the server side > > Has anyone hints or practical experience? > > > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/9151365a-2497-4db4--90ea50a350eb%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWppWAEf6y%2BOt-fXM3W%2Bqo78FCk7Fr8wdfEgCJExFk9d8Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Django Group Models
very roughly: User (player) table Game table table that has foreign keys to player and match and a number field that has a validator it is in [1,..,4] unique together constraint in that table for player, match, number that way you only have to change the validator when you have a match with another amount of players On 26 July 2017 at 19:57, wrote: > Very roughly. > > Something along the lines of this > > I would create a Player (players) and a Match (matches) tables. > The match table contains 4 keys (player1, player2, player3, player4) and > some extra fields (created, status, etc.) > For each player you store some type of a skill (number) and a status > (offline,lobby, playing, available), then alias, ping, etc. > The match-making logic could search for players within a certain skill range > > > On 26 Jul 2017, at 19:07, yingi keme wrote: > > What will be the best approach to designing a database schema that groups > users in a collection of 4? > > How will you create a model for lets say in an online game setting such that > you want only 4 players in a single group based on thesame criteria amongst > players? > > Creating this model is problematic for me. > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/b0856edd-1adf-44b3-b1ac-bf20c39274ac%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/BED50B18-8CF7-44E7-866D-A67854921E13%40gmail.com. > > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWpZ42%2BX6Odv89hq%3DWueiM_vge%3DnacSg3j%3DkxkUGbH%3DTkQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Retrieving objects created in trasaction
On 16 August 2017 at 19:27, roboslone - wrote: > Hi, > > I have some function (fetcher) that runs in transaction (it has to) and it > creates a bunch if new objects that are written to database after transaction > is commited. Those objects are added to a many-to-many relation. And on that > relation change a signal is fired and handled by my signal handler, that > collects objects from relation and writes them into some cache. > > The problem is that during signal handling newly created objects do have PKs, > but are not in database yet. So signal_handler in code below always gets > empty queryset. > > > def fetcher(): > with transaction.atomic(): > foo = Foo.objects.create(...) > foo.bars.add( > Bar.objects.create(...), > Bar.objects.create(...), > Bar.objects.create(...), > ... > ) > > @receiver(m2m_changed, sender=Foo.bars.through) > def signal_handler(pk_set=None, **kwargs): > # signal_handler is being called inside of a transaction block > Bar.objects.filter(pk__in=pk_set) # <-- returns empty QuerySet! > > > Is there a way to delay signal handling until transaction is committed or to > get newly created objects by PKs? https://docs.djangoproject.com/en/1.9/topics/db/transactions/#performing-actions-after-commit > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/F1A382BE-8C18-4D5B-8758-C42C18A7FC94%40gmail.com. > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWr9YzU_k7yzKB8%3Dj8EUj4e1nFbUZaZ4gTYZmz7Ma2chNA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: FROM ONLY in Postgres back-end
On 12 September 2017 at 14:32, Andrew Hankinson wrote: > Hello, > > tl;dr I'm trying to implement 'temporal tables' [0] in Django with a > Postgres backend, and I'm stuck on how to generate the appropriate SELECT > ... FROM ONLY and UPDATE queries. > > The temporal tables pattern depends on having two mirror tables. For a > simple example, let's call them "person" and "person_history". As records > are changed in "person," the previous states of that table are stored in > "person_history". > > The simplest way to implement table mirroring is to use "INHERITS" in > Postgres, e.g., > > CREATE TABLE person_history () INHERITS (person); > > This is the simplest since any changes to the 'person' schema will > automatically be reflected in person_history. (And no, I haven't tested > schema changes and column renaming and interactions with migrations with > Django just yet... it will come later). I've implemented this as Operations > in the table migrations. > > When a table linked by "INHERITS" is queried, it will query both the > 'person' and 'person_history' tables by default. This will obviously break a > lot of things in Django. (e.g., a .get() will return more than one row...) > The easiest way around that is to change "FROM" to "FROM ONLY" in all SQL > queries, e.g., > > SELECT name FROM ONLY person WHERE id = 1; > > The same goes for UPDATE. > > The part where I'm stuck is trying to figure out at what level I start > digging. It depends > Do I modify QuerySet to try and implement my own custom lookup > code? you can always do raw SQL queries, but that kind of defeats the purpose of having an ORM. > Or will I need to dig into the SQL compiler to do this? Likely. > Or is this > whole thing a waste of my time? even more likely > > Or maybe there's a magic hook somewhere I'm missing that will let me inject > what I need. I'm hoping for this one, but I haven't gotten my hopes up. :) > > Thanks in advance for your help, > -Andrew > > [0] > http://clarkdave.net/2015/02/historical-records-with-postgresql-and-temporal-tables-and-sql-2011/ > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/f3423173-d0ab-4c7c-a5af-1592947f07ca%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWqk-8p%2BqN9mLUfMuW2kAjP1Z7%3Dx8s3im78ARmsXrqkPjA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: How do I create a GEO management system using django as back-end and react as front-end?
have a look at https://github.com/cleder/os-opendata-edubase On Thu, 12 Mar 2020 at 09:55, Philip Mitchell wrote: > I want to work on a project where a user is able to mark and locate > objects on a map as in the https://www.openstreetmap.org/ > I don't know how to go about it, I have tried GeoDjango but I haven't > found a way to create the APIs yet > > -- > 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/299f9cd0-bb93-470c-89bb-7af8949d39bf%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/299f9cd0-bb93-470c-89bb-7af8949d39bf%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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/CABCjzWpzGKYLLPeJhTN9AU0FVZoBJozzeA59kzNmJ_skeB4X5g%40mail.gmail.com.
Re: how to use youtube links in my website
I would retrieve the RSS from YouTube, and process it server side with feedparser and render it in django https://pypi.org/project/feedparser/ https://feeder.co/knowledge-base/rss-feed-creation/youtube-rss/ On Sat, 16 May 2020 at 01:35, John McClain wrote: > Can't you just use the script in the body section for this on the html > page you want the video in view on. > > On Fri, 15 May 2020 at 20:17, Bunti wrote: > >> I want to make website to show the all the videos of my Youtube channel >> PLAYLISTS. I mean to say that all of my Youtube videos should be linked to >> my website. >> >> >> Can I get any video tutorial of such type of project with Django? >> >> (I have learned Django upto some level. I can do CURD by function and >> Generic Views, user registration, password update by email etc.) >> >> >> -- >> 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/96d8272e-7b5e-4e04-94ad-7b80f9a0ed87%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/96d8272e-7b5e-4e04-94ad-7b80f9a0ed87%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > > > -- > John McClain > > Cell: 085-1977-823 > Skype: jmcclain0129 > Email: jmcclain0...@gmail.com > > -- > 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/CAN-hv_qsELgRoZDTwS0HU2i9AWFSgBQLE0XcVRuY7GAADHo25w%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAN-hv_qsELgRoZDTwS0HU2i9AWFSgBQLE0XcVRuY7GAADHo25w%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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/CABCjzWpFDyDY%2BJoESkV_ND8QGFWE8T1mU%2BX9KEnBuAhC7SBSqQ%40mail.gmail.com.
Re: Building a UNIX style permissions system in Django
https://github.com/diefenbach/django-permissions On 27 July 2015 at 17:51, Some Developer wrote: > I have a need for a more robust permission system for objects in Django than > the one provided by it in the core distribution. > > I want to have users and groups and each to have read, write and edit > permissions but I have no idea how to go about how to implement this. > > I was thinking of having a permissions mixin that had three ManyToManyFields > with each of them representing the users that had read, write and edit > permissions but I'm stuck on how to go about implementing the group > permissions. > > I basically need to add these fields to the models of objects that I want > permissions for so I was thinking of making them abstract base models and > then having all my other models inherit from them. This should have the > advantage of picking up all the permission based methods that I can use on > objects that make use of the permission system. > > Can anyone offer any advice please? > > 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. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/55B66192.3000707%40googlemail.com. > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWrOqzUEDX4F7p916i8aYWJi3DajiuBCR45o2aFDq2%2BHhg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: How to add fields to an existing model dynamically? Also how to modify existing field of a model dynamically?
you can use a technique from the zope world known as Annotations: http://davidemoro.blogspot.co.uk/2015/02/kotti-cms-annotations-store-arbitrary-data.html which basically means that you store additional data in a json field have a look at: https://github.com/octobot-dev/pulpo-forms-django https://github.com/MarkusH/django-dynamic-forms or https://wagtail.io/ On 31 July 2015 at 04:28, SriPrad wrote: > Hi, > Thanks for the quick response. > I understand that it is not typical to have dynamic model. > However the requirements I have need to allow the admin to make changes/ > create models dynamically. > I have looked at South library. However my understanding is that it is not > supported for Django 1.7 and later versions. It seems that the functionality > is merged in Django 1.7. > > Please advise. > > Regards, > Srinivasa Pradeep > > > > On Thursday, July 30, 2015 at 5:08:07 PM UTC+5:30, vicherot wrote: >> IMHO (maybe i'm wrong) i think that its not quite good modify your database >> structure dynamically to often, maybe you must to think a better design of >> your model. >> I'm working on a Health bussiness in Argentina and never need to >> change the database structure to modify a medical form. (for now) >> >> >> Now, for your exclusive problem, maybe using south (just like the project >> you say) you can do the changes to your database dinamically. >> >> Regards! >> >> >> >> >> >> -- >> Rafael E. Ferrero >> >> >> >> 2015-07-30 5:01 GMT-03:00 SriPrad : >> >> Hi, >> I am new to Django and Python!. >> I am using Django 1.8.3 along with Python 3.2 and using sqlite as the >> database. >> I am trying to setup a site using Django wherein the model is created >> dynamically( For eg: a Medical form) >> The fields of the form are stored in db and the model created dynamically >> (reference: https://github.com/willhardy/dynamic-models) >> The admin guys can modify the fields of this medical form from the admin >> site. At this time, I would like to modify the model to match the schema >> modifications done by admin guys. >> I understand prior to Django 1.7, there was django.db.models.loading module >> that helped in this. >> >> With the current version of Django, how can I add/modify/delete the fields >> of the dynamic model dynamically? >> >> Your help and suggestions are most welcome. >> >> Regards, >> Srinivasa Pradeep >> >> >> >> >> >> -- >> >> 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...@googlegroups.com. >> >> To post to this group, send email to django...@googlegroups.com. >> >> Visit this group at http://groups.google.com/group/django-users. >> >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/6a62db2f-5dd7-417c-9d6b-fbbed6b5a149%40googlegroups.com. >> >> For more options, visit https://groups.google.com/d/optout. > > -- > 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 email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/4d02e9dc-98dc-4120-ad19-caac524bc57c%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWp-ayiRpB%2B3Ab332wKzj4%3DDfQS9k4dArs6Wc1YtaMaXNQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Provide me Links to learn django framework on Linux
http://chimera.labs.oreilly.com/books/123400754/index.html On 3 February 2016 at 14:33, Rafael E. Ferrero wrote: > For Python > https://www.codecademy.com/learn/python > https://www.hackerrank.com/domains/python/py-introduction > > For Django > https://docs.djangoproject.com/en/1.9/ > > > > Rafael E. Ferrero > > 2016-02-03 8:30 GMT-03:00 Ajay Sharma : >> >> Hi everyone on the Group. >> >> I want resources and web links, where i can learn Django Framework On >> Linux platform as I >> >> am using Ubuntu for the development. >> >> Please help me . >> >> thank you to every one in Advance. >> >> From Ajay . :) >> >> -- >> 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 email to django-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/4386ebcc-6ebd-4689-9f0b-a4496edaa41b%40googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAJJc_8XSoLXCVpumKfE%2BpxJ7XuG2PDp1Jn0VwOZbko04TygZzw%40mail.gmail.com. > > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWrA94yfJGM_kHDAzz_F%3D%3DaKuASN3mcfYV4NjXdsfRnjWg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: django social auth
django social auth is deprecated use https://github.com/omab/python-social-auth On 6 February 2016 at 17:43, ahmed waqas Nasir wrote: > i am new in django i am trying to add thirdparty verification using social > auth > > after configuration when i run migrations i got following error > > InDjango110Warning: SubfieldBase has been deprecated. Use > Field.from_db_value i stead. RemovedInDjango110Warning) > > i know the reason of this error is because i am using django 1.9 and there > is some fucntion or something which is depricated in 1.9 and that is related > to database.. > but i dont know how to solve this problem > > can any one help? > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/05758f04-94ba-46fc-bc0e-39ce6ec00182%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWpMNZ1bPv_6RpU-_xiLNr021jygjUMua709OBexQiGQ-w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: What Python/Django code checkers do you recommend?...
//bristle.com -- Glad to be of service! >> Open Source: Without walls and fences, we need no Windows or Gates. >> >> >> -- >> 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 email to django-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/5707D5A0.8020408%40bristle.com. >> For more options, visit https://groups.google.com/d/optout. > > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAFWa6t%2BuiasSxCOd4JgZe_wPbMudCwRxx%2BhFwziMEMzGUDRrPw%40mail.gmail.com. > > For more options, visit https://groups.google.com/d/optout. -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWor94957LOen%3D3RyY_e5k-tg7LW2mD23qoUAAnGJ%3D%2BL7Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Progress bar with celery
How did you try to do that? I am puzzled and have actually no idea what you are trying to do. Or is the question why is my celery task not running? On Thu, 7 Jun 2018 at 05:30, Mohammed Noor wrote: > Hello guys, > > I have been trying to create a progress bar in my django application using > celery. But i have been greatly unsuccessful in trying to make it work. It > would be great if i can get some examples/tutorials which show how to do > it. > > The problem im facing is, my configured tasks aren’t seem to be running. > No matter what i try, the celery tasks just don’t run. > Please help me out. > > -khasim > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/3AB4400F-D496-49C5-9DA0-FC72DA908FAA%40gmail.com > . > For more options, visit https://groups.google.com/d/optout. > -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWp1Vd4W7219j5WEw90cSJA9jq1Z6bxeq7v4h6FwK86APw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: fb login issue
The version of social auth you are using is ancient, and most probably not work anymore. try: > social-auth-core==1.7.0 > > social-auth-app-django==1.2.0 > > -- Best Regards, Christian Ledermann Newark-on-Trent - UK https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWqin7_QTE_qRE2Qym0bu%2Br4ZY60fC1XhshogsRZ5MeQXA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Geographical location filter app in Django
Go with geo django, postgis will accelerate these kind of lookups with indices. https://stackoverflow.com/questions/19703975/django-sort-by-distance/35896358#35896358 On Thu, 23 Aug 2018 at 09:04, Benjamin Smith wrote: > I would like to create a market place like app with Djano as the backend > server, where users can buy/sell items. In the app I would like have to a > feature related to geographic region of a user. Such as, to filter out > items in a given specific miles of radius. > > Example use case: > >- User uploads an item, get the gps cordinates from their mobile and >store in db. >- User can search item, also filter to only get items in X miles >radius. > > > For this feature > >1. I have looked at GeoDjango. But it seems like I need to extend the >postgresql database to use it, also by using the postgis engine. >2. I have also looked at the Haversine formula for nearby queries. >3. There is also an option for multiple database support. > > > But I have some initial doubts before proceeding and your insights would > really help me alot. Could you please help me with this queries: > >1. I will have to store user data and some other data including the >geo location. Will there be any difference/side effects between >postgresql_psycopg2 and postgis, to store all the data in one single db? >2. For my simple use case would you rather prefer to go with the >Haversine formula? Or integrating GeoDjango will help me lot in the future? >3. Or having a multiple database support be better for me or it will >be an over head? > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAM4YLW%2B%2BOS%2B6JqJW5Bs211FHAHo3n6F9sHW0B%2BeN%3DPE4OEGR9g%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAM4YLW%2B%2BOS%2B6JqJW5Bs211FHAHo3n6F9sHW0B%2BeN%3DPE4OEGR9g%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWp8hxN0JbdSqk8-c18ZaV_7GCSukOpt-31MeZBK5DhgGA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: difference between id and pk
If you do not add a primarykey explicitly django will create a field `id` for you by default. Normally this is an autoincrement integer. see https://docs.djangoproject.com/en/2.1/topics/db/models/#automatic-primary-key-fields You may name your primary key field to whatever you want. `pk` is an alias that will always be the field you defined as your primary key field. Normally you will be fine with the autocreated primary key fields in which case `id` and `pk` will have the same effect, but when you choose to give your field a different name `id` and `pk` will differ. In your code you should prefer `pk` over `id` for the above reasons On Fri, 2 Nov 2018 at 11:37, amit pant wrote: > I want to know, what is main difference between pk and id on django. > Would appreciate if any one could help me. > 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. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/d8f5be26-2319-4a81-82d0-97c5ddfcb048%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWr9K%2BRchN_4ik9mTY49crdGhpEq7A09ShojGbY3nMiM-Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Django jobs
gt;>To view this discussion on the web visit > >>> > https://groups.google.com/d/msgid/django-users/df2eb30f-e34a-40d5-a356-f83850cd246a%40googlegroups.com > >>>< > https://groups.google.com/d/msgid/django-users/df2eb30f-e34a-40d5-a356-f83850cd246a%40googlegroups.com?utm_medium=email&utm_source=footer > >. > >>>For more options, visit https://groups.google.com/d/optout. > >>-- 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 post to this group, send email to django-users@googlegroups.com > >><mailto:django-users@googlegroups.com>. > >>Visit this group at https://groups.google.com/group/django-users. > >>To view this discussion on the web visit > >> > https://groups.google.com/d/msgid/django-users/93AAA037-BE45-4A29-A9F7-5EA56DD816BE%40gmail.com > >>< > https://groups.google.com/d/msgid/django-users/93AAA037-BE45-4A29-A9F7-5EA56DD816BE%40gmail.com?utm_medium=email&utm_source=footer > >. > >>For more options, visit https://groups.google.com/d/optout. > >> > >> -- > >> 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 django-users+unsubscr...@googlegroups.com>. > >> To post to this group, send email to django-users@googlegroups.com > <mailto:django-users@googlegroups.com>. > >> Visit this group at https://groups.google.com/group/django-users. > >> To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAA%3Diw__EK_Jfa%3DRSudyLvvZPsrvtaUPeQwsaQchLnu1PweCiEA%40mail.gmail.com > < > https://groups.google.com/d/msgid/django-users/CAA%3Diw__EK_Jfa%3DRSudyLvvZPsrvtaUPeQwsaQchLnu1PweCiEA%40mail.gmail.com?utm_medium=email&utm_source=footer > >. > >> For more options, visit https://groups.google.com/d/optout. > > > > -- > > 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 email to django-users@googlegroups.com. > > Visit this group at https://groups.google.com/group/django-users. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/71816da9-e1ad-52c4-cc4e-3b7e03de5a55%40dewhirst.com.au > . > > For more options, visit https://groups.google.com/d/optout. > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CFAB828E-4EB8-49B8-A84C-E316CDE73485%40gmail.com > . > For more options, visit https://groups.google.com/d/optout. > -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWq1JW957VjA%2Bf2NVe4JHiVf7UU-Yjoe-yZvpm1ruzcozQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Deploying Django multi servers, 1 DB server
You will have to split migrations from code changes. The migrated database will have to run with both old and new code. You may have to split one migration into several to achieve this On Thu, 3 Jan 2019 at 15:28, Peter van der Does wrote: > We currently have one app server, so deployment with migrations is easy, > but we're expanding to multiple app servers and one DB server. > > How do people handle migrations? I understand you run migrations on one > server only. But how do you inform the other servers that migrations has > finished and they can start doing the next steps. > > We're open to using any DevOps tool, Ansible, Puppet, Chef. > We don't do any form of CI, nor are we planning to do so in the near > future. > > If more details are needed let me know and I can provide them. > -- > > *Peter van der Does o: **410-584-2500* > * m: 732-425-3102 ONeil Interactive, Inc oneilinteractive.com > <http://www.oneilinteractive.com/> * > > -- > 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 email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/8a49a438-eb2f-78ab-bc5a-ae9edb1a07af%40oneilinteractive.com > <https://groups.google.com/d/msgid/django-users/8a49a438-eb2f-78ab-bc5a-ae9edb1a07af%40oneilinteractive.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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 email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABCjzWobSNRgmuvrQGDOp%3D79xGKhFv6X0rLzNrfLcznJ%3DGtvhg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Sorting by distance and date from classifieds page.
https://stackoverflow.com/questions/19703975/django-sort-by-distance/35896358#35896358 will point you in the right direction On Wed, 24 Feb 2021 at 08:27, Salima Begum wrote: > Hi all, > > 1. After posting an Ad it will display in the classifieds page. After user > logged in user zip code and based on classifieds ad zip code distance we > are showing in classifieds page. > 2. Based on distance and added date of Ad we need to show a listing in the > classifieds page. > 3. within 40 miles first we need to show listings of Ads and then in that > again within 40 miles based on the added date we need to show in > classifieds page. > 4. And next 80 miles and then in that added by date in the classifieds > page. > > Example:- > title logged Adzip distance added_date > > Testing post Ad 80023 80027 10.5 mi > 2021-01-2213:37:44.32801+05:30 > > > Can anyone help me to achieve this? Thank you > > Thanks > ~Salima > > -- > 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/CAMSz6bn%3D6wZ%2BAoLQOkM6Dxr7Bx4%2BvVKY79mq4JUvydcqOq8YDg%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAMSz6bn%3D6wZ%2BAoLQOkM6Dxr7Bx4%2BvVKY79mq4JUvydcqOq8YDg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Best Regards, Christian Ledermann Newark-on-Trent - UK Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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/CABCjzWpq%2BfsF9Q9KgW2iB0reMiQXj2mdAgkxOEdErw4VRu7aFQ%40mail.gmail.com.
Re: Python libraries for visualisations
You may want to checkout pygal https://github.com/Kozea/pygal On Mon, 15 Mar 2021 at 08:50, Roger Gammans wrote: > > Plotly comes to mind. there are quite a few charting libraries in this > python/web space. Google is as always your friend. > > But at the end of the day the best UX is always going to come from a > library with a significant JS component. If you don't want to worry to much > about JS plotly's py component will generate the JS/JSON definitions of the > graphs, which you can ship , alongside plotly's js to thee browser. > > On Mon, 2021-03-15 at 12:38 +0530, GEETHANJALI S P wrote: > > Can't we use python libraries instead of chart.js ...is there any method > ..? > > On Mon, 15 Mar, 2021, 10:26 AM Omkar Parab, wrote: > > You can integrate chart.js with Django for visualization. > > Check out this video 👇 > https://youtu.be/B4Vmm3yZPgc > > > On Mon, Mar 15, 2021, 10:19 AM GEETHANJALI S P < > geethanjalisp1...@gmail.com> wrote: > > Hi..How to build a dashboard using django and python libraries for > creating visualisations?. Please let me know .Thanks in advance! > > -- > 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/CAMKAcO%2BJqqp0kYMbWaWqjqJDcmMT9xMndv%3DD%2BNHbtYBvqL9CQg%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAMKAcO%2BJqqp0kYMbWaWqjqJDcmMT9xMndv%3DD%2BNHbtYBvqL9CQg%40mail.gmail.com?utm_medium=email&utm_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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/0f5b1639f95ff25d7176244a7fa6d377e0f49902.camel%40gammascience.co.uk > <https://groups.google.com/d/msgid/django-users/0f5b1639f95ff25d7176244a7fa6d377e0f49902.camel%40gammascience.co.uk?utm_medium=email&utm_source=footer> > . > -- Best Regards, Christian Ledermann Dublin IE Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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/CABCjzWoknO2-s%3Dvq_Y_TV_rgAGepOCVfztFLwESB8P6NSC17tQ%40mail.gmail.com.
Re: Do I really need Groups for permission management?
In my opinion it is suboptimal to mix concepts. The question you want to answer is: has a user a certain permission. Django already has this concept built in and offers methods and decorators to check for that. Groups are a collection of users Users can have permissions directly assigned to them - with a certain number of users and permissions this easily becomes a UX nightmare. Do not fight the framework by reinventing the wheel, use it. On Mon, 12 Apr 2021 at 00:39, Hedrick Godson's wrote: > If your project involves user management where by some admins can create > custom users and grant them permissions I think it is better for you to use > Groups where by admins create a group e.g Librarian and then grant it > custom permissions and after that when admins create a new user he/she can > just choose a group where he can assign that user. > And in the case of permissions you can use custom decorators on ur views > > On Mon, 12 Apr 2021, 02:31 Mike Dewhirst, wrote: > >> If you are using custom user, you can write methods which return booleans >> and which can be seen by the template. >> >> I wrote aasmall utility method is_member(groupname) which returns the >> boolean. >> >> I make liberal use of groups which work very well for me. In my custom >> user I can easily add a method to test whether that user is a member of >> that group. >> >> On the question in your subject line about permissions, I refuse to >> contemplate individual permissions. I will ALWAYS use group permissions and >> name my groups to represent roles. Much more understandable by users (and >> me) and much much much more manageable than individual permissions. >> >> Ymmv >> >> Mike >> >> >> -- >> (Unsigned mail from my phone) >> >> >> >> Original message >> From: Manuel Buri >> Date: 12/4/21 08:48 (GMT+10:00) >> To: Django users >> Subject: Do I really need Groups for permission management? >> >> Hi, >> >> I would love to know more about the advantages / disadvantages of using >> groups for permission management. >> >> Currently my project uses Booleans for is_workspace_owner (True or False) >> and consequently does not allow to show certain links via template >> if-checks as well as some user_passes_test. So basically I am doing the >> permission management link this which works pretty well. I am asking myself >> if I should change to groups or just leave it like this? >> >> What do you think? >> >> Thanks a lot for your inputs/opinions/tipps. >> Manuel >> >> -- >> 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/4ce20b42-df22-4f0d-b8c5-7d8ff5476bb0n%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/4ce20b42-df22-4f0d-b8c5-7d8ff5476bb0n%40googlegroups.com?utm_medium=email&utm_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. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/607386e1.1c69fb81.d21fc.ed34SMTPIN_ADDED_MISSING%40gmr-mx.google.com >> <https://groups.google.com/d/msgid/django-users/607386e1.1c69fb81.d21fc.ed34SMTPIN_ADDED_MISSING%40gmr-mx.google.com?utm_medium=email&utm_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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAJAxQDm4im_TLEapRFw4reKHOMDiOgZ92fc6ui95xUm23wT0Cg%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAJAxQDm4im_TLEapRFw4reKHOMDiOgZ92fc6ui95xUm23wT0Cg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Best Regards, Christian Ledermann Dublin IE Mobile : +44 7474997517 https://uk.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environ
Re: Django Admin: object history not working
I am not sure what you are asking about. The history works out of the box, but only when you manipulate entries via the django admin. When you change the model instance through your own views, you have to explicitly create the log entry. On Tue, 22 Jun 2021 at 00:48, Ryan Kite wrote: > Hello, > > The issue is when clicking the "History" button on an object from the > Django admin site, it opens to the template but says "*This object > doesn't have a change history. It probably wasn't added via this admin > site."* > > From reading the docs it appears that: *history_view*() already exists > (which is what I want) > > /// from the doc page: > ModelAdmin.history_view(*request*, *object_id*, *extra_context=None*) > [source] > <https://docs.djangoproject.com/en/1.11/_modules/django/contrib/admin/options/#ModelAdmin.history_view> > ¶ > <https://docs.djangoproject.com/en/1.11/ref/contrib/admin/#django.contrib.admin.ModelAdmin.history_view> > > Django view for the page that shows the modification history for a > given model instance. > > /// > > We can see the change history when doing: > > python manage.shell > > import django.contrib.admin.models import LogEntry > from django.contrib.contenttypes.models import ContentType > from app import MyModel > > results = > LogEntry.objects.filter(content_type=ContentType.objects.get_for_model(MyModel > )) > > print(vars(results[1])) > > .. shows the change details > > Please tell me what I'm missing or need to add. > > > > -- > 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/f59bfb29-c5be-459b-a984-ff1492150f92n%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/f59bfb29-c5be-459b-a984-ff1492150f92n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Best Regards, Christian Ledermann Dublin, IE Mobile : +353 (0) 899748838 https://www.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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/CABCjzWrJZfk%2BTw0yDovv%3DKYu1SiLe3wrk%3DkS-YG%3DeUnpMhbByQ%40mail.gmail.com.
Re: Django Admin: object history not working
See https://stackoverflow.com/questions/987669/tying-in-to-django-admins-model-history for a better explanation and alternatives On Tue, 22 Jun 2021 at 18:59, Ryan Kite wrote: > > Thanks for the clarification, I didn't realize it only applied to changes > administered directly from the Django Admin. > Was interested in learning about an objects' change history, but in this > case, the changes were not performed from the Django Admin. > > > On Tuesday, June 22, 2021 at 5:50:10 AM UTC-7 christian...@gmail.com > wrote: > >> I am not sure what you are asking about. >> The history works out of the box, but only when you manipulate entries >> via the django admin. >> When you change the model instance through your own views, you have to >> explicitly create the log entry. >> >> On Tue, 22 Jun 2021 at 00:48, Ryan Kite wrote: >> >>> Hello, >>> >>> The issue is when clicking the "History" button on an object from the >>> Django admin site, it opens to the template but says "*This object >>> doesn't have a change history. It probably wasn't added via this admin >>> site."* >>> >>> From reading the docs it appears that: *history_view*() already exists >>> (which is what I want) >>> >>> /// from the doc page: >>> ModelAdmin.history_view(*request*, *object_id*, *extra_context=None*) >>> [source] >>> <https://docs.djangoproject.com/en/1.11/_modules/django/contrib/admin/options/#ModelAdmin.history_view> >>> ¶ >>> <https://docs.djangoproject.com/en/1.11/ref/contrib/admin/#django.contrib.admin.ModelAdmin.history_view> >>> >>> Django view for the page that shows the modification history for a >>> given model instance. >>> >>> /// >>> >>> We can see the change history when doing: >>> >>> python manage.shell >>> >>> import django.contrib.admin.models import LogEntry >>> from django.contrib.contenttypes.models import ContentType >>> from app import MyModel >>> >>> results = >>> LogEntry.objects.filter(content_type=ContentType.objects.get_for_model(MyModel >>> )) >>> >>> print(vars(results[1])) >>> >>> .. shows the change details >>> >>> Please tell me what I'm missing or need to add. >>> >>> >>> >>> -- >>> 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...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/f59bfb29-c5be-459b-a984-ff1492150f92n%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-users/f59bfb29-c5be-459b-a984-ff1492150f92n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> >> >> -- >> Best Regards, >> >> Christian Ledermann >> >> Dublin, IE >> Mobile : +353 (0) 899748838 >> >> https://www.linkedin.com/in/christianledermann >> https://github.com/cleder/ >> >> >> <*)))>{ >> >> If you save the living environment, the biodiversity that we have left, >> you will also automatically save the physical environment, too. But If >> you only save the physical environment, you will ultimately lose both. >> >> 1) Don’t drive species to extinction >> >> 2) Don’t destroy a habitat that species rely on. >> >> 3) Don’t change the climate in ways that will result in the above. >> >> }<(((*> >> > -- > 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/cc8975e1-8b77-4316-92df-909eecaad98cn%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/cc8975e1-8b77-4316-92df-909eecaad98cn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Best Regards, Christian Ledermann Dublin, IE Mobile : +353 (0) 899748838 https://www.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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/CABCjzWq3UhJwtyz%2BQbAaAJg-ganZCr-JL%2BSXLdxrCYOruQ3pqQ%40mail.gmail.com.
Re: Own Widget as Stadard
https://adamj.eu/tech/2021/05/05/3-uses-for-functools-partial-in-django/ "Here are a few ways I’ve used partial in Django projects. 1. Making reusable fields without subclassing" On Sun, 1 Aug 2021 at 19:12, sebasti...@gmail.com wrote: > Hello, > > i have a own widget that replace TextInput widget. Now i want everytime > when i have in model.py a declaration models.TextField() that these new > widget is automatical used in forms.py without everytime manual declared it > in forms.py. > > Have anyone an idea? > > Regards > > -- > 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/ab7213ef-2e67-4084-b587-a5002db2ed63n%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/ab7213ef-2e67-4084-b587-a5002db2ed63n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Best Regards, Christian Ledermann Galway, IE Mobile : +353 (0) 899748838 https://www.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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/CABCjzWpNYnRS9rPf-c%2B8Y%2BFLGif5%3D%2Bk40mNZ5eVLY-iO0YtQTA%40mail.gmail.com.
Re: Multiple websites but one authentication system
I did this in the past by setting up https://github.com/jazzband/django-oauth-toolkit as an authentication server at login.my-domain.com and then connecting the other websites with https://github.com/python-social-auth/social-app-django to it On Thu, 26 Aug 2021 at 10:15, Steven Mapes wrote: > You could use oauth between the projects. Look into > https://django-oauth-toolkit.readthedocs.io/en/latest/ which would enable > you to set up domain one as your authentication backend which the others > could use > > On Thursday, 26 August 2021 at 09:46:11 UTC+1 Isaac wrote: > >> Am trying to understand what you said sir but am still confuse, how will >> the domain2.com recognize that this person is a user ? Also how will the >> database schema look like ? Will the two database be connected in a way ? >> >> On Thursday, 26 August 2021 at 09:29:47 UTC+1 eugenet...@gmail.com wrote: >> >>> My suggestion is that you can create a single entry where after login >>> the system redirects users to the home page containing all these domains as >>> icons and then the user selects the one he wants. >>> >>> On Thu, 26 Aug 2021 at 10:18, Isaac wrote: >>> >>>> Am working on a company website and there will be having more websites >>>> as time goes on, they don't want to be creating authentication system in >>>> each of their website. To avoid stress in creating multi account on these >>>> platform, there is a need to have one website that will do everything >>>> relating to authentication and authorization, just Google is. >>>> For example we will have domain1.com which will handle everything >>>> relating to authentication and authorization(Signup,Signin,Password reset, >>>> Password change, Logout) while other domains like domain2.com, >>>> domain3.com, domain5.com etc will be falling back to domain1.com for >>>> authenticating users. Plz any suggesting on how i can do this will be >>>> highly appreciated. >>>> >>>> -- >>>> 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...@googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/django-users/efe93e26-23cb-4557-a763-1c2790bf541bn%40googlegroups.com >>>> <https://groups.google.com/d/msgid/django-users/efe93e26-23cb-4557-a763-1c2790bf541bn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> >>> >>> -- >>> *TUYIZERE Eugene* >>> >>> >>> >>> *Msc Degree in Mathematical Science* >>> >>> *African Institute for Mathematical Sciences (AIMS Cameroon)Crystal >>> Garden-Lime, Cameroon* >>> >>> Bsc in Computer Science >>> >>> *UR-Nyagatare Campus* >>> >>> Email: eugene@aims-cameroon.org >>>eugenet...@gmail.com >>> >>> Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38 >>> >> -- > 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/29ad46bc-86ce-45bc-a83a-441fe2208e6an%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/29ad46bc-86ce-45bc-a83a-441fe2208e6an%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Best Regards, Christian Ledermann Galway, IE Mobile : +353 (0) 899748838 https://www.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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/CABCjzWqP3G4kqpzR0sPDcX3ROBrXqSTz85WyhNT%3DzKhVgkVz8Q%40mail.gmail.com.
Re: Python Database Migration Tool
On Thu, 29 Feb 2024 at 15:01, sebasti...@gmail.com < sebastian.ju...@gmail.com> wrote: > Hey, > > i have 2 different database systems. In source postgresql and target MS > SQL. Now i have on source DBMS a database with a complete different schema > like in target DBMS. Now i search a solution where i can connect to > different DBMS Systems and can make a mapping between different source > tables/columns to target/columns. I would prefer a ORM if such a solution > exists. > > Does anyone have a good tip for me? > Seems like you are looking for an ETL tool e.g: https://hevodata.com/learn/python-etl-tools/ > > Regards > > -- > 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/435da4f9-d0ec-42cc-b281-84d826692a82n%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/435da4f9-d0ec-42cc-b281-84d826692a82n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Best Regards, Christian Ledermann Galway, IE Mobile : +353 (0) 899748838 https://www.linkedin.com/in/christianledermann https://github.com/cleder/ <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don’t drive species to extinction 2) Don’t destroy a habitat that species rely on. 3) Don’t change the climate in ways that will result in the above. }<(((*> -- 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/CABCjzWqorJA%2BBCiTy4QJ8j1ZLpa_gB54_oWqNGDw2JEKyBkYng%40mail.gmail.com.