Re: sorting issue

2021-09-13 Thread dupakoor kannan
Thank you Geoff for the reply. >>>How about creating a function inside protein, e.g. protein.href, that returns the proper URL? Let me try this method also. >>>(If that trailing star is necessary, you could also have a function to generate that, e.g. protein.starname.) Yes. The trailing star is n

RE: sorting issue

2021-09-11 Thread dupakoor kannan
Hello everyone, I have a model that contains alphanumeric protein names e.g. ('Ypp1Aa100"). I have to properly sort it when returning the contents to the html. I found some fantastic sorting examples from this blog post https://blog.codinghorror.com/sorting-for-humans-natural-sort-order/. I have a

RE: have a URL that accepts all characters

2021-09-06 Thread dupakoor kannan
Hello everyone, I want a URL that accepts all characters. I found an example in stackoverflow https://stackoverflow.com/a/11384464. As per the answer, I need to use 'u' so that the string accepts unicode characters. Here is my path. I use re_path. re_path(r'mutant_proteins/(?P[\w.*]+)/$',views.

RE: DateTimeField to DateField

2021-08-12 Thread dupakoor kannan
Hello everyone, I have a model in our database class UsersSubmission(models.Model): dnasequence = model.TextField(blank=True, null=True) uploaded_time = models.DateTimeField(default=timezone.now) I have a Django import-export module that helps to import and export the data for my PIs thr

Re: Using Countries with django

2021-06-07 Thread dupakoor kannan
Hi, Here is the list https://djangopackages.org/grids/g/countries/. Hope this helps Kannan On Sun, Jun 6, 2021 at 4:22 PM Williams Andy Inc wrote: > Can anyone recommend a 3rd party app to me to use with forms form > countries and states and cities of the world .. > > thank you > > -- > You r

Re: custom list_display in admin - problem in production server

2021-03-05 Thread dupakoor kannan
k for the error message. Thanks Kannan On Fri, Mar 5, 2021 at 11:08 AM Kasper Laudrup wrote: > On 05/03/2021 17.01, dupakoor kannan wrote: > > I have a form where users submit protein sequences that are stored in > > the user_submission model. In Django admin, I have added a custom l

RE: custom list_display in admin - problem in production server

2021-03-05 Thread dupakoor kannan
I have a form where users submit protein sequences that are stored in the user_submission model. In Django admin, I have added a custom list display naming_algorithm (like below). It takes the obj. sequence and runs an external script and displays the output in HTML. It works locally well. When I t

Question about models. test

2021-02-24 Thread dupakoor kannan
Hello everyone, I have the following model class Publication(models.Model): name = models.CharField(max_length=25, blank=True, null=False) publication_url = models.TextField(blank=True) and observed there are some inactive URLs on the production server (due to data entry mistakes). Is th

Re: learning steps

2021-02-24 Thread dupakoor kannan
Hi, There are several good YouTube tutorials. Here are my recommendations Corey Schafer - https://www.youtube.com/watch?v=UmljXZIypDc&list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p Coding for entrepreneurs - https://www.youtube.com/watch?v=F5mRW0jo-U4 Navin - https://www.youtube.com/watch?v=OTmQOjsl0eg

“Did you mean?” search query

2021-02-23 Thread dupakoor kannan
Hello everyone, I would like to implement a search for miss spelled words from the database. I read the answers https://stackoverflow.com/questions/476394/django-did-you-mean-query. Do we have any other apps or an easy way? Any pointers? Thank you Kannan -- You received this message because

Django “Did you mean?” search query

2021-02-16 Thread dupakoor kannan
Hello everyone, I would like to implement a search for miss spelled words from the database. I read this https://stackoverflow.com/questions/476394/django-did-you-mean-query. Do we have Django apps for that? Thank you Kannan -- You received this message because you are subscribed to the Google

Re: about django documentation

2021-01-19 Thread dupakoor kannan
Hi, Try this first https://youtu.be/UmljXZIypDc and read the documentation again. Hope it helps On Tue, Jan 19, 2021 at 8:40 AM a a wrote: > how can i understand from documentation? > i was ended the introduction then i have continue to models but how can i > implementation? > > -- > You rec

Re: Recommended way for directory layout?

2020-10-26 Thread dupakoor kannan
Hi, Have you read this https://stackoverflow.com/questions/22841764/best-practice-for-django-project-working-directory-structure On Mon, Oct 26, 2020 at 11:18 AM guettli wrote: > cookiecutter does many things. For me this is way too much. > > I was looking for a **simple** guideline how to st

Re: Regarding OTP based login- Django

2020-09-29 Thread dupakoor kannan
Hope this helps https://github.com/django-otp/django-otp regards Kannan On Fri, Sep 25, 2020 at 9:56 AM Rahul Gour wrote: > Hello, > > TIA. > > I am new in django, can anyone help me for OTP based login in my app. > > I am working on a ecommerce app and want to login otp based login and dont >

RE: Django and PostgreSQL update

2020-09-17 Thread dupakoor kannan
Hello everyone, I have a small database. Django version currently 2.2, postgres 9.2.24. I forgot to note the psycopg2 older version. It was working fine. I have updated django to 2.2.26 and psycopg2==2.8.3. Also, I made changes in my model and migrated. I come across this error during migration.

Re: How to build a comprehensive chat system with django

2020-08-10 Thread dupakoor kannan
Hi, Hope this helps https://djangopackages.org/grids/g/chat/ On Mon, Aug 10, 2020 at 6:27 AM sunday honesty wrote: > I recently got employed in this company as a django developer. > After one week, it seems they liked me and believe I could do anything. > Today, they asked me to do the follow

Re: Djongo and mongodb

2019-11-07 Thread dupakoor kannan
Hi, Hope these links will be helpful https://www.youtube.com/watch?v=iKB_4HWKMCc https://medium.com/@ksarthak4ever/how-to-use-django-with-mongodb-40ba36a21124 https://www.freecodecamp.org/news/using-django-with-mongodb-by-adding-just-one-line-of-code-c386a298e179/ Kannan On Thu, Nov 7, 2019

Re:

2019-10-29 Thread dupakoor kannan
Hi, Stackoverflow - https://stackoverflow.com/questions/3034910/whats-the-best-way-to-migrate-a-django-db-from-sqlite-to-mysql/3036241 Blog site - https://justinmi.me/blog/2017/04/28/migrating-sql-databases Hope this helps Kannan On Tue, Oct 29, 2019 at 9:30 AM Mohammad yunus wrote: > Can anyo

Re: use site's templates

2019-08-15 Thread dupakoor kannan
Hi, I am trying to use a Django tip from stackoverflow https://stackoverflow.com/a/946397/4037275 I have static css style sheets (static). I will use {% load static %}. Can I use this template approach in extending templates {% extends "project/base.html" %} Can you give me few other examples of