- Table Of Contents
- About The Project
- Setup Project
- Prerequisites
- Virtual Environment
- Usage
- Roadmap
- Contributing
- License
- Authors
- Acknowledgements
Clone the project with the url "https://github.com/pkgs4u/learn_django.git".
Configure virtual environment if not...
$ python -m venv venv
$ venv\Scripts\activate.bat
$ pip install django
- 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).
- Make sure you stop the server while you run migrations. Run this to generate migration file.
$ python manage.py makemigrations
- A migration file will get created under the migrations folder under your app folder(Eg: Products folder).
- Run this to execute the created migration file to create or changes in database.
$ python manage.py migrate
$ python manage.py createsuperuser