[Flask] Ok, what Am I doing wrong ??

Ben Duncan linux4ms at gmail.com
Fri Nov 22 10:38:42 EST 2019


I'm implementing  CRUD under blueprints.
I've a admin.py which contains the following routes:

@admin.route('/groups', methods=['GET', 'POST'])
def groups() :
# Do some stuff

    form = Group_pick()
    groups = groups_table.query.order_by(groups_table.gp_office).all()
....
@admin.route('/groupmaint/<gpid>', methods=['GET', 'POST'])
def groupmaint(gpid) :
# Do some stuff
 ..........

And the html in the groups has the following:
......
<tbody style="height:150px;">
     {% for group in groups %}
      <tr>
       <td style="width:150px;"> {{ group.gp_groupid }} </td>
       <td style="width:389px;"> {{ group.gp_name }} </td>
       <td style="width:150px;"> {{ group.gp_type }} </td>
        <td style="width:75px;">
         <button>
            <a href="{{ url_for('admin.groupmaint', gpid=group.gp_groupid )
}}">
            Edit
         </a>
         </button>

.....
When the edit is clicked, it DOES get to the :
@admin.route('/groupmaint/<gpid>', methods=['GET', 'POST'])

However, all the css, js and other imported goodness is missing and not
found.

What do I need to do to correct this?

*Thanks ...*


*Ben Duncan*
DBA / Chief Software Architect
Mississippi State Supreme Court
Electronic Filing Division
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20191122/cdba2010/attachment.html>


More information about the Flask mailing list