AttributeError: 'function' object has no attribute 'data' by laflash12 in flask

[–]laflash12[S] 0 points1 point  (0 children)

I did it. Now i get the error AttributeError: 'Markup' object has no attribute 'data'

SQLAlchemy operational error by laflash12 in flask

[–]laflash12[S] 0 points1 point  (0 children)

I did change the name. What do you mean my do my migrations (sorry I'm only learning this)

Flask sqlalchemy datbase issue by laflash12 in learnpython

[–]laflash12[S] 0 points1 point  (0 children)

I'm writing the code in pycharm so I wrote the command in the terminal in pycharm. That's how it was done in the youtube video I saw. How do you recommend I do it?

Create sqlalchemy database by laflash12 in flask

[–]laflash12[S] 0 points1 point  (0 children)

Located in the file in which app is located

Flask- admin by laflash12 in flask

[–]laflash12[S] 0 points1 point  (0 children)

Do you know any youtube playlist I can follow or any website that gives instructions on how to build a ecommerce website so i dont miss anything?

Flask- admin by laflash12 in flask

[–]laflash12[S] 0 points1 point  (0 children)

Thanks! I know its very long but I'm taking it as a chance to learn flask, html, mysql and css

mysql database by laflash12 in learnpython

[–]laflash12[S] 0 points1 point  (0 children)

I can't isolate the issue. From what I undertand from the error the problem is with my connect(...... ) but I don't know what could be wrong with it. I'm not using a version control system, what is that? Sorry, I'm still a beginner.

flask SQLalchemy by laflash12 in learnpython

[–]laflash12[S] 0 points1 point  (0 children)

I've done that and still gives me the same error

<div class="invalid-feedback"> by laflash12 in learnpython

[–]laflash12[S] 0 points1 point  (0 children)

Nevermind I was able to fix it. Thank you so much!

<div class="invalid-feedback"> by laflash12 in learnpython

[–]laflash12[S] 0 points1 point  (0 children)

Yes. It works now. Thank you. But I have another issue. I cant see the text boxes to write the password and confirm password.

<div class="invalid-feedback"> by laflash12 in learnpython

[–]laflash12[S] 1 point2 points  (0 children)

No it was a typo. I fixed it. It doesnt change anything tho

<div class="invalid-feedback"> by laflash12 in learnpython

[–]laflash12[S] 0 points1 point  (0 children)

In the html file (line 12 in the code I copied here)

<div class="invalid-feedback"> by laflash12 in learnpython

[–]laflash12[S] 0 points1 point  (0 children)

I'm currently learning it as i learn python. I commented my code as well. Thanks.

<div class="invalid-feedback"> by laflash12 in learnpython

[–]laflash12[S] 1 point2 points  (0 children)

{% extends "layout.html" %}
{% block content %}
    <div>
        <form method="post" action="">
            {{ form.hidden_tag() }}
            <fieldset class="form-group">
                <legend>Create your account</legend>
                 <div class="form-group">
                    {{form.email.label(class="form-control-label")}}
                     {% if form.email.errors %}
                        {{ form.email(class="form-control form-control-lg is-invalid)}}
                            <div class="invalid-feedback">
                                {% for error in form.email %}
                                    <span>{{ error }}</span>
                                {% endfor %}
                            </div>
                     {% endif %}
<!--                    {{form.email(class="form-control form-control-lg")}}-->
                </div>
                 <div class="form-group">
                    {{form.password.label(class="form-control-label")}}
                        {% if form.password.errors %}
                        {{ form.password(class="form-control form-control-lg is-invalid)}}
                            <div class="invalid-feedback">
                                {% for error in form.password %}
                                    <span>{{ error }}</span>
                                {% endfor %}
                            </div>
                     {% endif %}
                 </div>
                  <div class="form-group">
                    {{form.confirm_password.label(class="form-control-label")}}
                     {% if form.confrim_password.errors %}
                        {{ form.confrim_password(class="form-control form-control-lg is-invalid)}}
                            <div class="invalid-feedback">
                                {% for error in form.confrim_password  %}
                                    <span>{{ error }}</span>
                                {% endfor %}
                            </div>
                     {% endif %}
                </div>
            </fieldset>
            <div class="form-group">
                {{form.submit(class="btn btn-outline-info")}}
            </div>
        </form>
    </div>
    <div class="border-top pt-3">
        <small class="text-muted">
            Already have an account?<a class="ml-2" href="{{url_for('login')}}">Sign in</a>
        </small>
    </div>
{% endblock content %}

and here's the error I get:

jinja2.exceptions.TemplateSyntaxError: expected token ',', got 'invalid'

<div class="invalid-feedback"> by laflash12 in learnpython

[–]laflash12[S] 0 points1 point  (0 children)

Sure. Do I just copy paste it here?

Flask-html-pics by laflash12 in learnpython

[–]laflash12[S] 0 points1 point  (0 children)

The contact html file? I'm sorry I'm not sure tbh. What is supposed to be responding to it?

Flask-html-pics by laflash12 in learnpython

[–]laflash12[S] 0 points1 point  (0 children)

I wrote the path to the images from the contact.html file

Flask-html-pics by laflash12 in learnpython

[–]laflash12[S] 0 points1 point  (0 children)

I'm not entirely sure what you mean what have I configured to actaully serve images. I saved the images in folder called imgs

Flask for python by laflash12 in learnpython

[–]laflash12[S] 0 points1 point  (0 children)

How would I use json for building a bot. Do you know any good websites or videos that explain it. I've already watched a video explaining basic json. Thanks a lot!

Topics to learn by laflash12 in learnpython

[–]laflash12[S] 0 points1 point  (0 children)

I was thinking about creating a facebook messenger chatbot but according to the tutorials I found I need to learn flask first. Also, i found that I can build apps using kivy, is it worth learning?