My first flask app - an expense and budgeting tool - Tendie Tracker.
Hi all,
I spent almost 3 months working on a replacement for my expense/budgeting Excel file and yesterday I went live with it! It's called Tendie Tracker and is hosted on heroku. I wanted to polish it up and have it 'portfolio worthy' so I also made a domain and used Webflow and some other tools to give it a professional polish.
* Landing page: https://www.tendietracker.com/
* Heroku app: https://tendie-tracker.herokuapp.com/register
* Repo: https://github.com/eddyharrington/Tendie-Tracker
Let me know what you think. I'd especially appreciate eyes on my code or repo structure. Or even suggestions on what kind of things I should learn next for Flask. I'm eyeing the mega flask tutorial and Harvard's web dev course that transitions from Flask to Django.
Thanks in advance.
/r/flask
https://redd.it/gr0h5u
Hi all,
I spent almost 3 months working on a replacement for my expense/budgeting Excel file and yesterday I went live with it! It's called Tendie Tracker and is hosted on heroku. I wanted to polish it up and have it 'portfolio worthy' so I also made a domain and used Webflow and some other tools to give it a professional polish.
* Landing page: https://www.tendietracker.com/
* Heroku app: https://tendie-tracker.herokuapp.com/register
* Repo: https://github.com/eddyharrington/Tendie-Tracker
Let me know what you think. I'd especially appreciate eyes on my code or repo structure. Or even suggestions on what kind of things I should learn next for Flask. I'm eyeing the mega flask tutorial and Harvard's web dev course that transitions from Flask to Django.
Thanks in advance.
/r/flask
https://redd.it/gr0h5u
Tendietracker
Tendie Tracker - An Expense and Budgeting App
Tendie Tracker is a web application that simplifies expense tracking, budgeting, and reporting on your spending. Gain insights to your spending habits and make every tender count.
What's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/gqxr8i
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/gqxr8i
reddit
What's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your...
Simplied Django tests with Pytest and pytest-factoryboy
http://schegel.net/posts/simplied-django-tests-with-pytest-and-pytest-factoryboy/
/r/django
https://redd.it/gqw2a2
http://schegel.net/posts/simplied-django-tests-with-pytest-and-pytest-factoryboy/
/r/django
https://redd.it/gqw2a2
Simplified Django Tests With Pytest and Pytest FactoryBoy
Simplified Django Tests With Pytest and Pytest FactoryBoy :: roschegel
Lately, I've been bothered by the amount of boilerplate on my Django application's test code. So, I decided to do some research and look for alternatives. On this blogpost I will take about pytest, factoryboy and how they can be combined.
How to start Jupyter Notebook again after Ctrl + C?
Hi,
I'm new to learning Python and just got Jupyter on my Mac. I read that the way to exit out of Jupyter (really slows down my computer!) is to do "Ctrl + C". However, how do I start Jupyter again? Typing "jupyter notebook" in terminal doesn't seem to work anymore. I have to terminate terminal, open that up again, and then type "jupyter notebook". I'm using Python 3.8.3 btw.
Also, any thoughts on the Python courses on Lynda? My school
Thanks!
/r/IPython
https://redd.it/gr61zj
Hi,
I'm new to learning Python and just got Jupyter on my Mac. I read that the way to exit out of Jupyter (really slows down my computer!) is to do "Ctrl + C". However, how do I start Jupyter again? Typing "jupyter notebook" in terminal doesn't seem to work anymore. I have to terminate terminal, open that up again, and then type "jupyter notebook". I'm using Python 3.8.3 btw.
Also, any thoughts on the Python courses on Lynda? My school
Thanks!
/r/IPython
https://redd.it/gr61zj
reddit
How to start Jupyter Notebook again after Ctrl + C?
Hi, I'm new to learning Python and just got Jupyter on my Mac. I read that the way to exit out of Jupyter (really slows down my computer!) is to...
REST framework
could somebody explain in simple terms what the django REST framework is, and examples of what types of projects should use it, and which ones do not need it.
/r/django
https://redd.it/grbnp1
could somebody explain in simple terms what the django REST framework is, and examples of what types of projects should use it, and which ones do not need it.
/r/django
https://redd.it/grbnp1
reddit
REST framework
could somebody explain in simple terms what the django REST framework is, and examples of what types of projects should use it, and which ones do...
Order of steps taken while building a Django site
If you were building a small, basic social media website, similar to Facebook but stripped down a whole lot, how would you approach the project?
Assume that the models/tables are already laid out on paper and you have mockups for each html page.
In what order do you create/build/work on the following items?
* views
* urls
* models
* html templates/pages (and forms - although maybe those are separate)
* user authentication
* password change/reset
* creating various app folders
* admin panel and superuser
* static files
* polish up and complete any fancy css that you may want
I'm trying to come with a general set of steps, or a recipe if you will, to follow.
/r/django
https://redd.it/grbvgj
If you were building a small, basic social media website, similar to Facebook but stripped down a whole lot, how would you approach the project?
Assume that the models/tables are already laid out on paper and you have mockups for each html page.
In what order do you create/build/work on the following items?
* views
* urls
* models
* html templates/pages (and forms - although maybe those are separate)
* user authentication
* password change/reset
* creating various app folders
* admin panel and superuser
* static files
* polish up and complete any fancy css that you may want
I'm trying to come with a general set of steps, or a recipe if you will, to follow.
/r/django
https://redd.it/grbvgj
reddit
Order of steps taken while building a Django site
If you were building a small, basic social media website, similar to Facebook but stripped down a whole lot, how would you approach the...
Any Django Admin themes?
Other than the only one I can find (Django Suit), is there a place where I can find other Django Admin themes?
/r/django
https://redd.it/graz88
Other than the only one I can find (Django Suit), is there a place where I can find other Django Admin themes?
/r/django
https://redd.it/graz88
reddit
Any Django Admin themes?
Other than the only one I can find (Django Suit), is there a place where I can find other Django Admin themes?
This media is not supported in your browser
VIEW IN TELEGRAM
Kroger CLI, automation utility to save on shopping, earn points, get purchases summary and more
/r/Python
https://redd.it/gr4jjn
/r/Python
https://redd.it/gr4jjn
Flask Form To SQL Server - 400 Bad Request
Hi everyone,
In my current project I have a Flask form I'm trying to send to a SQL server.
I am successfully pulling data from the SQL server (using pyodbc ) for employee data but it's a form for adding employees that's causing me a headache.
`@app.route('/add-employee', methods=['POST'])`
`def add_employee():`
`if request.method == "POST":`
`employee_id = request.form['employee_id']`
`first_name = request.form['first_name'],`
`surname = request.form['surname'],`
`location = request.form['location'],`
`reports_to = request.form['reports_to'],`
`business_unit = request.form['business_unit'],`
`address_1 = request.form['address_1'],`
`address_2 = request.form['address_2'],`
`address_3 = request.form['address_3'],`
`eircode = request.form['eircode'],`
`mobile_number = request.form['mobile_number'],`
`alt_email_address = request.form['alt_email_address'],`
`pps_number = request.form['pps_number']`
`insert_query = '''INSERT INTO hr_employee_data (employee_id, first_name, surname, address_1, address_2, address_3, eircode, mobile_number, employment_status, gender, start_date, birth_date, pps_number , holiday_allowance, service_days, alt_email_address, emergency_contact, emergency_number, working_day_hours, working_days, job_title, location, reports_to, business_unit, part_orfulltime, handbook_received , induction_form, prob_expiry, prob_completed, salary, salary_changedate, pension, healthcare, bonus_scheme, company_vehicle, vehicle_details, vehicle_issuedate, other_assets, asset_details , asset_issuedate, profile_url, username, password) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);'''`
`cursor = cnxn.cursor()`
`cursor.execute(insert_query, (first_name, surname, location, reports_to, business_unit, address_1 , address_2, address_3, eircode, mobile_number, alt_email_address, pps_number))`
`cnxn.commit()`
`return redirect (url_for('hr_homepage'))`
`return render_template("add-employee.html")`
I am aiming to have two pages for the forms so I have tried changing the insert\_query to only the fields I need for this page but when I submit, it still gives me the 400 Bad
/r/flask
https://redd.it/grgw26
Hi everyone,
In my current project I have a Flask form I'm trying to send to a SQL server.
I am successfully pulling data from the SQL server (using pyodbc ) for employee data but it's a form for adding employees that's causing me a headache.
`@app.route('/add-employee', methods=['POST'])`
`def add_employee():`
`if request.method == "POST":`
`employee_id = request.form['employee_id']`
`first_name = request.form['first_name'],`
`surname = request.form['surname'],`
`location = request.form['location'],`
`reports_to = request.form['reports_to'],`
`business_unit = request.form['business_unit'],`
`address_1 = request.form['address_1'],`
`address_2 = request.form['address_2'],`
`address_3 = request.form['address_3'],`
`eircode = request.form['eircode'],`
`mobile_number = request.form['mobile_number'],`
`alt_email_address = request.form['alt_email_address'],`
`pps_number = request.form['pps_number']`
`insert_query = '''INSERT INTO hr_employee_data (employee_id, first_name, surname, address_1, address_2, address_3, eircode, mobile_number, employment_status, gender, start_date, birth_date, pps_number , holiday_allowance, service_days, alt_email_address, emergency_contact, emergency_number, working_day_hours, working_days, job_title, location, reports_to, business_unit, part_orfulltime, handbook_received , induction_form, prob_expiry, prob_completed, salary, salary_changedate, pension, healthcare, bonus_scheme, company_vehicle, vehicle_details, vehicle_issuedate, other_assets, asset_details , asset_issuedate, profile_url, username, password) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);'''`
`cursor = cnxn.cursor()`
`cursor.execute(insert_query, (first_name, surname, location, reports_to, business_unit, address_1 , address_2, address_3, eircode, mobile_number, alt_email_address, pps_number))`
`cnxn.commit()`
`return redirect (url_for('hr_homepage'))`
`return render_template("add-employee.html")`
I am aiming to have two pages for the forms so I have tried changing the insert\_query to only the fields I need for this page but when I submit, it still gives me the 400 Bad
/r/flask
https://redd.it/grgw26
reddit
Flask Form To SQL Server - 400 Bad Request
Hi everyone, In my current project I have a Flask form I'm trying to send to a SQL server. I am successfully pulling data from the SQL server...
Convincing a (dinosaur) organization to adopt Flask?
Has anyone had any experience introducing such technologies into their organization? I've been amazed by what web applications (i.e. Flask) can do in terms of customisability and dB management, and want to share it with my company.
However, they have the usual concerns of security and all.
While there is login functionality present, what else can I use to market the security of the entire application?b
/r/flask
https://redd.it/grigm3
Has anyone had any experience introducing such technologies into their organization? I've been amazed by what web applications (i.e. Flask) can do in terms of customisability and dB management, and want to share it with my company.
However, they have the usual concerns of security and all.
While there is login functionality present, what else can I use to market the security of the entire application?b
/r/flask
https://redd.it/grigm3
reddit
Convincing a (dinosaur) organization to adopt Flask?
Has anyone had any experience introducing such technologies into their organization? I've been amazed by what web applications (i.e. Flask) can do...
Digital Ocean hosting
Hi
Does Digital Ocean shared droplet comes with database if yes what type?
I would like to host my flask app.
/r/flask
https://redd.it/grod2w
Hi
Does Digital Ocean shared droplet comes with database if yes what type?
I would like to host my flask app.
/r/flask
https://redd.it/grod2w
reddit
Digital Ocean hosting
Hi Does Digital Ocean shared droplet comes with database if yes what type? I would like to host my flask app.
Circle Evolution v0.1 is now available on PyPI. My first big project as a 16 year old. [Github repo & desc in comments]
/r/Python
https://redd.it/grglgp
/r/Python
https://redd.it/grglgp
I made a script that enables you to convert data to a video of QR-Codes!
https://streamable.com/p5icrw
/r/Python
https://redd.it/grp35r
https://streamable.com/p5icrw
/r/Python
https://redd.it/grp35r
Streamable
Qr Video - Streamable
Check out this video on Streamable using your phone, tablet or desktop.
Everybody knows that instagram is made with django but why can we not see all that input tags in the page source of their sign up page if I assume that they use django forms. Also we cannot see any hard-coded text on the website like that "Instagram" header or "sign up to see photos videos...".
/r/djangolearning
https://redd.it/grnkyn
/r/djangolearning
https://redd.it/grnkyn
reddit
Everybody knows that instagram is made with django but why can we...
Posted in r/djangolearning by u/penny__wise • 10 points and 10 comments
Why is the documentation so hard to navigate?
Like seriously. It's a complete mess.
There should be a sidebar with each concept neatly organized. For example, check out the \[Bootstrap Documentation\]([https://getbootstrap.com/docs/4.5/getting-started/introduction/](https://getbootstrap.com/docs/4.5/getting-started/introduction/))
Nice, neatly organized sidebar. It's simple, minimal and easy to find stuff.
But Django decides to be unique by not having a sidebar and instead scattering links everywhere. If you don't think it's bad, go to [https://docs.djangoproject.com/en/3.0/](https://docs.djangoproject.com/en/3.0/) and find the neat, organized section on how to use Django with postgresql. Because I couldn't find it and had to watch a YouTube tutorial instead. It should not suck this bad.
Don't get me wrong. Django is a beautiful, well-made web framework. I just think its documentation should be organized better.
/r/django
https://redd.it/grwatk
Like seriously. It's a complete mess.
There should be a sidebar with each concept neatly organized. For example, check out the \[Bootstrap Documentation\]([https://getbootstrap.com/docs/4.5/getting-started/introduction/](https://getbootstrap.com/docs/4.5/getting-started/introduction/))
Nice, neatly organized sidebar. It's simple, minimal and easy to find stuff.
But Django decides to be unique by not having a sidebar and instead scattering links everywhere. If you don't think it's bad, go to [https://docs.djangoproject.com/en/3.0/](https://docs.djangoproject.com/en/3.0/) and find the neat, organized section on how to use Django with postgresql. Because I couldn't find it and had to watch a YouTube tutorial instead. It should not suck this bad.
Don't get me wrong. Django is a beautiful, well-made web framework. I just think its documentation should be organized better.
/r/django
https://redd.it/grwatk
Getbootstrap
Introduction
Get started with Bootstrap, the world’s most popular framework for building responsive, mobile-first sites, with jsDelivr and a template starter page.
startproject with a period, or no period?
See below image. Do you use folder structure A, or folder structure B, and why?
[https://imgur.com/a/Vx3q82t](https://imgur.com/a/Vx3q82t)
​
**Source of image:**
Django for Beginners: Build websites with Python and Django by Vincent, William S.
/r/django
https://redd.it/grw144
See below image. Do you use folder structure A, or folder structure B, and why?
[https://imgur.com/a/Vx3q82t](https://imgur.com/a/Vx3q82t)
​
**Source of image:**
Django for Beginners: Build websites with Python and Django by Vincent, William S.
/r/django
https://redd.it/grw144
Imgur
Post with 130 views.
This media is not supported in your browser
VIEW IN TELEGRAM
2D Raycasting along with Rendered view - Visualization was done using Pygame! People who love games would definitely love this! Link to the Github repository in the comments!
/r/Python
https://redd.it/grwueh
/r/Python
https://redd.it/grwueh
Sales Forecasting in Excel with Machine Learning and Python Automation
https://youtu.be/pCuV_7H2vyQ
/r/Python
https://redd.it/gs09a1
https://youtu.be/pCuV_7H2vyQ
/r/Python
https://redd.it/gs09a1
YouTube
Sales Forecasting in Excel with Machine Learning and Python Automation
Tired of manually creating a sales forecast each month?
Over copying and pasting last year's estimate?
Just want to do stuff faster?
Say no more, in this video you'll learn how to automate sales forecasting in Excel with AutoAI and python automation. …
Over copying and pasting last year's estimate?
Just want to do stuff faster?
Say no more, in this video you'll learn how to automate sales forecasting in Excel with AutoAI and python automation. …
Fast QR-ticket scanning
Not sure if this is the right place to ask, as i suspect the solution maybe isn't directly related to Django, however maybe someone has had a similar situation.
I have developed a very simple ticket system with QR-codes on a django website. It works by simply creating QR-codes which contains the link to register the attendance of that particular ticket, which must be done with an admin account.
A link looks like: mysite.com/qr-ticket/register/<event\_id>/<ticket\_id>.
This works rather well, with the exception of the registry process being a little slower than desired. Each time a QR-code is scanned, the person scanning has to open the link and visit the website in order to register attendance. What I ideally would want is that when the QR-code is scanned (by a phone), a post request is sent to the server, which returns a response of success/fail or something similar, i.e. not needing to visit the website in order to register attendance. Does anyone know of a clever way to achieve this, without developing a custom app?
/r/django
https://redd.it/grrc0y
Not sure if this is the right place to ask, as i suspect the solution maybe isn't directly related to Django, however maybe someone has had a similar situation.
I have developed a very simple ticket system with QR-codes on a django website. It works by simply creating QR-codes which contains the link to register the attendance of that particular ticket, which must be done with an admin account.
A link looks like: mysite.com/qr-ticket/register/<event\_id>/<ticket\_id>.
This works rather well, with the exception of the registry process being a little slower than desired. Each time a QR-code is scanned, the person scanning has to open the link and visit the website in order to register attendance. What I ideally would want is that when the QR-code is scanned (by a phone), a post request is sent to the server, which returns a response of success/fail or something similar, i.e. not needing to visit the website in order to register attendance. Does anyone know of a clever way to achieve this, without developing a custom app?
/r/django
https://redd.it/grrc0y
Promises in the backend
I've been using Flask which doesn't have async built in. Lately I have been comparing Flask to other backend frameworks like ExpressJS which does have async built in as it is JavaScript based. My question is for a backend framework do you actually need async features that often? One of the only use case I can think of is if you wanted the backend to fetch some APIs. Are there any other times you would really need async in the backend as part of your web framework? Thanks.
/r/flask
https://redd.it/grzmlx
I've been using Flask which doesn't have async built in. Lately I have been comparing Flask to other backend frameworks like ExpressJS which does have async built in as it is JavaScript based. My question is for a backend framework do you actually need async features that often? One of the only use case I can think of is if you wanted the backend to fetch some APIs. Are there any other times you would really need async in the backend as part of your web framework? Thanks.
/r/flask
https://redd.it/grzmlx
reddit
Promises in the backend
I've been using Flask which doesn't have async built in. Lately I have been comparing Flask to other backend frameworks like ExpressJS which does...