Skip to content

Flask web development:Developing Web applications with Python ,Practice Code.

Notifications You must be signed in to change notification settings

hsiunien/Phantom

Repository files navigation

Phantom

This project is build when I study with the book-<Flask web development:Developing Web applications with Python>

Build on Python3

Database is Mariadb

Powered by Flask

All code are rewritten by me.

Run Server

In the root folder, add a env file named .env this is the sample:

CURRENT_ENV = <development|production|unixconfig|testing|default>

ADMIN=<Admin Email>

APP_NAME=<APP name, default is zheer.me>
SECRET_KEY=<It is very important ,must set it, hard to guess>
MAIL_PORT=<sender email port ,default is 25,it depend on your email server>
MAIL_USERNAME=<sender email address,it use to send the register link>
MAIL_PASSWORD=<sender password>
MAIL_SERVER=<smtp server address,eg.smtp.163.com>
MAIL_SUBJECT_PREFIX = <prefix for each email>

DB_USER=<database username>
DB_PWD=<if use mysql. it is the password for connect to the database>

run:

pip install -r requirements/dev.txt
python manange.py shell
>> db.create_all()
>>exit()
:python manage.py deploy
:python manage.py runserver

About

Flask web development:Developing Web applications with Python ,Practice Code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published