Re: Please need a solution urgently for django.db.utils.DatabaseError

2021-05-29 Thread Mike Dewhirst
On 30/05/2021 3:45 pm, Bhathiya Amarasinghe wrote: [30/May/2021 11:01:46] "POST /api/addtocart/ HTTP/1.1" 500 214965 Internal Server Error: /api/addtocart/ Traceback (most recent call last):   File "D:\Bhathiya Admin\Python\lib\site-packages\djongo\sql2mongo\query.py", line 856, in parse    

Please need a solution urgently for django.db.utils.DatabaseError

2021-05-29 Thread Bhathiya Amarasinghe
[30/May/2021 11:01:46] "POST /api/addtocart/ HTTP/1.1" 500 214965 Internal Server Error: /api/addtocart/ Traceback (most recent call last): File "D:\Bhathiya Admin\Python\lib\site-packages\djongo\sql2mongo\query.py", line 856, in parse return handler(self, statement) File "D:\Bhathiya

Re: CSS not linking with HTML

2021-05-29 Thread sukhy gill
Done but not working Regards On Sat, May 29, 2021, 22:17 Chelsea Fan try to change settings > > STATIC_DIR = [ > os.path.join(BASE_DIR,'static') > ] > > On Fri, May 28, 2021 at 9:38 PM sukhy gill > wrote: > >> Dear Frnds >> I am unable to link CSS with HTML >> HTML working but C

Re: CSS not linking with HTML

2021-05-29 Thread sukhy gill
Getting error while using using command python manage.py collectstatic Regarda On Sat, May 29, 2021, 21:23 Mehdi Ismail python manage.py collectstatic > > > try that... and update > On Saturday, 29 May 2021 at 20:44:48 UTC+5:30 sukhy.g...@gmail.com wrote: > >> Project Folder ➡️static ➡️css➡️style

Re: Preview of Form

2021-05-29 Thread Jim Illback
If I understand you correctly, you have an add (or update) form and you want to see what those fields would look like in a preview display (like a paper form equivalent). I would use an add/update form to input the data fields. At the bottom have 2 buttons: one would do the add/update without pr

Re: Tables missing in SQLite but viewable in admin (confusion)

2021-05-29 Thread Ryan Kite
Thanks, Antonis, you were correct. The app was not actually using the SQLite DB it was using a different one that was not on the local machine. On Saturday, May 29, 2021 at 2:59:44 AM UTC-7 Antonis Christofides wrote: > The table name by default has the app name prepended; so the table for > P

Re: CSS not linking with HTML

2021-05-29 Thread Natalie Smyth
Did you name your css syle.css on purpose? If not you might just have a typo. On Fri, May 28, 2021 at 2:38 PM sukhy gill wrote: > Dear Frnds > I am unable to link CSS with HTML > HTML working but CSS not working inside the .html file with the help of > LINK in tag > > I am usin

Re: Preview of Form

2021-05-29 Thread pankaj palmate
Yes using javascript On Sat, 29 May, 2021, 11:22 pm Kumar Gaurav, wrote: > Hi All, > > How to show a preview of the form filled before submitting. I don't want > to edit the form in preview but just to see how it will be submitted. > > Can Django form tools will help or should I use Jquery or Ja

Preview of Form

2021-05-29 Thread Kumar Gaurav
Hi All, How to show a preview of the form filled before submitting. I don't want to edit the form in preview but just to see how it will be submitted. Can Django form tools will help or should I use Jquery or Javascript for this purpose. Please suggest a better solution. Thank You -- You r

DEPLOYING DJANGO ON ASGI

2021-05-29 Thread ngal...@gmail.com
Hello Am familiar with deploying django on WSGI especially using apache on windows ecosystem Am trying to find any source which explain on deploying django on ASGI especially using uvicorn on windows ecosystem. -- You received this message because you are subscribed to the Google Groups "Djan

Re: CSS not linking with HTML

2021-05-29 Thread Chelsea Fan
try to change settings STATIC_DIR = [ os.path.join(BASE_DIR,'static') ] On Fri, May 28, 2021 at 9:38 PM sukhy gill wrote: > Dear Frnds > I am unable to link CSS with HTML > HTML working but CSS not working inside the .html file with the help of > LINK in tag > > I am using the

Re: CSS not linking with HTML

2021-05-29 Thread Mehdi Ismail
python manage.py collectstatic try that... and update On Saturday, 29 May 2021 at 20:44:48 UTC+5:30 sukhy.g...@gmail.com wrote: > Project Folder ➡️static ➡️css➡️style.css➡️ > > On Sat, May 29, 2021, 19:16 Fabiano Leite >> >> Where is located your 'css/style.css'; >> Em sábado, 29 de maio de 20

Re: CSS not linking with HTML

2021-05-29 Thread sukhy gill
Project Folder ➡️static ➡️css➡️style.css➡️ On Sat, May 29, 2021, 19:16 Fabiano Leite > Where is located your 'css/style.css'; > Em sábado, 29 de maio de 2021 às 10:04:50 UTC-3, sukhy.g...@gmail.com > escreveu: > >> No dear >> >> On Sat, May 29, 2021, 18:29 Chelsea Fan > >>> Is it working now? >>>

