This is a simple blog app built using Django for Lantern Company. It contains a basic two views: post_list and post_detail.
To install this app, follow these steps:
- Clone the repository: git clone https://github.com/aelsir/lantern.git
- Install the dependencies:
pip install -r requirements.txt - Run the migrations:
python manage.py migrate - Start the server:
python manage.py runserver
lantern is the main django project and it contain the settings and global configurations.
core is the main app in the project and you can refer to the urls.py file inside the core app to start mapping the routes of the application.
The main model of the app is Post model it contain all of the data related to the post, and link to the autor aka User.
This view displays a list of all the posts that have been published on the blog. To access this view, go to http://localhost:8000/. Each post is displayed as a clickable link that will take you to the post_detail view.
This view displays the details of a single post. To access this view, click on the link for the post you want to view in the post_list view. The details that are displayed include:
- Title: The title of the post.
- Author: The name of the writer who published the post.
- Published Time: The time when the post was published.
- Body: The full body of the post.
If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature: git checkout -b my-new-feature
- Make your changes and write tests to ensure that they work correctly.
- Submit a pull request to the master branch.
This project is licensed under the MIT License.
you can contact and follow me here on GitHub or social media at: