Re: Is it a good practice to store all static data dynamically in database rather?

2019-08-30 Thread Raul Santos
Hello there! The images you mentioned you can store in the static folder of your Django project. This is the "default" location.Things such logo image, icons, JS and CSS files are placed in this folder, you can separete them by types. https://docs.djangoproject.com/pt-br/2.2/howto/static-files/

Re: Unsynchronized sequence

2019-08-30 Thread Jani Tiainen
Hi. You really need to give more context than that. What you exactly did? What you expected to happen? What was the actual outcome? Preferably with all commands and code you used with responses you got. ke 28. elok. 2019 klo 16.49 Ezequias Rocha kirjoitti: > Hello everyone > > I am using

Is it a good practice to store all static data dynamically in database rather?

2019-08-30 Thread Sapna Tomar
Hey! I'm making a static website (showcasing a hobby club of my college) using Django. I have used database for storing most of the content like photos, or events since they have multiple instances. Will it also be okay to save all the rest of the content which does not necessarily have more

Re: How to change the label for username to 'username/email' in login page in Django

2019-08-30 Thread Joe Reitman
You can use a label or help text. https://docs.djangoproject.com/en/2.2/ref/forms/fields/#label https://docs.djangoproject.com/en/2.2/ref/forms/fields/#help-text On Friday, August 30, 2019 at 12:28:47 PM UTC-5, Sandip Nath wrote: > > I am building a car rental website with Django. Currently

Re: How to change the label for username to 'username/email' in login page in Django

2019-08-30 Thread 'Amitesh Sahay' via Django users
If guess you are using HTML to create the form. So, I believe that Type  = 'Text' and Type = 'email'. May be. Please cross cehck Regards, Amitesh Sahay On Friday, 30 August, 2019, 10:59:19 pm IST, Sandip Nath wrote: I am building a car rental website with Django. Currently working

How to change the label for username to 'username/email' in login page in Django

2019-08-30 Thread Sandip Nath
I am building a car rental website with Django. Currently working on user authentication.The user can either use his/her username/email and password to login.It's working fine. My question is, how will I change the label for username field to "username/email" so that the user can understand

Re: TypeError: expected string or bytes-like object

2019-08-30 Thread Suraj Thapa FC
Code pls On Fri, 30 Aug, 2019, 6:06 PM Soumen Khatua, wrote: > Hi Folks, > > After do some modification in models.py like I remove some column and add > some column in my models,now I'm getting this error: > > *TypeError: expected string or bytes-like object* > > > Please tell me how can i

error in Importing 'RemovedInDjango40Warning'

2019-08-30 Thread keshav
-- 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

Re: Channels: launching a custom co-routine from SyncConsumer

2019-08-30 Thread Ezequias Rocha
Sorry my dalay also. My problem is that I was looking for a wrong PostgreSQL sequence. My fault, my totally fault. Django rocks! Sincerely Ezequias Rocha On Wednesday, August 28, 2019 at 11:26:25 AM UTC-3, Dan Merillat wrote: > > On 8/15/19 11:10 PM, Andrew Godwin wrote: > > SyncConsumer

TypeError: expected string or bytes-like object

2019-08-30 Thread Soumen Khatua
Hi Folks, After do some modification in models.py like I remove some column and add some column in my models,now I'm getting this error: *TypeError: expected string or bytes-like object* Please tell me how can i solve this problem? Thank You Regards, Soumen -- You received this message

Re: PasswordResetDoneView not using custom template in Django

2019-08-30 Thread Sim
could you please show the content of "PasswordResetDoneView" ? On Thu, Aug 29, 2019 at 3:31 AM siva reddy wrote: > PasswordResetDoneView.as_view is not loading custom template I'm using > Django 2.2 version > > I have created a custom template and add the path to the accounts app URL > > >

Re: Network device automation with Django web framework

2019-08-30 Thread Sim
according to https://pubhub.devnetcloud.com/media/pyats/docs/getting_started/index.html, " In pyATS, test scripts are written and executed through AEtest Package". How about parsing the results of the tests by ur own functions in the backend ? (just sharing an idea ) On Thu, Aug 29, 2019 at 8:51

Re:

2019-08-30 Thread Shakil Ahmmed
Can You Provide Some Example On Fri, Aug 30, 2019 at 2:47 PM Budi Hermansyah < budi.hermansyah...@gmail.com> wrote: > Hi Shakil, > better you use elastic search for indexing your data from database or > other tools like ES, the purpose is for indexing your data from your > database. > you can

Re:

2019-08-30 Thread Budi Hermansyah
Hi Shakil, better you use elastic search for indexing your data from database or other tools like ES, the purpose is for indexing your data from your database. you can create modelling in ES too for you to speed you loading data... Hope it help you... Regards, On Fri, Aug 30, 2019 at 2:51 AM