MySite is a Django-based blog project that allows users to create, edit, and delete posts. The application includes authentication, a rich text editor, and a user-friendly interface for managing blog content.
Jose Portilla, Pierian Training.
- User authentication (Login, Logout, Signup)
- Create, read, update, and delete (CRUD) blog posts
- Rich text editor for blog content (CKEditor or MediumEditor)
- Static files management
- Bootstrap for responsive design
Ensure you have the following installed:
- Python 3.12+
- Django 4+
- pip (Python package manager)
- Virtual environment (optional but recommended)
- Clone the repository:
git clone https://github.com/denismp/mysite.git cd mysite
- Create and activate a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Run database migrations:
python manage.py migrate
- Create a superuser (for admin access):
python manage.py createsuperuser
- Run the development server:
python manage.py runserver
- Open your browser and visit http://127.0.0.1:8000
Ensure static files are configured properly in settings.py
:
STATIC_URL = '/static/'
Run:
python manage.py collectstatic
Ensure LOGOUT_REDIRECT_URL
is set in settings.py
to redirect users after logout:
LOGOUT_REDIRECT_URL = '/'
- Creating a Blog Post: Login and navigate to the dashboard to create a new post.
- Editing a Blog Post: Click on the edit button in the post list.
- Deleting a Blog Post: Click the delete button next to a post.
- Django
- Django CKEditor (if using rich text editing)
- Bootstrap (for styling)
Pull requests are welcome. Please ensure new features are tested before submitting.
This project is licensed under the MIT License.
For any questions or issues, please reach out to Denis M. Putnam.