Skip to content

mrkk95/Coding_Blog_website_from_Flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Coding Blog

About

I have created Coding blog website using flask framework. In this website one can add,delete or change the blog post. I have used flask,python,bootstrap,jinja,SQLAlchemy to complete this website. If you want to use this code simply follow this steps.

You have to know before you start

1. SQLAlchemy

This part of the project is very simple.The login routes reference this table. Only very basic pieces of SQLAlchemy are used, so it should all be pretty easy to find and edit for your project.


2.Flask-Login

Flask login can be done from dashboard.After login you can add new post or you can delete and edit in existing post.


3.Contact

In this site if anyone try to contact you then that message will save in database as well as come in my email. If you want to add this feature then you have to enable "allow less secure apps" in email settings.


Steps to run

  1. Clone the repository on your device.
  2. pip install flask
  3. pip install SQLAlchemy
  4. You have to add your email address in config.json file in gmail-user parameter.
  5. You have to add your email password in config.json file in gmail-password parameter.
  6. You have to add username that you want to set for your website login in config.json file in admin_user parameter.
  7. You have to add password that you want to set for your website login in config.json file in admin_password parameter.
  8. Open Xampp on your device.
  9. Make new database in phpmyadmin.
  10. Create two new tables Posts and Contact.
  11. You have to add sno,name,email,phone_num,mes,date in Contact table.
  12. You have to add sno,title,slug,content,tagline,date,img_file in Posts table.
  13. Run the Main.py file.
  14. Open your website from link that you got after running main.py file.

For any query kindly reach to me: keyurkhunadiya@gmail.com