- Use the Django framework.
- Using server-side rendering in Django.
- Developing a web application using Django with MVT structure (Model-View-Template).
- The app is an MVP (Produit Viable Minimum).
- it is a social network for sharing around literature.
- Each user can follow other users of their choice and be followed by any user.
- The application allows to request or publish literature reviews.
The app has two main use cases:
- People requesting reviews on a particular book or article.
- People looking for interesting articles and books to read, based on the reviews of others.
- This repository comes with a pre-populated SQLite database of some user accounts.
- we have used SQLite for this project.
Tested on Windows 10, Python 3.10.6. and Django 4.1.7
Technical Specifications ( english )
Technical Specifications ( french )
$ git clone https://github.com/alexandre-75/Develop_a_web_application_using_Django.git
python<version> -m venv nom_env_virtuel
Activate the environment `mon_env_virtuel\Scripts\activate` (Windows)
pip<version> install -r requirements.txt
-
From the project root folder, go with the terminal to the source folder :
cd source/
-
Run the server by executing the command :
python manage.py runserver
-
Open your favorite browser and navigate to the local development server at :
http://127.0.0.1:8000/
Username: username
Password: a
- If you have a user account enter your username and password.
- enter a username and password.
- In the future you will log in with this information.
- you have access to all the options of the site.
- you can disconnect from Dashboard.
- you can login by indicating the admin information. [partie sur les super admin]
flake8 can identify syntax errors and non-compliance with the PEP.
- From the project root folder, go with the terminal to the *** report_flake8*** folder :
cd report_flake8/
- next open file .HTML to view the report
$ flake8 --format=html --htmldir=flake8_rapport project_link/
La Formation Complète Django - Thibault Houdon