Re: CSS not linking with HTML

2021-05-29 Thread Dev Burna
How? Sent from my iPhone > On 28 May 2021, at 7:38 PM, sukhy gill wrote: > > Dear Frnds > I am unable to link CSS with HTML > HTML working but CSS not working inside the .html file with the help of LINK > in tag > > I am using thefollowings:- > Setting.py - STATICFILE

Re: CSS not linking with HTML

2021-05-29 Thread Fabiano Leite
Where is located your 'css/style.css'; Em sábado, 29 de maio de 2021 às 10:04:50 UTC-3, sukhy.g...@gmail.com escreveu: > No dear > > On Sat, May 29, 2021, 18:29 Chelsea Fan >> Is it working now? >> >> On Sat, 29 May 2021, 3:40 pm lalit suthar, wrote: >> >>> read this https://docs.djangoproject

write File to other server in wamp

2021-05-29 Thread Elango Venkat
Hi All, I am new here. I have a web app created in Django in server A and i deployed with wamp server. My goal is to write a file to Folder in Server B. when i am running the project in local (inside server A) with virtual env, i can able to write the file to server B. (also i have network ac

Re: CSS not linking with HTML

2021-05-29 Thread sukhy gill
On Sat, 29 May 2021 at 18:37, Chelsea Fan wrote: > Could you send me your settings.py and urls.py in project folder > > On Sat, 29 May 2021, 4:04 pm sukhy gill, wrote: > >> No dear >> >> On Sat, May 29, 2021, 18:29 Chelsea Fan > wrote: >> >>> Is it working now? >>> >>> On Sat, 29 May 2021, 3:40

Re: CSS not linking with HTML

2021-05-29 Thread Chelsea Fan
Could you send me your settings.py and urls.py in project folder On Sat, 29 May 2021, 4:04 pm sukhy gill, wrote: > No dear > > On Sat, May 29, 2021, 18:29 Chelsea Fan wrote: > >> Is it working now? >> >> On Sat, 29 May 2021, 3:40 pm lalit suthar, >> wrote: >> >>> read this https://docs.djangop

Re: CSS not linking with HTML

2021-05-29 Thread sukhy gill
No dear On Sat, May 29, 2021, 18:29 Chelsea Fan Is it working now? > > On Sat, 29 May 2021, 3:40 pm lalit suthar, > wrote: > >> read this https://docs.djangoproject.com/en/2.2/intro/tutorial06/ and >> check how you are giving paths. Also after loading the page on your browser >> go to "View Page

Re: CSS not linking with HTML

2021-05-29 Thread Chelsea Fan
Is it working now? On Sat, 29 May 2021, 3:40 pm lalit suthar, wrote: > read this https://docs.djangoproject.com/en/2.2/intro/tutorial06/ and > check how you are giving paths. Also after loading the page on your browser > go to "View Page Source" and click on the CSS file link and check if the >

Re: CSS not linking with HTML

2021-05-29 Thread lalit suthar
read this https://docs.djangoproject.com/en/2.2/intro/tutorial06/ and check how you are giving paths. Also after loading the page on your browser go to "View Page Source" and click on the CSS file link and check if the file is opening or not. On Saturday, 29 May 2021 at 17:57:21 UTC+5:30 sukhy.

Re: CSS not linking with HTML

2021-05-29 Thread sukhy gill
Yes Sir,There was no mistake in code. Code problem was only in mail content actually code was correct as instruction given by Aniket Sir Regards On Sat, May 29, 2021, 13:14 lalit suthar have you checked Aniket's answer? > > On Saturday, 29 May 2021 at 11:09:07 UTC+5:30 sukhy.g...@gmail.com wrot

Re: Tables missing in SQLite but viewable in admin (confusion)

2021-05-29 Thread Antonis Christofides
The table name by default has the app name prepended; so the table for PastSurgicalHistory will be named superhealth_pastsurgicalhistory (assuming that your app is named superhealth). Other than that, I'd make absolutely sure that the database I'm examining with the sqlite3 command (or whateve

Re: CSS not linking with HTML

2021-05-29 Thread Chelsea Fan
Style was wrong, you wrote syle, correct it On Fri, 28 May 2021, 9:38 pm sukhy gill, wrote: > Dear Frnds > I am unable to link CSS with HTML > HTML working but CSS not working inside the .html file with the help of > LINK in tag > > I am using thefollowings:- > Setting.py - ST

Re: CSS not linking with HTML

2021-05-29 Thread lalit suthar
have you checked Aniket's answer? On Saturday, 29 May 2021 at 11:09:07 UTC+5:30 sukhy.g...@gmail.com wrote: > Done Sir, but not working > > On Sat, May 29, 2021, 10:50 Venu Gopal >> In Firefox Goto Preferences ---> Choose Privacy and Security ---> >> scroll down until you get cookies and s