Posts

How to create a new repository on the command line

Image
$ echo "# my-shop" >> README.md     $ git init   $ git add .   $ git commit -m "first commit"   $ git remote add origin https://github.com/sanuptpm/my-shop.git   $ git push -u origin master    

How to Creating the Django app

Image
make sure you’re in the same directory as manage.py $ python manage.py startapp myshopApp 

How to run your Django project

Image
Go to the manage.py file present folder $ cd myshop $ python manage.py runserver  Right click and open link Or copy and past link into browser   http://127.0.0.1:8000/

How to Creating a Django project

Image
$ django-admin startproject myshop

How to check current version of Django

Image
$ python -c "import django; print(django.get_version())"    

How to install Django in ubuntu

Image
$ pip install Django

jQuery to hide current showing text in HTML

$(document).ready(function(){     $("p").click(function(){         $(this).hide();     }); }); jQuery Examples <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script> /*hide all <p> tage content*/ $(document).ready(function(){     $("p").click(function(){         $(this).hide();     }); }); </script> </head> <body> <p>If you click on me, I will disappear.</p> <p>Click me away!</p> <p>Click me too!</p> </body> </html>