[Django] Any generalised or optimized way of handling multiple class based generic listviews in django ?

2019-10-06 Thread Dilipkumar Noone
Dear Django Users, I am beginner in Django . I have multiple generic list views in my django application where each list is handled under different navigation item of navigation bar . Still i need to handle few more list views using class based generic view. Is there any way to generalize or o

Re: My first django website

2019-10-06 Thread yashwanth .k
Nice!, How did you enable post view as pdf, Need some help, Thank you! On Sun, Oct 6, 2019 at 5:45 AM Ehab Al-Qabbani wrote: > https://my-private-blog.herokuapp.com/ > > Please try it > > > > Warmest Regards, > Ehab > > -- > You received this message because you are subscribed to the Google Grou

Re: My first django website

2019-10-06 Thread Ehab Al-Qabbani
I used "XHTML2PDF" https://pypi.org/project/django-xhtml2pdf/ On Sun, Oct 6, 2019 at 2:36 PM yashwanth .k wrote: > Nice!, > How did you enable post view as pdf, > Need some help, > Thank you! > > On Sun, Oct 6, 2019 at 5:45 AM Ehab Al-Qabbani wrote: > >> https://my-private-blog.herokuapp.com/

Re: My first django website

2019-10-06 Thread yashwanth .k
Thank you! On Sun, Oct 6, 2019 at 6:17 PM Ehab Al-Qabbani wrote: > I used "XHTML2PDF" https://pypi.org/project/django-xhtml2pdf/ > > > On Sun, Oct 6, 2019 at 2:36 PM yashwanth .k > wrote: > >> Nice!, >> How did you enable post view as pdf, >> Need some help, >> Thank you! >> >> On Sun, Oct 6,

Re: getting error when i changed database sqllite3 to mysql

2019-10-06 Thread Joseph Emeka
I think you need to create the database "django" on you database back-end. And try making migrations again. On Sat, Oct 5, 2019, 22:36 Gulsher Khan wrote: > I trying to change default database(sqllite) which is given by the Django. > I want to use mysql database. I put lots of effort but nothin

Re: Widgets not working for dynamically added formset forms

2019-10-06 Thread lemme smash
okay, but what you actually mean by "widgets don't work"? also, from my experience I can say that when you have to work with some dynamic forms is't much better to use pure js on client and only validate it on backend On Tuesday, October 1, 2019 at 11:41:28 PM UTC+3, Dmitri S. wrote: > > I have

Re: My first django website

2019-10-06 Thread Rached Alaya
Hi, I try it ans it's simple and beautiful :) Keep going :) Le dim. 6 oct. 2019 à 01:15, Ehab Al-Qabbani a écrit : > https://my-private-blog.herokuapp.com/ > > Please try it > > > > Warmest Regards, > Ehab > > -- > You received this message because you are subscribed to the Google Groups > "Dja

Re: My first django website

2019-10-06 Thread Ehab Al-Qabbani
Thanks so much On Sun, Oct 6, 2019 at 4:51 PM Rached Alaya wrote: > Hi, > > I try it ans it's simple and beautiful :) > Keep going :) > > Le dim. 6 oct. 2019 à 01:15, Ehab Al-Qabbani a > écrit : > >> https://my-private-blog.herokuapp.com/ >> >> Please try it >> >> >> >> Warmest Regards, >> Ehab

Re: Entire Application in Django shuts down with single error

2019-10-06 Thread Andréas Kühne
Hi again, I think you are a bit confused about the difference between django and a php framework. In PHP all pages are php files - and PHP has the stupid preference to try to run everything, even if there is an error (except when you have a syntax error - that will also break your php site). What

Re: My first django website

2019-10-06 Thread Samiul Sk
Hi, Good work. The only flaw I noticed was in the calendar. When creating a post and selecting a date by mouse clicking the calendar is not disappearing. otherwise good work. Carry on. On Sun, 6 Oct 2019 at 20:40, Ehab Al-Qabbani wrote: > Thanks so much > > On Sun, Oct 6, 2019 at 4:51 PM Rach

