/django-store

Store Web App with Django

Primary LanguageHTML

Django Store

Store application with CRUD funtionality, API and authenitcation.

Instalation

Clone this repository

git clone https://github.com/JosueDLA/Django-Store

Install requirements.txt

pip install requirements.txt

Software and Tools Used

  • Django
  • Pipenv
  • Bootstrap
  • Pylint

Setup Django

> pipenv install django

Pylint

> pipenv install pylint-django

Commands

Start Server

> python manage.py runserver

Migrations

Migrations are Django’s way of propagating changes you make to your models (adding a field, deleting a model, etc.) into your database schema.

You should think of migrations as a version control system for your database schema.

makemigrations: Create new migration based on hte changes yyou made on your model.

> python manage.py makemigrations

migrate: Responsable for applied/unapplied migrations.

> python manage.py migrate

sqlmigrate : Displays SQL statements for a migration

> python manage.py sqlmigrate [App] [Migration ID]

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.