Git Product home page Git Product logo

peach-blog's Issues

flask shell报错,请问如何解决?

$ flask shell
Traceback (most recent call last):
File "c:\programdata\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\programdata\anaconda3\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\Scripts\flask.exe_main
.py", line 7, in
File "c:\programdata\anaconda3\lib\site-packages\flask\cli.py", line 966, in main
cli.main(prog_name="python -m flask" if as_module else None)
File "c:\programdata\anaconda3\lib\site-packages\flask\cli.py", line 586, in main
return super(FlaskGroup, self).main(*args, **kwargs)
File "c:\programdata\anaconda3\lib\site-packages\click\core.py", line 717, in main
rv = self.invoke(ctx)
File "c:\programdata\anaconda3\lib\site-packages\click\core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\programdata\anaconda3\lib\site-packages\click\core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\programdata\anaconda3\lib\site-packages\click\core.py", line 555, in invoke
return callback(*args, **kwargs)
File "c:\programdata\anaconda3\lib\site-packages\click\decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "c:\programdata\anaconda3\lib\site-packages\flask\cli.py", line 425, in decorator
with _ctx.ensure_object(ScriptInfo).load_app().app_context():
File "c:\programdata\anaconda3\lib\site-packages\flask\cli.py", line 392, in load_app
app = locate_app(self, import_name, None, raise_if_not_found=False)
File "c:\programdata\anaconda3\lib\site-packages\flask\cli.py", line 240, in locate_app
import(module_name)
File "C:\Users\panxi\Desktop\peach-blog\wsgi.py", line 3, in
application = create_app(os.environ.get('FLASK_ENV'))
File "C:\Users\panxi\Desktop\peach-blog\app_init
.py", line 33, in create_app
app.config.from_object(config[config_name])
KeyError: None

better seo

replace the url like '/post/int:id', '/tag/int:tag_id' to '/post/string:title' , '/tag/string:tag'

auto upgrade

can simplely upgrade peach-blog with only one click

To everyone 🙋‍♀️🙋‍♂️

If this project has helped you, and you have successfully deployed your website with this project,
please leave your URL here and let more people see it.

Your reply will be the driving force for me to continue to update and maintain.

check comment before display

I found some junk information appeared in the posts these days,checking comments legally before displaying is essential

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.