GithubHelp home page GithubHelp logo

Comments (14)

warm-milk-foam avatar warm-milk-foam commented on August 30, 2024

hello

from blogpostmanager.

warm-milk-foam avatar warm-milk-foam commented on August 30, 2024

Ok i did the md editor

from blogpostmanager.

DGTV11 avatar DGTV11 commented on August 30, 2024

Ok i did the md editor

slight issue - it doesn't work through flask

127.0.0.1 - - [10/Jul/2024 17:44:30] "POST / HTTP/1.1" 200 -
[2024-07-10 17:44:32,594] ERROR in app: Exception on /posts/a [GET]
Traceback (most recent call last):
  File "/home/danielwee/.local/lib/python3.10/site-packages/flask/app.py", line 1473, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/danielwee/.local/lib/python3.10/site-packages/flask/app.py", line 882, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/danielwee/.local/lib/python3.10/site-packages/flask/app.py", line 880, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/danielwee/.local/lib/python3.10/site-packages/flask/app.py", line 865, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
  File "/media/danielwee/Data stuffs/School/ACS(I)/CCT/BlogPostManager/blog-post-manager/app.py", line 35, in posts
    return render_template("form.html", post_name=postname)
  File "/home/danielwee/.local/lib/python3.10/site-packages/flask/templating.py", line 150, in render_template
    return _render(app, template, context)
  File "/home/danielwee/.local/lib/python3.10/site-packages/flask/templating.py", line 131, in _render
    rv = template.render(context)
  File "/home/danielwee/.local/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/home/danielwee/.local/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/media/danielwee/Data stuffs/School/ACS(I)/CCT/BlogPostManager/blog-post-manager/templates/form.html", line 26, in top-level template code
    Content:  <textarea id="content" name="content">{{ get_post_content(post_name) }}</textarea>
  File "/home/danielwee/.local/lib/python3.10/site-packages/jinja2/utils.py", line 83, in from_obj
    if hasattr(obj, "jinja_pass_arg"):
jinja2.exceptions.UndefinedError: 'get_post_content' is undefined
127.0.0.1 - - [10/Jul/2024 17:44:32] "GET /posts/a HTTP/1.1" 500 -

from blogpostmanager.

DGTV11 avatar DGTV11 commented on August 30, 2024

okay new plan we have to work on main because the editor is not really functional

from blogpostmanager.

DGTV11 avatar DGTV11 commented on August 30, 2024

TODO:

  1. Add persistence (config, styles, content in each blog post folder)
  2. Fixed interface between Python and md editor (post_name and post_content loader)

from blogpostmanager.

DGTV11 avatar DGTV11 commented on August 30, 2024

1, 2 somewhat fixed (style persistence not implemented yet)

from blogpostmanager.

DGTV11 avatar DGTV11 commented on August 30, 2024

TODO: Allow saving/loading

from blogpostmanager.

DGTV11 avatar DGTV11 commented on August 30, 2024

Things to do:

  1. Implement the update styles (button functionality)
  2. start implementing to the advanced mode (convert md to html and use css styling)

from blogpostmanager.

DGTV11 avatar DGTV11 commented on August 30, 2024

Daniel -> implement update styles
Everyone else -> start implementing advanced mode

from blogpostmanager.

DGTV11 avatar DGTV11 commented on August 30, 2024

okay i will do export ingo will do basic-advanced

better styles -> future me problemo

from blogpostmanager.

warm-milk-foam avatar warm-milk-foam commented on August 30, 2024

im dying send help

from blogpostmanager.

DGTV11 avatar DGTV11 commented on August 30, 2024

okay now we do export to single html file ig

from blogpostmanager.

DGTV11 avatar DGTV11 commented on August 30, 2024

https://chatgpt.com/share/1765791c-3a7a-4cc2-a2c1-12f055f98624

from blogpostmanager.

DGTV11 avatar DGTV11 commented on August 30, 2024

Todo: actually get blog.html to download (ugh)

from blogpostmanager.

Related Issues (8)

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.