Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chase-allen-tech/django-crud-protocol
Django CRUD Operation including Auth
https://github.com/chase-allen-tech/django-crud-protocol
crud django sqlite
Last synced: 4 days ago
JSON representation
Django CRUD Operation including Auth
- Host: GitHub
- URL: https://github.com/chase-allen-tech/django-crud-protocol
- Owner: chase-allen-tech
- Created: 2021-04-23T05:32:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-23T05:33:47.000Z (over 3 years ago)
- Last Synced: 2024-11-06T04:40:19.647Z (about 2 months ago)
- Topics: crud, django, sqlite
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django CRUD Example Apps
This is a small Django project to demonstrate Django CRUD functionality, it
consist of 3 small applications:- books\_cbv: Implement CRUD using CBV (Class Based Views).
- books\_fbv: Implement CRUD using FBV (Function Based Views).
- books\_fbv\_user: add user interaction to books\_fbv example.## Install Required Packages
The Django CRUD project only need a single Python package "Django", it was built and
tested with Django 2.x version. To install it use the following command:pip install -r requirements.txt
Django 2 requires Python 3, if you need help setting up Python 3 on your machine you can consult
DigitalOcean great documentation on
[How To Install and Set Up a Local Programming Environment for Python 3](https://www.digitalocean.com/community/tutorial_series/how-to-install-and-set-up-a-local-programming-environment-for-python-3)## Running the Application
Before running the application we need to create the needed DB tables:
./manage.py migrate
Now you can run the development web server:
./manage.py runserver
To access the applications go to the URL
## I need a user and password to access "books\_fbv\_user"
Yes, the "books\_fbv\_user" demonstrate how CRUD can work with Django users, and you do
need to create a user to test it, you can create a user using the following command:./manage.py createsuperuser
To create a normal user (non super user), you must login to the admin page and
create it: