Skip to content

umangag07/Django_Apps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 

Repository files navigation

Django

Contain Django apps(you can use these in your projects with few changes that are specified) and full projects.

Install

python and pip should be downloaded already.

 pip install django

For typing commands you can use any commmand shell or "Git bash".

Basics

Database used-"Postgresql" instead of default databse 'sqllite3'

Install

Database link- PostgresqlDatabase Pgadmin link- Pgadmin (For handling the database)

Using the database

  • First create your databse by opening pgadmin after setup.
    1. name-your choice
    2. user-postgres
    3. Then click create.
  • Changing the database in the django project(Go to your project folder and then in settings.py)
  • For examle-
  •       DATABASES = {
               'default': {
                            'ENGINE': 'django.db.backends.postgresql',
                            'NAME':'ecom', #(your specified name will be here)
                            'USER':'postgres',
                            'PASSWORD':'12345', #(your specified password of databse (you created while installation of the database) will be here.) 
                            'HOST':'localhost'
                          }
                        }
     
     </ul>
    

    IMPORTANT-

    ALl things will be on the local server for now no projects are hosted.