Re: Idea

2021-09-19 Thread Helin Cao
To answer your 2nd question: there is PyWebIO, an open-source library that allows you to write web UI using only Python and deploy it as a Django app: GitHub: https://github.com/pywebio/PyWebIO Doc: https://pywebio.readthedocs.io/en/latest/ BTW, if you like other Python-based web frameworks, it

Re: How to update old data with new data everyday from a scraper

2021-09-19 Thread Adib Neymar Jr.
Interesting, is there a way to peek for an existing record instead of calling get to see whether the record exists in the database? I'm thinking of making this snippet of code a bit more efficient try: obj = Hackathon.objects.get(**each_dict) except Hackathon.DoesNotExist: obj =

Re: Django

2021-09-19 Thread MR INDIA
Try this https://stackoverflow.com/questions/35572662/django-runserver-stuck-on-performing-system-checks which django version and any database you are using? On Sunday, 19 September 2021 at 03:42:11 UTC+5:30 OSV wrote: > I´m just start with Django and have this issue bellow. Some have the

Using ModelForm to get labels in a DetailView

2021-09-19 Thread bnmng
I don't know if this is good practice, but to get field labels in a DetailView, it seems to work fine if you just add a form to the context: views.py: class ItemDetailView(DetailView): model = Item context_object_name = "item" def get_context_data(self, **kwargs):

Re: need help integrating SSL with react/django web app

2021-09-19 Thread MR INDIA
Select os and server and it will show the docs, you have to first shutdown the server then after following the docs restart the server. On Saturday, 18 September 2021 at 19:33:31 UTC+5:30 hey there wrote: > hey > > I am with Cloudflare ssl with httpd autonomous linux with mos_wsgi. > foe

Re: Error on import psycopg2

2021-09-19 Thread Felix Orinda
pip install psycopg2-binary Should work for you. Give me feedback on whether it has worked or not On Sep 17, 2021 21:18, "Aashish Kumar" wrote: install this package  pip install psycopg2-binary It works perfectly On Wed, 15 Sep 2021 at 9:40 PM, 'Maryam Yousaf' via Django users <

Auto populating business organization logos

2021-09-19 Thread Ram
Hi, As most of you know LinkedIn automatically adds a logo of a company when you update your profile with work experience from that company. Similar to that functionality, is there a way to auto populate any business organizaiton logo in Django? I guess this can be done using an API but not

Re: Auto populating business organization logos

2021-09-19 Thread Lalit Suthar
good point @Shishir Ram you can try getting favicon from the organization url they enter. I found a package for that also https://pypi.org/project/favicon/ On Mon, Sep 20, 2021, 6:49 AM Shishir Jha wrote: > I believe linkedin is not using any api. Why would they need that? All the > companies

'str' object is not callable error appears from Django Message Framework

2021-09-19 Thread Salima Begum
Hi all, Our web application prompts confirmation messages when user submits the form and users can continue to submit additional forms while they are using application and the confirmation messages are prompted fine, but 'str' object is not callable error appears randomly before prompting a

Re: Auto populating business organization logos

2021-09-19 Thread Shishir Jha
I believe linkedin is not using any api. Why would they need that? All the companies have their own accounts in the linkedin itself right? Thats how you apply to them. So linkedin muat be using images from its own database and not from some third party api. On Mon, 20 Sep 2021, 6:19 am Ram,