Skip to content

pkgs4u/learn_django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django

Table Of Contents

About The Project

Setup Project

Clone the project with the url "https://github.com/pkgs4u/learn_django.git".

Prerequisites

Virtual Environment

Configure virtual environment if not...

$ python -m venv venv
$ venv\Scripts\activate.bat

Install Django

$ pip install django

Create and run Migrations:

  1. Add apps details under Installed_Apps in settings.py. Example 'products.apps.ProductsConfig'. ProductConfig is available inside apps.py under your app folder (Eg: Products folder).
  2. Make sure you stop the server while you run migrations. Run this to generate migration file.
$ python manage.py makemigrations
  1. A migration file will get created under the migrations folder under your app folder(Eg: Products folder).
  2. Run this to execute the created migration file to create or changes in database.
$ python manage.py migrate

Create SuperUser

$ python manage.py createsuperuser

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published