Data model
Hi there, fellows,
I have the feeling i am wasting a lot of time reading the documentation of the flask-sqlalchemy flask-sqlalchemy....#define-models without doing real progress.
I seek here some advices to reach my goal faster: load a pandas dataframe into a nice class like ExcelData()
I can already load an excel and display it via route and template, but i now want to save it into a DB via a class. My skills seems to be bloked at this step.
Any hints? Link? Template, Tuto? Indian YouTuber?
/r/flask
https://redd.it/1gxagf9
Hi there, fellows,
I have the feeling i am wasting a lot of time reading the documentation of the flask-sqlalchemy flask-sqlalchemy....#define-models without doing real progress.
I seek here some advices to reach my goal faster: load a pandas dataframe into a nice class like ExcelData()
I can already load an excel and display it via route and template, but i now want to save it into a DB via a class. My skills seems to be bloked at this step.
Any hints? Link? Template, Tuto? Indian YouTuber?
/r/flask
https://redd.it/1gxagf9
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
🚀 Feature Friday: assertNumQueries!
Today's Feature Friday reaches back into Django's history for a small-but-powerful tool:
This method from
It is a great way to check DB performance and catch regressions or "n+1" issues (when you accidentally make a single DB query for every object in a loop instead of loading everything up front from the database).
You can pass a function to
from django.test import TransactionTestCase
from .services import myfunctionthathitsthedb
class MyTest(TransactionTestCase):
def testdbperformance(self):
# called directly
self.assertNumQueries(7, myfunctionthathitsthedb)
# used as a context manager
with self.assertNumQueries(2):
Person.objects.create(name="Aaron")
/r/django
https://redd.it/1gx8b9a
Today's Feature Friday reaches back into Django's history for a small-but-powerful tool:
assertNumQueries!This method from
TransactionTestCase helps you write tests that verify the number of queries made by a piece of code.It is a great way to check DB performance and catch regressions or "n+1" issues (when you accidentally make a single DB query for every object in a loop instead of loading everything up front from the database).
You can pass a function to
assertNumQueries, or use it as a context manager, as shown in the example below:from django.test import TransactionTestCase
from .services import myfunctionthathitsthedb
class MyTest(TransactionTestCase):
def testdbperformance(self):
# called directly
self.assertNumQueries(7, myfunctionthathitsthedb)
# used as a context manager
with self.assertNumQueries(2):
Person.objects.create(name="Aaron")
/r/django
https://redd.it/1gx8b9a
Reddit
From the django community on Reddit: 🚀 Feature Friday: assertNumQueries!
Explore this post and more from the django community
Django mastery?
Hi I want to ask how I would master Django?
How to start making projects in Django
Please seniors give me advice
/r/djangolearning
https://redd.it/1gx7hy3
Hi I want to ask how I would master Django?
How to start making projects in Django
Please seniors give me advice
/r/djangolearning
https://redd.it/1gx7hy3
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
no error but still error
https://preview.redd.it/vozsjofxci2e1.png?width=1920&format=png&auto=webp&s=859fe72c3562d2b37573fca76afbb2ebcd897c05
after clicking approve, function should run which is
https://preview.redd.it/81yit1s5di2e1.png?width=1920&format=png&auto=webp&s=6b06cc038f86829f199c1f056d1148171bebfbf6
now this function confirm_order_route is not printing any statements and in this i have a called a subfunction confirm_order
https://preview.redd.it/tqml8qhpdi2e1.png?width=1920&format=png&auto=webp&s=251373932e24fa1ff6fbc86631c6b1adb26a855e
now this function is deleting booked_order ( record in table in models.py) but not adding data to table confirmed_order , idk why it is not working , not showing any error , it is deleting but not inserting
below i am sharing my tables (models.py)
confirmedOrder model
professional model and bookedorder model
customer model
please help!
/r/flask
https://redd.it/1gxgyma
https://preview.redd.it/vozsjofxci2e1.png?width=1920&format=png&auto=webp&s=859fe72c3562d2b37573fca76afbb2ebcd897c05
after clicking approve, function should run which is
https://preview.redd.it/81yit1s5di2e1.png?width=1920&format=png&auto=webp&s=6b06cc038f86829f199c1f056d1148171bebfbf6
now this function confirm_order_route is not printing any statements and in this i have a called a subfunction confirm_order
https://preview.redd.it/tqml8qhpdi2e1.png?width=1920&format=png&auto=webp&s=251373932e24fa1ff6fbc86631c6b1adb26a855e
now this function is deleting booked_order ( record in table in models.py) but not adding data to table confirmed_order , idk why it is not working , not showing any error , it is deleting but not inserting
below i am sharing my tables (models.py)
confirmedOrder model
professional model and bookedorder model
customer model
please help!
/r/flask
https://redd.it/1gxgyma
what is the best approach to deploy django rest framework
what is the best approach to deploy django rest framework
/r/djangolearning
https://redd.it/1gxnrbf
what is the best approach to deploy django rest framework
/r/djangolearning
https://redd.it/1gxnrbf
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Need advice on reducing latency and improving throughput in Django app
Hey r/django community! I'm struggling with performance issues in my Django application and could really use some expert advice.
**Current Setup:**
* Django 4.2
* PostgreSQL database
* Running on AWS EC2 t2.medium
* \~10k daily active users
* Serving mainly API endpoints and some template views
* Using Django REST Framework for API endpoints
**Issues I'm facing:**
1. Average response time has increased to 800ms (used to be around 200ms)
2. Database queries seem to be taking longer than expected
3. During peak hours, server CPU usage spikes to 90%+
4. Some endpoints timeout during high traffic
**What I've already tried:**
* Added database indexes on frequently queried fields
* Implemented Redis caching for frequently accessed data
* Used Django Debug Toolbar to identify slow queries
* Set up django-silk for profiling
* Added select\_related() and prefetch\_related() where possible
Despite these optimizations, I'm still not getting the performance I need. My main questions are:
1. What are some common bottlenecks in Django apps that I might be missing?
2. Are there specific Django settings I should tune for better performance?
3. Should I consider moving to a different database configuration (e.g., read replicas)?
4. What monitoring tools do you recommend for identifying performance bottlenecks?
5. Any recommendations for load testing tools to simulate high traffic scenarios?
Thanks in advance for any help! Let me
/r/django
https://redd.it/1gxotrj
Hey r/django community! I'm struggling with performance issues in my Django application and could really use some expert advice.
**Current Setup:**
* Django 4.2
* PostgreSQL database
* Running on AWS EC2 t2.medium
* \~10k daily active users
* Serving mainly API endpoints and some template views
* Using Django REST Framework for API endpoints
**Issues I'm facing:**
1. Average response time has increased to 800ms (used to be around 200ms)
2. Database queries seem to be taking longer than expected
3. During peak hours, server CPU usage spikes to 90%+
4. Some endpoints timeout during high traffic
**What I've already tried:**
* Added database indexes on frequently queried fields
* Implemented Redis caching for frequently accessed data
* Used Django Debug Toolbar to identify slow queries
* Set up django-silk for profiling
* Added select\_related() and prefetch\_related() where possible
Despite these optimizations, I'm still not getting the performance I need. My main questions are:
1. What are some common bottlenecks in Django apps that I might be missing?
2. Are there specific Django settings I should tune for better performance?
3. Should I consider moving to a different database configuration (e.g., read replicas)?
4. What monitoring tools do you recommend for identifying performance bottlenecks?
5. Any recommendations for load testing tools to simulate high traffic scenarios?
Thanks in advance for any help! Let me
/r/django
https://redd.it/1gxotrj
Reddit
From the django community on Reddit
Explore this post and more from the django community
D Accepted NeurIPS 2024 paper claimed to be solving a novel problem as first work, but ignores 5 prior works
At NeurIPS 2024 I found a paper that got accepted that positions its main contribution in the form of “Existing algorithms for X ignore Y. We adapt algorithm Z for X to account for Y”.
On OpenReview I see that the reviewers in particular praised the novelty of the work, and recognised Y as an important aspect that had been ignored in the field of X.
Now the interesting bit: co-authors and I published a paper in Springer’s Machine Learning journal in 2023 that also proposes an algorithm for X that account for Y. We were also not the first to study the problem setting of X with Y: our paper’s related work section discusses 4 papers that have all proposed algorithms for X that account for Y. One is even from NeurIPS (2017), and the oldest one dates back to 2012 (an AAAI paper).
The authors of this 2024 NeurIPS paper completely missed all this prior literature and believed they were the first, and so did all the reviewers.
This week I e-mailed the authors of this NeurIPS 2024 paper and they acknowledged that these works (mine + the 4 others) indeed were all working on the same problem setting, mentioned that they
/r/MachineLearning
https://redd.it/1gxooqv
At NeurIPS 2024 I found a paper that got accepted that positions its main contribution in the form of “Existing algorithms for X ignore Y. We adapt algorithm Z for X to account for Y”.
On OpenReview I see that the reviewers in particular praised the novelty of the work, and recognised Y as an important aspect that had been ignored in the field of X.
Now the interesting bit: co-authors and I published a paper in Springer’s Machine Learning journal in 2023 that also proposes an algorithm for X that account for Y. We were also not the first to study the problem setting of X with Y: our paper’s related work section discusses 4 papers that have all proposed algorithms for X that account for Y. One is even from NeurIPS (2017), and the oldest one dates back to 2012 (an AAAI paper).
The authors of this 2024 NeurIPS paper completely missed all this prior literature and believed they were the first, and so did all the reviewers.
This week I e-mailed the authors of this NeurIPS 2024 paper and they acknowledged that these works (mine + the 4 others) indeed were all working on the same problem setting, mentioned that they
/r/MachineLearning
https://redd.it/1gxooqv
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
Saturday Daily Thread: Resource Request and Sharing! Daily Thread
# Weekly Thread: Resource Request and Sharing 📚
Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!
## How it Works:
1. Request: Can't find a resource on a particular topic? Ask here!
2. Share: Found something useful? Share it with the community.
3. Review: Give or get opinions on Python resources you've used.
## Guidelines:
Please include the type of resource (e.g., book, video, article) and the topic.
Always be respectful when reviewing someone else's shared resource.
## Example Shares:
1. Book: "Fluent Python" \- Great for understanding Pythonic idioms.
2. Video: Python Data Structures \- Excellent overview of Python's built-in data structures.
3. Article: Understanding Python Decorators \- A deep dive into decorators.
## Example Requests:
1. Looking for: Video tutorials on web scraping with Python.
2. Need: Book recommendations for Python machine learning.
Share the knowledge, enrich the community. Happy learning! 🌟
/r/Python
https://redd.it/1gxm8u3
# Weekly Thread: Resource Request and Sharing 📚
Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!
## How it Works:
1. Request: Can't find a resource on a particular topic? Ask here!
2. Share: Found something useful? Share it with the community.
3. Review: Give or get opinions on Python resources you've used.
## Guidelines:
Please include the type of resource (e.g., book, video, article) and the topic.
Always be respectful when reviewing someone else's shared resource.
## Example Shares:
1. Book: "Fluent Python" \- Great for understanding Pythonic idioms.
2. Video: Python Data Structures \- Excellent overview of Python's built-in data structures.
3. Article: Understanding Python Decorators \- A deep dive into decorators.
## Example Requests:
1. Looking for: Video tutorials on web scraping with Python.
2. Need: Book recommendations for Python machine learning.
Share the knowledge, enrich the community. Happy learning! 🌟
/r/Python
https://redd.it/1gxm8u3
YouTube
Data Structures and Algorithms in Python - Full Course for Beginners
A beginner-friendly introduction to common data structures (linked lists, stacks, queues, graphs) and algorithms (search, sorting, recursion, dynamic programming) in Python. This course will help you prepare for coding interviews and assessments.
🔗 Course…
🔗 Course…
Python isn't just glue, it's an implicit JIT ecosystem
Writing more Rust recently led me to a revelation about Python. Rust was vital to my original task, but only a few simplifications away, the shorter Python version leapt to almost as fast. I'd stumbled from a cold path to a hot path...
This is my argument that Python, through a number of features both purposeful and accidental, ended up with an implicit JIT ecosystem, well-worn trails connecting optimized nodes, paved over time by countless developers.
I'm definitely curious to hear how this feels to others.
I've been doing Python half my life (almost two decades) and Rust seriously for the last few years.
I love both languages deeply but the pendulum has now swung back towards Python not as I won't use Rust but as I feel my eyes are now open as to how when and how I should use Rust.
Python isn't just glue, it's an implicit JIT ecosystem
/r/Python
https://redd.it/1gxlogn
Writing more Rust recently led me to a revelation about Python. Rust was vital to my original task, but only a few simplifications away, the shorter Python version leapt to almost as fast. I'd stumbled from a cold path to a hot path...
This is my argument that Python, through a number of features both purposeful and accidental, ended up with an implicit JIT ecosystem, well-worn trails connecting optimized nodes, paved over time by countless developers.
I'm definitely curious to hear how this feels to others.
I've been doing Python half my life (almost two decades) and Rust seriously for the last few years.
I love both languages deeply but the pendulum has now swung back towards Python not as I won't use Rust but as I feel my eyes are now open as to how when and how I should use Rust.
Python isn't just glue, it's an implicit JIT ecosystem
/r/Python
https://redd.it/1gxlogn
Smerity
Smerity.com: Python isn't just glue, it's an implicit JIT ecosystem
The ecosystem wears in the desire paths, and when slow Python becomes a problem, the ecosystem doesn't optimize the Python, it paves new roads beneath
Junior Dev Looking for Django Collab
Hello , I'm a junior dev wanted to get my hands dirty with some Django projects. If you're interested in teaming up or have a project in mind, drop me a message.
/r/django
https://redd.it/1gxtses
Hello , I'm a junior dev wanted to get my hands dirty with some Django projects. If you're interested in teaming up or have a project in mind, drop me a message.
/r/django
https://redd.it/1gxtses
Reddit
From the django community on Reddit
Explore this post and more from the django community
Right way to start with Django?
Hey, I know this question may seem obvious but I don't really know where to start.
I work in marketing, I use Python for web crawling and data analysis + I have some experience with HTML and JavaScript creating A/B tests in VWO and implementing tracking tools in GTM. I also have 2+ years of experience in SQL (mainly managing 50+ databases in BigQuery) and creating data transfers in Google Cloud (YT -> BigQuery or Google Ads -> BigQuery and so on).
I would like to focus more on Python and django (e.g. to be able to embed pandas reports in a dashboard for the rest of the team instead of taking screenshots of Jupyter notebooks etc.) but I don't know where to start. I'm quite good at programming console applications etc. in Python but Django seems like a very complicated subject that will require knowledge of additional topics.
So... if you were not a computer science student/programmer but had some knowledge of Python and IT - how would you approach learning Django? Maybe I'm underselling my skills but I don't feel very confident in my skills since I'm primary 40+ marketing guy.
/r/djangolearning
https://redd.it/1gxvxp1
Hey, I know this question may seem obvious but I don't really know where to start.
I work in marketing, I use Python for web crawling and data analysis + I have some experience with HTML and JavaScript creating A/B tests in VWO and implementing tracking tools in GTM. I also have 2+ years of experience in SQL (mainly managing 50+ databases in BigQuery) and creating data transfers in Google Cloud (YT -> BigQuery or Google Ads -> BigQuery and so on).
I would like to focus more on Python and django (e.g. to be able to embed pandas reports in a dashboard for the rest of the team instead of taking screenshots of Jupyter notebooks etc.) but I don't know where to start. I'm quite good at programming console applications etc. in Python but Django seems like a very complicated subject that will require knowledge of additional topics.
So... if you were not a computer science student/programmer but had some knowledge of Python and IT - how would you approach learning Django? Maybe I'm underselling my skills but I don't feel very confident in my skills since I'm primary 40+ marketing guy.
/r/djangolearning
https://redd.it/1gxvxp1
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Table
Hi, so far I have been creating my html table manually. I saw that there are various libraries that you can install. I need a table that handles crud options and filters
I am bewildered as there are so many of them. Can you suggest me based on your experience the best one ?
Thanks
/r/django
https://redd.it/1gxx597
Hi, so far I have been creating my html table manually. I saw that there are various libraries that you can install. I need a table that handles crud options and filters
I am bewildered as there are so many of them. Can you suggest me based on your experience the best one ?
Thanks
/r/django
https://redd.it/1gxx597
Reddit
From the django community on Reddit
Explore this post and more from the django community
Django image storage inside media folder for a freelance project
I’m working on a freelance project for an alumni website that’s expected to have very low traffic. The client chose to deploy it on a very cheap shared Linux server, so performance will likely be slow. The backend is a Django app with features like a gallery section and events, meaning it will need to handle multiple photos. Since we’re not investing in object storage like S3, what are the downsides of storing images directly in the
/r/django
https://redd.it/1gy8ump
I’m working on a freelance project for an alumni website that’s expected to have very low traffic. The client chose to deploy it on a very cheap shared Linux server, so performance will likely be slow. The backend is a Django app with features like a gallery section and events, meaning it will need to handle multiple photos. Since we’re not investing in object storage like S3, what are the downsides of storing images directly in the
media folder on the server?/r/django
https://redd.it/1gy8ump
Reddit
From the django community on Reddit
Explore this post and more from the django community
I created free internet clipboard in Flask (for file transfers across devices)
I made it because we needed to share files in university computers & WhatsApp login was taking too long.... So needed a faster approach that does not require login..
Link: Internet Clipboard.
/r/flask
https://redd.it/1gy248r
I made it because we needed to share files in university computers & WhatsApp login was taking too long.... So needed a faster approach that does not require login..
Link: Internet Clipboard.
/r/flask
https://redd.it/1gy248r
clipboard.gameidea.org
The Clipboard
Move files across devices using the internet clipboard!
Bagels - Expense tracker that lives in your terminal (TUI)
Hi r/Python! I'm excited to share Bagels \- a terminal (UI) expense tracker built with the textual TUI library! Check out the git repo for screenshots.
# Target audience
But first, why an expense tracker in the terminal? This is intended for people like me: I found it easier to build a habit and keep an accurate track of my expenses if I did it at the end of the day, instead of on the go. So why not in the terminal where it's fast, and I can keep all my data locally?
# What my project does
Some notable features include:
Keep track of your expenses with Accounts, (Sub)Categories, Splits, Transfers and Records
Templates for recurring transactions
Keep track of who owes you money in the people's view
Add templated records with number keys
Clear and concise table layout with collapsible splits
Transfer to and from non-tracked accounts (outside of wallet)
"Jump Mode" Navigation
Fewer fields to enter per transaction by default input modes
Insights
Customizable config, such as First Day of Week
Comparison: Unlike traditional expense trackers that are accessed by web or mobile, Bagels lives in your terminal. It differs as an expense tracker tool by providing more convenient input fields and a
/r/Python
https://redd.it/1gy0r1v
Hi r/Python! I'm excited to share Bagels \- a terminal (UI) expense tracker built with the textual TUI library! Check out the git repo for screenshots.
# Target audience
But first, why an expense tracker in the terminal? This is intended for people like me: I found it easier to build a habit and keep an accurate track of my expenses if I did it at the end of the day, instead of on the go. So why not in the terminal where it's fast, and I can keep all my data locally?
# What my project does
Some notable features include:
Keep track of your expenses with Accounts, (Sub)Categories, Splits, Transfers and Records
Templates for recurring transactions
Keep track of who owes you money in the people's view
Add templated records with number keys
Clear and concise table layout with collapsible splits
Transfer to and from non-tracked accounts (outside of wallet)
"Jump Mode" Navigation
Fewer fields to enter per transaction by default input modes
Insights
Customizable config, such as First Day of Week
Comparison: Unlike traditional expense trackers that are accessed by web or mobile, Bagels lives in your terminal. It differs as an expense tracker tool by providing more convenient input fields and a
/r/Python
https://redd.it/1gy0r1v
GitHub
GitHub - EnhancedJax/Bagels: Powerful expense tracker that lives in your terminal.
Powerful expense tracker that lives in your terminal. - EnhancedJax/Bagels
Sunday Daily Thread: What's everyone working on this week?
# Weekly Thread: What's Everyone Working On This Week? 🛠️
Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!
## How it Works:
1. Show & Tell: Share your current projects, completed works, or future ideas.
2. Discuss: Get feedback, find collaborators, or just chat about your project.
3. Inspire: Your project might inspire someone else, just as you might get inspired here.
## Guidelines:
Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.
## Example Shares:
1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
2. Web Scraping: Built a noscript to scrape and analyze news articles. It's helped me understand media bias better.
3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!
Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟
/r/Python
https://redd.it/1gydn91
# Weekly Thread: What's Everyone Working On This Week? 🛠️
Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!
## How it Works:
1. Show & Tell: Share your current projects, completed works, or future ideas.
2. Discuss: Get feedback, find collaborators, or just chat about your project.
3. Inspire: Your project might inspire someone else, just as you might get inspired here.
## Guidelines:
Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.
## Example Shares:
1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
2. Web Scraping: Built a noscript to scrape and analyze news articles. It's helped me understand media bias better.
3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!
Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟
/r/Python
https://redd.it/1gydn91
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Which is the Best Django Course on YouTube in 2024 for Beginners?
Hey everyone!
I'm looking to dive into Django and start my journey as a Python developer. As a beginner, I'm hoping to find a free, high-quality Django course on YouTube that can walk me through the basics and help me build some beginner-friendly projects.
I've seen some options pop up, but it's hard to decide which one is the most up-to-date and beginner-friendly in 2024. If you've come across any YouTube creators or playlists that do a great job explaining Django from scratch, please let me know!
Bonus points if the course includes:
* Step-by-step tutorials
* Project-based learning
* Clear explanations of concepts like models, views, templates, and databases
Thanks in advance for your suggestions!
/r/django
https://redd.it/1gy7bc0
Hey everyone!
I'm looking to dive into Django and start my journey as a Python developer. As a beginner, I'm hoping to find a free, high-quality Django course on YouTube that can walk me through the basics and help me build some beginner-friendly projects.
I've seen some options pop up, but it's hard to decide which one is the most up-to-date and beginner-friendly in 2024. If you've come across any YouTube creators or playlists that do a great job explaining Django from scratch, please let me know!
Bonus points if the course includes:
* Step-by-step tutorials
* Project-based learning
* Clear explanations of concepts like models, views, templates, and databases
Thanks in advance for your suggestions!
/r/django
https://redd.it/1gy7bc0
Reddit
From the django community on Reddit
Explore this post and more from the django community
What is the best source to learn methods in GCBVs?
I find difficulting in understanding why and how methods are being used. I want to learn.
/r/djangolearning
https://redd.it/1gx5peh
I find difficulting in understanding why and how methods are being used. I want to learn.
/r/djangolearning
https://redd.it/1gx5peh
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Django Hosting
I noticed many people using digitialocean droplets for hosting django, and I wanted to see if anyone recommends hostinger as their VPS deal seems clearly better. $ 5.99 /mo for 24-month term
2 vCPU cores, 8 GB RAM, 100 GB NVMe disk space, 8 TB bandwidth
/r/django
https://redd.it/1gyaden
I noticed many people using digitialocean droplets for hosting django, and I wanted to see if anyone recommends hostinger as their VPS deal seems clearly better. $ 5.99 /mo for 24-month term
2 vCPU cores, 8 GB RAM, 100 GB NVMe disk space, 8 TB bandwidth
/r/django
https://redd.it/1gyaden
Reddit
From the django community on Reddit
Explore this post and more from the django community
FLASK/SQLite NIGHTMARE - Please help!
(UPDATE: THANK YOU! AFTER HOURS I FIGURED IT OUT)
Hey guys,
So I'm new to the whole web app thing, but I've been following this tutorial on how the basics work: https://www.youtube.com/watch?v=dam0GPOAvVI
Here's the github for the code he's also used:
https://github.com/techwithtim/Flask-Web-App-Tutorial/tree/main
Basically, I feel like I've done GREAT so far, following along well. This is what I have managed to produce so far with working pages, routes, re-directs etc:
https://preview.redd.it/gcb1cy9itn2e1.png?width=1920&format=png&auto=webp&s=31083b872512910c5d445d0d6b19a0f3254ad931
BUT... I've hit a complete and utter stop when it comes to putting this \^ data into the SQ Database.
This is the code I have for this area and all my other files copy the same names, as well as my html files:
u/auth.route('/register', methods='GET', 'POST')
def register():
if request.method == 'POST':
email = request.form.get('email')
username = request.form.get('username')
password1 = request.form.get('password1')
password2 = request.form.get('password2')
/r/flask
https://redd.it/1gy0rv5
(UPDATE: THANK YOU! AFTER HOURS I FIGURED IT OUT)
Hey guys,
So I'm new to the whole web app thing, but I've been following this tutorial on how the basics work: https://www.youtube.com/watch?v=dam0GPOAvVI
Here's the github for the code he's also used:
https://github.com/techwithtim/Flask-Web-App-Tutorial/tree/main
Basically, I feel like I've done GREAT so far, following along well. This is what I have managed to produce so far with working pages, routes, re-directs etc:
https://preview.redd.it/gcb1cy9itn2e1.png?width=1920&format=png&auto=webp&s=31083b872512910c5d445d0d6b19a0f3254ad931
BUT... I've hit a complete and utter stop when it comes to putting this \^ data into the SQ Database.
This is the code I have for this area and all my other files copy the same names, as well as my html files:
u/auth.route('/register', methods='GET', 'POST')
def register():
if request.method == 'POST':
email = request.form.get('email')
username = request.form.get('username')
password1 = request.form.get('password1')
password2 = request.form.get('password2')
/r/flask
https://redd.it/1gy0rv5
YouTube
Python Website Full Tutorial - Flask, Authentication, Databases & More
GET MY FREE SOFTWARE DEVELOPMENT GUIDE👇
https://training.techwithtim.net/free-guide
In this video, I'm going to be showing you how to make a website with Python, covering Flask, authentication, databases, and more. The goal of this video is to give you what…
https://training.techwithtim.net/free-guide
In this video, I'm going to be showing you how to make a website with Python, covering Flask, authentication, databases, and more. The goal of this video is to give you what…
ASP.NET and Django. What's the difference?
I'd like to say that I'm not looking for an answer about which one is better, but that's a lie. However, this is subjective for everyone.
If there are anyone here who has experience with both ASP.NET and Django, please share your impressions.
P.S. I searched, but if anyone made a comparison, it was years ago!
/r/djangolearning
https://redd.it/1gv90p8
I'd like to say that I'm not looking for an answer about which one is better, but that's a lie. However, this is subjective for everyone.
If there are anyone here who has experience with both ASP.NET and Django, please share your impressions.
P.S. I searched, but if anyone made a comparison, it was years ago!
/r/djangolearning
https://redd.it/1gv90p8
Microsoft
ASP.NET Core, an open-source web development framework | .NET
Build web apps and services that run on Windows, Linux, and macOS using C#, HTML, CSS, and JavaScript. Get started for free on Windows, Linux, or macOS.