Skip to main content

Posts

Showing posts from August, 2020

Got an error while coding in django

 error is in an element name "price" in model.py. error:    return field.get_db_prep_save(self._effective_default(field), self.conne ction)   File "C:\Users\Shubrajit Acharjee\PycharmProjects\untitled\lib\site-packag es\django\db\models\fields\__init__.py", line 823, in get_db_prep_save     return self.get_db_prep_value(value, connection=connection, prepared=Fal se)   File "C:\Users\Shubrajit Acharjee\PycharmProjects\untitled\lib\site-packag es\django\db\models\fields\__init__.py", line 818, in get_db_prep_value     value = self.get_prep_value(value)   File "C:\Users\Shubrajit Acharjee\PycharmProjects\untitled\lib\site-packag es\django\db\models\fields\__init__.py", line 1776, in get_prep_value     raise e.__class__( ValueError: Field 'price' expected a number but got ''. solution:Go to migrations file and delete all the auto generated migration files related to element "price" and code correctly in models.py file and ru...

Blogging Niche Notepad

 BLOGGING TOPICS computer & internets games electronics & gadgets science fiction single life Technology – software, programming, web development, web design, and startups. Personal Development – time management, health awareness, mindfulness. Entertainment – humor, memes, video, music, podcasts. wordpress, weebly site  builder free niche idea:https://www.youtube.com/watch?v=F54-9UHc7Rw enhlishsekho.com  Free Stock Photography Stock Up: Best free stock photo websites in one place. Pexels: Best free photos in one place. All The Free Stock: Free stock images, icons, and videos. Unsplash: Free (do whatever you want) high-resolution photos. Splashbase: Search & discover free, hi res photos & videos. Startup Stock Photos: Go. Make something. Jay Mantri: Free pics. do anything (CC0). Make magic. Moveast: This is a journey of a portuguese guy moving east. Travel Coffee Book: Sharing beautiful travel moments. Designers Pics: Free photographs for your personal ...

wevdev notepad

 https://www.youtube.com/watch?v=pIvrUBAqn_g&t=228s https://www.youtube.com/watch?v=99vHH_6F0Ko&t=7s https://www.youtube.com/watch?v=wlTMtUBxxsM https://www.youtube.com/channel/UCzppgQEePP5i27Sz5jeCWYw/featured https://www.youtube.com/user/TheCharmefis/playlists https://www.youtube.com/watch?v=gGGPTskb7c8 https://www.youtube.com/watch?v=JLCRnG_FZB0 https://www.youtube.com/watch?v=Q33KBiDriJY https://www.free-css.com/free-css-templates https://www.youtube.com/watch?v=vdSrm4EN5Xk google map javascript api: https://www.youtube.com/watch?v=Zxf1mnP5zcw https://www.youtube.com/watch?v=gBA5zXPddtY https://www.freecodecamp.org/news/how-to-turn-your-website-into-a-mobile-app-with-7-lines-of-json-631c9c9895f5/ https://www.youtube.com/watch?v=GNqKMK52Sp8 hosting:https://www.youtube.com/watch?reload=9&v=cCXSwWlW7GM WRODPRESS https://www.youtube.com/watch?v=wMGrLh6SWBo https://www.youtube.com/watch?v=eDcGNrc0y5U Product Card Using HTML & CSS & JavaScript:https://www.youtube....

JSbooks notepad

 file:///C:/Users/Shubrajit%20Acharjee/Downloads/JavaScript%20and%20JQuery_%20Interactive%20Front-End%20Web%20Development%20(%20PDFDrive.com%20).pdf file:///C:/Users/Shubrajit%20Acharjee/Downloads/javascript-closure.pdf https://leanpub.com/understandinges6/read/ https://pepa.holla.cz/wp-content/uploads/2016/08/Learning-JavaScript-3rd-Edition.pdf file:///C:/Users/Shubrajit%20Acharjee/Downloads/thejsway.pdf http://www.r-5.org/files/books/computers/languages/escss/fp/Nicholas_C_Zakas-Understanding_ECMAScript_6-EN.pdf http://java.ociweb.com/mark/STLJS/ES6.pdf http://archive.oreilly.com/oreillyschool/courses/advancedjavascript/Advanced%20JavaScript%20Essentials%20v1.pdf projects: ◾ Spock Rock Game - Confetti.js, Modules ◾ Quote Generator - Fetch, Async/Await, Quote API, CORS ◾ Picture-in-Picture - Picture-in-Picture API, Screen Capture API ◾ Bookmarks App - DOM, localStorage ◾ NASA APOD - Fetch, Async/Await, NASA API, DOM, localStorage ◾ Animated Navigation - CSS Animations ◾ Infinite S...

Django Notepad

 Django Web Apps: How to Structure Them: https://www.youtube.com/watch?v=5yJe443rOBw http://slav0nic.org.ua/static/books/python/The%20Definitive%20Guide%20to%20Django%20-%20Apress.pdf before django 2. Learn pip and functions 3. Learn what are variables 4. Learn Data types 5. Basic functions using variables 6. If/Else and other conditionals 7. Operators in Python 8. I/O  9. Move on to loops 10. Functions 11. Lists 12. Tuples 13. Dictionaries 14. Try making simple games like Tic-Tac-Toe using the above topics 1.https://web.bii.a-star.edu.sg/~liangzhu/2017/11/02/linuxcommandline/automatetheboringstuffwithpython_new.pdf 2.https://inventwithpython.com/inventwithpython_3rd.pdf 3.https://inventwithpython.com/IYOCGwP_book1.pdf 4.http://ineasysteps.com/wp-content/uploads/2018/07/Python-in-easy-steps-2nd-Ed-TOCCh1.pdf PYTHON EBOOKS https://files.meetup.com/18552511/Learn%20Python%20The%20Hard%20Way%203rd%20Edition%20V413HAV.pdf https://cfm.ehu.es/ricardo/docs/python/Learning_Python.pdf ...

Blog #13

Directory error occurred, cannot open manage.py after installing Django when I run the command"python manage.py runserver" and it shows "can't open file 'manage.py': [Errno 2] No such file or directory". solution: https://www.youtube.com/watch?v=BN20NkY-Ss0 As I go further I got errors that's called coding, so now I got an error like this: Exception in thread django-main-thread: Traceback (most recent call last):   File "C:\Users\Shubrajit Acharjee\AppData\Local\Programs\Python\Python38-32\lib\threading.py", line 932, in _bootstrap_inner           self.run()   File "C:\Users\Shubrajit Acharjee\AppData\Local\Programs\Python\Python38-32\lib\threading.py", line 870, in run     self._target(*self._args, **self._kwargs)   File "C:\Users\Shubrajit Acharjee\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper     fn(*args, **kwargs)   File "C:\Users\Shubrajit Achar...

Blog #12

Its 6:50PM in the evening. I started Django yesterday, and as expected problem arrived while I'm in PowerShell for preparing Django. However, I solved it using commands like pip install Django & pip install Django --upgrade(tutorial by code with harry youtube videos), and after that error occurred: pip is not recognized and I again download python from its official website and the error was solved hopefully. After that, I created a folder djangoproject and go to vs code terminal and run a command "django-admin startproject <newfoldername>",  but showed me "django-admin startproject hello django-admin : the term 'django-admin' is not recognized as the name of a cmdlet function script file or operable program. check the spelling of the name or if a path was included verify that the path is correct and try again."   Reason of this error is because of the file path/directory in Powershell. Its needs to change.  So my first approach was to go to adm...

Blog #11

Its 6:12PM... Just preparing myself for doing some coding stuff. I am stuck at a problem called pagination so I decided to skip this for later and move on to the next tutorials. The blog is at its end. After that Django and react js party confirmed.