The first project of my Flask Tuts Series in Persian! We are going to develop a blog using Flask, Each episode, has it's own branch
- Project Directory | Branch on Github | Video On YouTube
- Admin Blueprint | Branch on Github | Video On YouTube
- Users Model | Branch On Github | Video On YouTube
- Storing Passwords | Branch On Github | Video On YouTube
- Sessions | Branch On Github | Video On YouTube
- Admin Login Page | Branch On Github | Video On YouTube
- Inheriting/Extending Templates | Branch On Github | Video On YouTube
- Message Flashing | Branch On Github | Video On YouTube
- PermissionBased Views | Branch On Github | Video On YouTube
- Showing Form Errors | Branch On Github | Video On YouTube
- Handling SQLAlchemy Errors | Branch On Github | Video On YouTube
- Database Relations | Branch On Github | Video On YouTube
- Clone the repo by
$ git clone https://github.com/DarkSuniuM/FlaskBlog.git
- Go to cloned directory and create a virtual environment
$ python3 -m virtualenv venv
orpy -3 -m virtualenv venv
if you are using Windows! - Activate the virtual environment using
$ ./venv/bin/activate
or$ .\venv\Scripts\activate.bat
if you are using Windows! - Install the requirements using
$ pip install -r requirements.txt
- Copy
.env.example
to.env
and fill in the keys. - Run the migrations by
$ flask db upgrade
- Run the project using
$ flask run
Ask your questions on the comments section in YouTube, I try to answer the ones I can!