Re: My first django website

2019-10-06 Thread Ehab Al-Qabbani
Thank you for your notice will be considered. Warmest Regards, Ehab From: django-users@googlegroups.com on behalf of Samiul Sk Sent: Sunday, October 6, 2019 6:42 PM To: django-users@googlegroups.com Subject: Re: My first django website Hi, Good work. The only f

Re: My first django website

2019-10-06 Thread Ivan Kasvan
Hi, This is cool. I tried it and loved it. I will also try doing the same. Regards. On Sun, 6 Oct 2019 at 03:15, Ehab Al-Qabbani wrote: > https://my-private-blog.herokuapp.com/ > > Please try it > > > > Warmest Regards, > Ehab > > -- > You received this message because you are subscribed to the

Re: My first django website

2019-10-06 Thread Ehab Al-Qabbani
Thank you. Good luck. Warmest Regards, Ehab From: django-users@googlegroups.com on behalf of Ivan Kasvan Sent: Sunday, October 6, 2019 7:13 PM To: django-users@googlegroups.com Subject: Re: My first django website Hi, This is cool. I tried it and loved it. I wi

Re: Widgets not working for dynamically added formset forms

2019-10-06 Thread Dmitri S.
I meant, when I click on Select2 widget (combobox), list of items does not show up. And when I click on calendar icon, calendar does not show up. "It's better to use pure js" - what to you mean exactly? воскресенье, 6 октября 2019 г., 17:42:49 UTC+3 пользователь lemme smash написал: > > okay, b

Re: Widgets not working for dynamically added formset forms

2019-10-06 Thread Dmitri S.
I meant, when I click on Select2 widget (combobox with autocomplete), list of items does not show up. And when I click on calendar icon, calendar does not show up. "It's better to use pure js" - what do you mean exactly? to make new forms duplicating existing rather than using django empty_form

Re: getting error when i changed database sqllite3 to mysql

2019-10-06 Thread 'Dick in Texas' via Django users
I have tried to use a new, empty database, but that did not work. Still got the question if I have installed MySQLclient. Tried the statements from Desh Deepak. The install and import went well. However, when I tried to migrate, I got the message: module 'pymysql' has no attribute 'install_

Re: getting error when i changed database sqllite3 to mysql

2019-10-06 Thread 'Dick in Texas' via Django users
I just got by the ' 'install_as_MySqldb' error. SQL needed to be in upper case. Now, got new error. new error: mysqlclient 1.3.13 or newer is required; you have 0.9.3. Does it ever end? On Saturday, October 5, 2019 at 4:37:11 PM UTC-5, Gulsher Khan wrote: > > I trying to change default dat

Channels chat consumer behaves differently in prodcution vs development

2019-10-06 Thread Adam Simon
I am using channels 2.x (along with nginx, daphne, redis and gunicorn) In the local console I can see the user data I added in the chat consumer but not in my production environment (in production everything else works, but the user is undefined. Note: the user is logged in. Does anyone

Why would check_password(..) return True but authenticate(.., ..) never return user?

2019-10-06 Thread Christian Seberino
Why would check_password(..) return True but authenticate(.., ..) never return user? See this session in a Django shell below... >>> u >>> u.username 'xx' >>> u.password 'pbkdf2_sha256$10$f3zIUwPXtnEM$zbQdcgPNgRi6CBPQu8wlRg4T7egH80S9bnL0FPunZRo=' >>> u.check_password("yy") True >>> djan

Re: My first django website

2019-10-06 Thread Motaz Hejaze
Tried it on mobile , simple and beautifull , keep the good work !! On Sun, 6 Oct 2019, 7:25 pm Ehab Al-Qabbani, wrote: > Thank you. > Good luck. > > > Warmest Regards, > Ehab > -- > *From:* django-users@googlegroups.com on behalf of Ivan Kasvan < > ivankas...@gmail.co