[HELP] Looking for tutorials on how to build a news site
Hey everyone,
Django beginner here looking for tutorials or open source projects for building a website for news publishers. I have a basic blog set up but I'm not sure how to move forward from that point.
/r/django
https://redd.it/7n944w
Hey everyone,
Django beginner here looking for tutorials or open source projects for building a website for news publishers. I have a basic blog set up but I'm not sure how to move forward from that point.
/r/django
https://redd.it/7n944w
reddit
[HELP] Looking for tutorials on how to build a news site • r/django
Hey everyone, Django beginner here looking for tutorials or open source projects for building a website for news publishers. I have a basic blog...
What's the right way to create a background task following execution of a given view?
I have a view (upload) for a user to upload a file. When it's uploaded we go to a process view. After the process view is loaded I want to start a background task that pulls out the data and runs it through a function, then adds some new data into the model. I will use channels/ajax to keep the user updated, but I'm not sure how to fire the background task...
Should I use signals for this? How do I create a signal that only fires request_finished for a specific view?
/r/django
https://redd.it/7nfare
I have a view (upload) for a user to upload a file. When it's uploaded we go to a process view. After the process view is loaded I want to start a background task that pulls out the data and runs it through a function, then adds some new data into the model. I will use channels/ajax to keep the user updated, but I'm not sure how to fire the background task...
Should I use signals for this? How do I create a signal that only fires request_finished for a specific view?
/r/django
https://redd.it/7nfare
reddit
What's the right way to create a background task... • r/django
I have a view (upload) for a user to upload a file. When it's uploaded we go to a process view. After the process view is loaded I want to start a...
I need help with URLs in Django 2.0.
I don't get it, at all. Previously I could've done something like this:
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^', include('account.urls')),
]
And then when somebody would enter "raw" url, e.g. `website.com`, he would be redirected to the urls of the `account` app. But now I try to do something like that:
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('choice.urls')),
]
I know that `url` got changed into `path` (why? I think the new name is misleading) and they got rid of all of the regex so I've been trying to match the URL so it would redirect the "raw" url into that app but with no luck. What did this get changed into and why?
/r/djangolearning
https://redd.it/7n56ak
I don't get it, at all. Previously I could've done something like this:
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^', include('account.urls')),
]
And then when somebody would enter "raw" url, e.g. `website.com`, he would be redirected to the urls of the `account` app. But now I try to do something like that:
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('choice.urls')),
]
I know that `url` got changed into `path` (why? I think the new name is misleading) and they got rid of all of the regex so I've been trying to match the URL so it would redirect the "raw" url into that app but with no luck. What did this get changed into and why?
/r/djangolearning
https://redd.it/7n56ak
reddit
I need help with URLs in Django 2.0. • r/djangolearning
I don't get it, at all. Previously I could've done something like this: urlpatterns = [ url(r'^admin/', admin.site.urls), ...
Current third party user authentication for Django 2.0 and Django Rest Framework 3
I'm learning Django Rest Framework 3 to finally get some REST experience. Having searched DRF's third-party packages page, it seems like not many support Django 2.0 or haven't been updated in years. I did find django-rest-auth, which appears to support the latest Django and DRF, but that seems to be about it.
What are you using? I'm planning to extend the basic django user model, if that matters.
/r/djangolearning
https://redd.it/7niznh
I'm learning Django Rest Framework 3 to finally get some REST experience. Having searched DRF's third-party packages page, it seems like not many support Django 2.0 or haven't been updated in years. I did find django-rest-auth, which appears to support the latest Django and DRF, but that seems to be about it.
What are you using? I'm planning to extend the basic django user model, if that matters.
/r/djangolearning
https://redd.it/7niznh
reddit
Current third party user authentication for... • r/djangolearning
I'm learning Django Rest Framework 3 to finally get some REST experience. Having searched DRF's third-party packages page, it seems like not many...
Help with Filtering Between Models
Newbie to Django and I need some help on how to return the right objects in my view.
Here's a link to my repo to see the entire project: [https://github.com/theaton/possessionAnaylsisApp](https://github.com/theaton/possessionAnaylsisApp)
Basically I'm trying to return a list in my view that only contains Players from the Home Team in Games. Meaning I only want to display Players that are on the Home Team (and I'll do the same for Away Team) in a specific Game. My models are as follows:
class Team(models.Model):
team_city = models.CharField(max_length=30)
team_nickname = models.CharField(max_length=30)
def __str__(self):
return self.team_city + ' ' + self.team_nickname
def team_roster(self):
return Player.objects.filter(player_team=self)
class Game(models.Model):
date = models.DateField()
home_team = models.ForeignKey('Team', related_name='home_team')
away_team = models.ForeignKey('Team', related_name='away_team')
home_team_score = models.IntegerField()
away_team_score = models.IntegerField()
def __str__(self):
return str(self.date) + ' - ' + str(self.away_team) + ' at ' + str(self.home_team)
def home_team_roster(self):
return Player.objects.filter(player_team=self.home_team)
class Player(models.Model):
player_name = models.CharField(max_length=80)
player_team = models.ForeignKey(Team, on_delete=models.CASCADE)
player_position = models.ForeignKey(Position, on_delete=models.CASCADE)
def __str__(self):
return self.player_name
I was trying to make a method that does the filtering but the team_roster returns all players, regardless of teams. I feel like maybe I should have the Team set as a foreign key in the Player model instead of the Player being a foreign key in Teams? Honestly I could be doing so many things wrong, any help would be greatly appreciated.
/r/djangolearning
https://redd.it/7mvopp
Newbie to Django and I need some help on how to return the right objects in my view.
Here's a link to my repo to see the entire project: [https://github.com/theaton/possessionAnaylsisApp](https://github.com/theaton/possessionAnaylsisApp)
Basically I'm trying to return a list in my view that only contains Players from the Home Team in Games. Meaning I only want to display Players that are on the Home Team (and I'll do the same for Away Team) in a specific Game. My models are as follows:
class Team(models.Model):
team_city = models.CharField(max_length=30)
team_nickname = models.CharField(max_length=30)
def __str__(self):
return self.team_city + ' ' + self.team_nickname
def team_roster(self):
return Player.objects.filter(player_team=self)
class Game(models.Model):
date = models.DateField()
home_team = models.ForeignKey('Team', related_name='home_team')
away_team = models.ForeignKey('Team', related_name='away_team')
home_team_score = models.IntegerField()
away_team_score = models.IntegerField()
def __str__(self):
return str(self.date) + ' - ' + str(self.away_team) + ' at ' + str(self.home_team)
def home_team_roster(self):
return Player.objects.filter(player_team=self.home_team)
class Player(models.Model):
player_name = models.CharField(max_length=80)
player_team = models.ForeignKey(Team, on_delete=models.CASCADE)
player_position = models.ForeignKey(Position, on_delete=models.CASCADE)
def __str__(self):
return self.player_name
I was trying to make a method that does the filtering but the team_roster returns all players, regardless of teams. I feel like maybe I should have the Team set as a foreign key in the Player model instead of the Player being a foreign key in Teams? Honestly I could be doing so many things wrong, any help would be greatly appreciated.
/r/djangolearning
https://redd.it/7mvopp
GitHub
theaton/possessionAnaylsisApp
possessionAnaylsisApp - Play logger
Django bugfix releases: 2.0.1 and 1.11.9
https://www.djangoproject.com/weblog/2018/jan/01/bugfix-releases/
/r/django
https://redd.it/7nj5cw
https://www.djangoproject.com/weblog/2018/jan/01/bugfix-releases/
/r/django
https://redd.it/7nj5cw
reddit
Django bugfix releases: 2.0.1 and 1.11.9 • r/django
10 points and 0 comments so far on reddit
Update, create and delte without interacting with your webapp forms
Is it possible for someone to interact and fuck up your database without interacting with your website? I know that even some really secure databases get hacked. . But is it really easy to hack a simple django application with database integration?
Thanks!
/r/django
https://redd.it/7nkhgs
Is it possible for someone to interact and fuck up your database without interacting with your website? I know that even some really secure databases get hacked. . But is it really easy to hack a simple django application with database integration?
Thanks!
/r/django
https://redd.it/7nkhgs
reddit
Update, create and delte without interacting with your... • r/django
Is it possible for someone to interact and fuck up your database without interacting with your website? I know that even some really secure...
bs4 : output html content into a txt file
Self-learning python. The following code returns UnicodeEncodeError. How should I fix it? Thanks.
import bs4, requests
#----------------------------------------------------------------------------
URL = "https://learnxinyminutes.com/docs/r"
#----------------------------------------------------------------------------
soup = bs4.BeautifulSoup(requests.get(URL).text, "lxml")
with open( r"C:\Users\User\Desktop\Test.txt" ,"w") as oFile:
oFile.write(str(soup.html))
oFile.close()
UnicodeEncodeError: 'cp950' codec can't encode character '\xf8' in position 20242: illegal multibyte sequence
/r/Python
https://redd.it/7nm7gs
Self-learning python. The following code returns UnicodeEncodeError. How should I fix it? Thanks.
import bs4, requests
#----------------------------------------------------------------------------
URL = "https://learnxinyminutes.com/docs/r"
#----------------------------------------------------------------------------
soup = bs4.BeautifulSoup(requests.get(URL).text, "lxml")
with open( r"C:\Users\User\Desktop\Test.txt" ,"w") as oFile:
oFile.write(str(soup.html))
oFile.close()
UnicodeEncodeError: 'cp950' codec can't encode character '\xf8' in position 20242: illegal multibyte sequence
/r/Python
https://redd.it/7nm7gs
[D] Machine Learning - WAYR (What Are You Reading) - Week 39
This is a place to share machine learning research papers, journals, and articles that you're reading this week. If it relates to what you're researching, by all means elaborate and give us your insight, otherwise it could just be an interesting paper you've read.
Please try to provide some insight from your understanding and please don't post things which are present in wiki.
Preferably you should link the arxiv page (not the PDF, you can easily access the PDF from the summary page but not the other way around) or any other pertinent links.
Previous weeks :
|1-10|11-20|21-30|31-40|
|----|-----|-----|-----|
|[Week 1](https://www.reddit.com/r/MachineLearning/comments/4qyjiq/machine_learning_wayr_what_are_you_reading_week_1/)|[Week 11](https://www.reddit.com/r/MachineLearning/comments/57xw56/discussion_machine_learning_wayr_what_are_you/)|[Week 21](https://www.reddit.com/r/MachineLearning/comments/60ildf/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 31](https://www.reddit.com/r/MachineLearning/comments/6s0k1u/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 2](https://www.reddit.com/r/MachineLearning/comments/4s2xqm/machine_learning_wayr_what_are_you_reading_week_2/)|[Week 12](https://www.reddit.com/r/MachineLearning/comments/5acb1t/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 22](https://www.reddit.com/r/MachineLearning/comments/64jwde/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 32](https://www.reddit.com/r/MachineLearning/comments/72ab5y/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 3](https://www.reddit.com/r/MachineLearning/comments/4t7mqm/machine_learning_wayr_what_are_you_reading_week_3/)|[Week 13](https://www.reddit.com/r/MachineLearning/comments/5cwfb6/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 23](https://www.reddit.com/r/MachineLearning/comments/674331/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 33](https://www.reddit.com/r/MachineLearning/comments/75405d/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 4](https://www.reddit.com/r/MachineLearning/comments/4ub2kw/machine_learning_wayr_what_are_you_reading_week_4/)|[Week 14](https://www.reddit.com/r/MachineLearning/comments/5fc5mh/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 24](https://www.reddit.com/r/MachineLearning/comments/68hhhb/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 34](https://www.reddit.com/r/MachineLearning/comments/782js9/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 5](https://www.reddit.com/r/MachineLearning/comments/4xomf7/machine_learning_wayr_what_are_you_reading_week_5/)|[Week 15](https://www.reddit.com/r/MachineLearning/comments/5hy4ur/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 25](https://www.reddit.com/r/MachineLearning/comments/69teiz/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 35](https://www.reddit.com/r/MachineLearning/comments/7b0av0/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 6](https://www.reddit.com/r/MachineLearning/comments/4zcyvk/machine_learning_wayr_what_are_you_reading_week_6/)|[Week 16](https://www.reddit.com/r/MachineLearning/comments/5kd6vd/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 26](https://www.reddit.com/r/MachineLearning/comments/6d7nb1/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 36](https://www.reddit.com/r/MachineLearning/comments/7e3fx6/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 7](https://www.reddit.com/r/MachineLearning/comments/52t6mo/machine_learning_wayr_what_are_you_reading_week_7/)|[Week 17](https://www.reddit.com/r/MachineLearning/comments/5ob7dx/discussion_machine_learning_wayr_what_are_you/)|[Week 27](https://www.reddit.com/r/MachineLearning/comments/6gngwc/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 37](https://www.reddit.com/r/MachineLearning/comments/7hcc2c/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 8](https://www.reddit.com/r/MachineLearning/comments/53heol/machine_le
This is a place to share machine learning research papers, journals, and articles that you're reading this week. If it relates to what you're researching, by all means elaborate and give us your insight, otherwise it could just be an interesting paper you've read.
Please try to provide some insight from your understanding and please don't post things which are present in wiki.
Preferably you should link the arxiv page (not the PDF, you can easily access the PDF from the summary page but not the other way around) or any other pertinent links.
Previous weeks :
|1-10|11-20|21-30|31-40|
|----|-----|-----|-----|
|[Week 1](https://www.reddit.com/r/MachineLearning/comments/4qyjiq/machine_learning_wayr_what_are_you_reading_week_1/)|[Week 11](https://www.reddit.com/r/MachineLearning/comments/57xw56/discussion_machine_learning_wayr_what_are_you/)|[Week 21](https://www.reddit.com/r/MachineLearning/comments/60ildf/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 31](https://www.reddit.com/r/MachineLearning/comments/6s0k1u/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 2](https://www.reddit.com/r/MachineLearning/comments/4s2xqm/machine_learning_wayr_what_are_you_reading_week_2/)|[Week 12](https://www.reddit.com/r/MachineLearning/comments/5acb1t/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 22](https://www.reddit.com/r/MachineLearning/comments/64jwde/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 32](https://www.reddit.com/r/MachineLearning/comments/72ab5y/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 3](https://www.reddit.com/r/MachineLearning/comments/4t7mqm/machine_learning_wayr_what_are_you_reading_week_3/)|[Week 13](https://www.reddit.com/r/MachineLearning/comments/5cwfb6/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 23](https://www.reddit.com/r/MachineLearning/comments/674331/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 33](https://www.reddit.com/r/MachineLearning/comments/75405d/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 4](https://www.reddit.com/r/MachineLearning/comments/4ub2kw/machine_learning_wayr_what_are_you_reading_week_4/)|[Week 14](https://www.reddit.com/r/MachineLearning/comments/5fc5mh/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 24](https://www.reddit.com/r/MachineLearning/comments/68hhhb/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 34](https://www.reddit.com/r/MachineLearning/comments/782js9/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 5](https://www.reddit.com/r/MachineLearning/comments/4xomf7/machine_learning_wayr_what_are_you_reading_week_5/)|[Week 15](https://www.reddit.com/r/MachineLearning/comments/5hy4ur/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 25](https://www.reddit.com/r/MachineLearning/comments/69teiz/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 35](https://www.reddit.com/r/MachineLearning/comments/7b0av0/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 6](https://www.reddit.com/r/MachineLearning/comments/4zcyvk/machine_learning_wayr_what_are_you_reading_week_6/)|[Week 16](https://www.reddit.com/r/MachineLearning/comments/5kd6vd/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 26](https://www.reddit.com/r/MachineLearning/comments/6d7nb1/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 36](https://www.reddit.com/r/MachineLearning/comments/7e3fx6/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 7](https://www.reddit.com/r/MachineLearning/comments/52t6mo/machine_learning_wayr_what_are_you_reading_week_7/)|[Week 17](https://www.reddit.com/r/MachineLearning/comments/5ob7dx/discussion_machine_learning_wayr_what_are_you/)|[Week 27](https://www.reddit.com/r/MachineLearning/comments/6gngwc/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 37](https://www.reddit.com/r/MachineLearning/comments/7hcc2c/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 8](https://www.reddit.com/r/MachineLearning/comments/53heol/machine_le
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
arning_wayr_what_are_you_reading_week_8/)|[Week 18](https://www.reddit.com/r/MachineLearning/comments/5r14yd/discussion_machine_learning_wayr_what_are_you/)|[Week 28](https://www.reddit.com/r/MachineLearning/comments/6jgdva/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 38](https://www.reddit.com/r/MachineLearning/comments/7kgcqr/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 9](https://www.reddit.com/r/MachineLearning/comments/54kvsu/machine_learning_wayr_what_are_you_reading_week_9/)|[Week 19](https://www.reddit.com/r/MachineLearning/comments/5tt9cz/discussion_machine_learning_wayr_what_are_you/)|[Week 29](https://www.reddit.com/r/MachineLearning/comments/6m9l1v/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 10](https://www.reddit.com/r/MachineLearning/comments/56s2oa/discussion_machine_learning_wayr_what_are_you/)|[Week 20](https://www.reddit.com/r/MachineLearning/comments/5wh2wb/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 30](https://www.reddit.com/r/MachineLearning/comments/6p3ha7/d_machine_learning_wayr_what_are_you_reading_week/)||
Most upvoted papers two weeks ago:
/u/lmcinnes: [Metric Realization of Fuzzy Simplicial Sets](http://math.mit.edu/~dspivak/files/metric_realization.pdf)
/u/no_bear_so_low: https://arxiv.org/abs/1604.00289v2
/u/red-black-trees: https://arxiv.org/pdf/1609.06838.pdf
Besides that, there are no rules, have fun.
/r/MachineLearning
https://redd.it/7nayri
|[Week 9](https://www.reddit.com/r/MachineLearning/comments/54kvsu/machine_learning_wayr_what_are_you_reading_week_9/)|[Week 19](https://www.reddit.com/r/MachineLearning/comments/5tt9cz/discussion_machine_learning_wayr_what_are_you/)|[Week 29](https://www.reddit.com/r/MachineLearning/comments/6m9l1v/d_machine_learning_wayr_what_are_you_reading_week/)||
|[Week 10](https://www.reddit.com/r/MachineLearning/comments/56s2oa/discussion_machine_learning_wayr_what_are_you/)|[Week 20](https://www.reddit.com/r/MachineLearning/comments/5wh2wb/d_machine_learning_wayr_what_are_you_reading_week/)|[Week 30](https://www.reddit.com/r/MachineLearning/comments/6p3ha7/d_machine_learning_wayr_what_are_you_reading_week/)||
Most upvoted papers two weeks ago:
/u/lmcinnes: [Metric Realization of Fuzzy Simplicial Sets](http://math.mit.edu/~dspivak/files/metric_realization.pdf)
/u/no_bear_so_low: https://arxiv.org/abs/1604.00289v2
/u/red-black-trees: https://arxiv.org/pdf/1609.06838.pdf
Besides that, there are no rules, have fun.
/r/MachineLearning
https://redd.it/7nayri
reddit
[Discussion] Machine Learning - WAYR (What Are You Reading) - Week 18
This is a place to share machine learning research papers, journals, and articles that you're reading this week. If it relates to what you're...
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/7nmm6m
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/7nmm6m
reddit
What's everyone working on this week? • r/Python
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...
Humble bundle has 15 books on python for 12 bucks right now... Is the potential opportunity I'm looking for?
I'm a project manager and administrative head for about 60 people right now looking for a change. I manage technical people and understand what they do, need, and how to get it but I know I'm coming to a head in where I'm at and if I want to be marketable more than just getting by on a willingness to lead and 8 years experience doing it. I need to be technical as well. I've had Security plus cert and I've taught CCNA mod 1 so I understand computers and basic network design decently enough but I don't feel like if I were to get dumped into the workforce tomorrow I'm viable. My tech education was a mile wide an inch deep so that I could manage techs whose education was an inch wide and a mile deep. Is this humble bundle the potential opportunity a godsend?
/r/Python
https://redd.it/7nmjf6
I'm a project manager and administrative head for about 60 people right now looking for a change. I manage technical people and understand what they do, need, and how to get it but I know I'm coming to a head in where I'm at and if I want to be marketable more than just getting by on a willingness to lead and 8 years experience doing it. I need to be technical as well. I've had Security plus cert and I've taught CCNA mod 1 so I understand computers and basic network design decently enough but I don't feel like if I were to get dumped into the workforce tomorrow I'm viable. My tech education was a mile wide an inch deep so that I could manage techs whose education was an inch wide and a mile deep. Is this humble bundle the potential opportunity a godsend?
/r/Python
https://redd.it/7nmjf6
reddit
Humble bundle has 15 books on python for 12 bucks right... • r/Python
I'm a project manager and administrative head for about 60 people right now looking for a change. I manage technical people and understand what...
Click Tips: Writing Advanced Python Command-Line Apps
https://dbader.org/blog/mastering-click-advanced-python-command-line-apps#info
/r/Python
https://redd.it/7nmwte
https://dbader.org/blog/mastering-click-advanced-python-command-line-apps#info
/r/Python
https://redd.it/7nmwte
dbader.org
Mastering Click: Writing Advanced Python Command-Line Apps – dbader.org
How to improve your existing Click Python CLIs with advanced features like sub-commands, user input, parameter types, contexts, and more.
When should we avoid classes?
I like to read about cool python project blogs and articles. What I have noticed is that many python programmers uses classes even for small projects. Do we need to use classes for every python projects? Do python veterans recommend writing codes only with classes or we can avoid it?
/r/Python
https://redd.it/7nn912
I like to read about cool python project blogs and articles. What I have noticed is that many python programmers uses classes even for small projects. Do we need to use classes for every python projects? Do python veterans recommend writing codes only with classes or we can avoid it?
/r/Python
https://redd.it/7nn912
reddit
When should we avoid classes? • r/Python
I like to read about cool python project blogs and articles. What I have noticed is that many python programmers uses classes even for small...