This is a Django project that implements basic CRUD (Create, Read, Update, Delete) operations, along with user registration, user login, and a feed page where posts can be managed by their respective creators (current logged-in users).
This project is intended to be the base for creating any feed related project where users can post their content . This project is just a base to create a bigger / scaleable application
- User Registration
- User Login/Logout
- Create, Read, Update, Delete (CRUD) operations for posts
- Feed page displaying posts
- Posts can only be edited or deleted by the user who created them
- Clone the repository:
git clone https://github.com/sagardonut/Django.git
- Navigate to the project:
cd Django - Create a virtual environment:
pythom -m venv venv- Activate the virtual environment:
- on windows
venv\Scripts\activate
- on macOS / Linux
source venv/bin/activate
- on windows
- Install the dependencies:
pip install -r requirements.txt- Apply migrations
- Make migrate
python manage.py migrate- Apply migrations
python manage.py makemigrations- Create superuser
python manage.py createsuperuser
- Run the development server
python manage.py runserver
- navigate to the registration page
https://127.0.0.1:8000/ - You will be redirected to login page where you can create a new user and view the feed page
- User Registration
- Create a new post
- Update / edit self created post
- Delete a post
Django/
│
├── baseapp/
│ ├── __init__.py
│ ├── settings.py
│ ├── urls.py
│ ├── wsgi.py
│ └── asgi.py
│
├── blog/
│ ├── __init__.py
│ ├── admin.py
│ ├── apps.py
│ ├── forms.py
│ ├── models.py
│ ├── tests.py
│ ├── urls.py
│ └── views.py
│
├── templates/
│ ├── base.html
│ ├── index.html
│ ├── login.html
│ ├── register.html
│ └── feed.html
│
├── static/
│ ├── css/
| └── base-style.css
│ │ └── styles.css
│ └── js/
│ └── scripts.js
│
├── manage.py
└── requirements.txt
Contributions are welcome! Please feel free to submit a Pull Request. This directory is just a base and has a lots of improvement opportunities .
This project is licensed under the MIT License. See the LICENSE file for details.