Need to hire a Django developer. What questions should I ask him/her to test their abilities?
I'm currently looking to hire a Django developer for a cryptocurrency based site. As the site will be handling cryptocurrency security is a big factor in the way the site needs to be coded. I need someone who is an expert in Django and can get complicated stuff done quickly using the framework, and can also code with security in mind to create a website which is robust to hacking.
I have some interviews with Django developers over the next couple of days. What questions can I ask these people to test whether they are extremely competent at using Django?
/r/django
https://redd.it/7gdr6e
I'm currently looking to hire a Django developer for a cryptocurrency based site. As the site will be handling cryptocurrency security is a big factor in the way the site needs to be coded. I need someone who is an expert in Django and can get complicated stuff done quickly using the framework, and can also code with security in mind to create a website which is robust to hacking.
I have some interviews with Django developers over the next couple of days. What questions can I ask these people to test whether they are extremely competent at using Django?
/r/django
https://redd.it/7gdr6e
reddit
Need to hire a Django developer. What questions should... • r/django
I'm currently looking to hire a Django developer for a cryptocurrency based site. As the site will be handling cryptocurrency security is a big...
Bleeding edge Django template focused on code quality and security.
https://github.com/wemake-services/wemake-django-template
/r/Python
https://redd.it/7gcyey
https://github.com/wemake-services/wemake-django-template
/r/Python
https://redd.it/7gcyey
GitHub
GitHub - wemake-services/wemake-django-template: Bleeding edge django template focused on code quality and security.
Bleeding edge django template focused on code quality and security. - wemake-services/wemake-django-template
Flask timeout on Raspberry Pi?
Hey folks,
I have the below code running perpetually on my local network, hosted on my Pi. Its just a super simple app for using the Pi as a WOL server, but after a few days (maybe a week?) its inaccessible on my local network, and I have to restart the code on the Pi. Does flask auto shutdown after a certain amount of time or something? I've got a feeling the answer is no, but this has happened 2-3 times now so I thought I'd make a post to see if anyone has the same issue.
from flask import Flask
app = Flask(__name__)
@app.route('/')
def home():
'WOL Code here'
Return 'WOL activated'
if __name__ == '__main__':
app.run(host='0.0.0.0', port=3000)
/r/flask
https://redd.it/7gdfpm
Hey folks,
I have the below code running perpetually on my local network, hosted on my Pi. Its just a super simple app for using the Pi as a WOL server, but after a few days (maybe a week?) its inaccessible on my local network, and I have to restart the code on the Pi. Does flask auto shutdown after a certain amount of time or something? I've got a feeling the answer is no, but this has happened 2-3 times now so I thought I'd make a post to see if anyone has the same issue.
from flask import Flask
app = Flask(__name__)
@app.route('/')
def home():
'WOL Code here'
Return 'WOL activated'
if __name__ == '__main__':
app.run(host='0.0.0.0', port=3000)
/r/flask
https://redd.it/7gdfpm
reddit
Flask timeout on Raspberry Pi? • r/flask
Hey folks, I have the below code running perpetually on my local network, hosted on my Pi. Its just a super simple app for using the Pi as a WOL...
The PSF awarded $170,000 grant from Mozilla Open Source Program to improve sustainability of PyPI
https://pyfound.blogspot.com/2017/11/the-psf-awarded-moss-grant-pypi.html
/r/Python
https://redd.it/7gg142
https://pyfound.blogspot.com/2017/11/the-psf-awarded-moss-grant-pypi.html
/r/Python
https://redd.it/7gg142
Blogspot
The PSF awarded $170,000 grant from Mozilla Open Source Program to improve sustainability of PyPI
When are we finally going to see Warehouse deployed? What's the holdup? Has this project stalled? For the last year, we at the Python Pac...
Inside the jounery to #100DaysOfCode (Python edition, audio)
https://talkpython.fm/episodes/show/140/level-up-your-python-with-100daysofcode-challenge
/r/Python
https://redd.it/7gg4h5
https://talkpython.fm/episodes/show/140/level-up-your-python-with-100daysofcode-challenge
/r/Python
https://redd.it/7gg4h5
talkpython.fm
Level up your Python with #100DaysOfCode challenge
How do you learn libraries or parts of Python itself that you don't have actual work projects involving them? Whether that's SQLAlchemy, Slack bots, or map APIs, actually building projects (small and large) with them is really the only way to gain true competency.
Please rate and/or learn from my (form processing) code
I am a self-taught programmer and I just realized that, after sitting alone by myself all this time typing into my computer, I'm not entirely sure I have any idea what I'm doing as I have never had anyone ever see my code or offer any constructive criticism to how I've grown to do things.
I'd really appreciate if anyone could have a look at my code linked below and just let me know if anything crazy pops out at you. It's pretty close to how I usually do things as far as importing and instantiating classes and whatnot.
this code in particular is for processing a user sign-up form:
https://gist.github.com/anonymous/0ca1188bf5c3f7a33a2fff080107004b
/r/flask
https://redd.it/7gidq4
I am a self-taught programmer and I just realized that, after sitting alone by myself all this time typing into my computer, I'm not entirely sure I have any idea what I'm doing as I have never had anyone ever see my code or offer any constructive criticism to how I've grown to do things.
I'd really appreciate if anyone could have a look at my code linked below and just let me know if anything crazy pops out at you. It's pretty close to how I usually do things as far as importing and instantiating classes and whatnot.
this code in particular is for processing a user sign-up form:
https://gist.github.com/anonymous/0ca1188bf5c3f7a33a2fff080107004b
/r/flask
https://redd.it/7gidq4
Gist
to illustrate manually processing a form
Prettier is about to start supporting Python. Early feedback is very important.
https://twitter.com/PrettierCode/status/935905782159302656
/r/Python
https://redd.it/7gf2cw
https://twitter.com/PrettierCode/status/935905782159302656
/r/Python
https://redd.it/7gf2cw
Twitter
Prettier
It has begun! Very early stages of Python support for Prettier. Please test or even better contribute with feedback or code. #python https://t.co/J04fQRtcW2
[AF] Post request working locally, but not remotely.
Hi all, I'm new to Flask (and web programming in general, so please excuse me if this is the wrong place) and am simply trying to use it to work as something my Raspberry Pi can use to receive input from the internet.
Anyway, here's the issue. I've set up a small page that has an html form (a text box and a submit button), so I think this should be generating a post request. Basically, the input from the form gets passed to some other python code (blinks an LED).
When I run the website to be accessible locally, I can enter the input, press the submit on the actual page and everything behaves as expected. Similarly, I can use curl and send the input as the body of a post request.
When I run the website to accessible remotely (I turn off debug and change the port to the one I've forwarded), I can navigate to the page (I have a domain name via no-ip) and enter the input in the box and press submit, and it works. However, when I try to submit the request via curl (i update the target to be the URL from noip rather than the local ip of the pi), it just hangs until it times out, and I see nothing happening on the computer that sent the request, or the pi running the flask server. When I try to submit the request via IFTTT, I do see that the server has a received a request, but I get a 400 error.
Im guessing this is a bug with NoIP, rather than flask, but I'm unsure of how to even go about debugging. Flask gurus, do you have any ideas here?
/r/flask
https://redd.it/7geqag
Hi all, I'm new to Flask (and web programming in general, so please excuse me if this is the wrong place) and am simply trying to use it to work as something my Raspberry Pi can use to receive input from the internet.
Anyway, here's the issue. I've set up a small page that has an html form (a text box and a submit button), so I think this should be generating a post request. Basically, the input from the form gets passed to some other python code (blinks an LED).
When I run the website to be accessible locally, I can enter the input, press the submit on the actual page and everything behaves as expected. Similarly, I can use curl and send the input as the body of a post request.
When I run the website to accessible remotely (I turn off debug and change the port to the one I've forwarded), I can navigate to the page (I have a domain name via no-ip) and enter the input in the box and press submit, and it works. However, when I try to submit the request via curl (i update the target to be the URL from noip rather than the local ip of the pi), it just hangs until it times out, and I see nothing happening on the computer that sent the request, or the pi running the flask server. When I try to submit the request via IFTTT, I do see that the server has a received a request, but I get a 400 error.
Im guessing this is a bug with NoIP, rather than flask, but I'm unsure of how to even go about debugging. Flask gurus, do you have any ideas here?
/r/flask
https://redd.it/7geqag
reddit
[AF] Post request working locally, but not remotely. • r/flask
Hi all, I'm new to Flask (and web programming in general, so please excuse me if this is the wrong place) and am simply trying to use it to work...
I did a flask project, which uses server side session storage, any suggestions are more than welcome.
https://github.com/variable17/office-attendance-system
/r/flask
https://redd.it/7gcnq5
https://github.com/variable17/office-attendance-system
/r/flask
https://redd.it/7gcnq5
GitHub
variable17/office-attendance-system
office-attendance-system - Server side session storage
Double underscore method for ordering the list returned by the view based on a field in another model not working
I'm trying to order the list the view returns based on a field in another model. I read the [documentation over here](https://docs.djangoproject.com/en/1.11/ref/models/querysets/#order-by) and it says I could do that by using the model's name, if the ordering is specified in the model's meta.
**View**
class ResultsView(generic.DetailView):
model = Question
template_name = 'polls/results.html'
ordering = ['choice']
**Model**
class Choice(models.Model):
question = models.ForeignKey(Question, on_delete=models.CASCADE)
choice_text = models.CharField(max_length=200)
votes = models.IntegerField(default=0)
def __str__(self):
return self.choice_text
class Meta:
ordering = ['-votes']
I did that, it works but I have different views which require the same model to be ordered in different ways, say one by it's name and another by votes. How can I achieve something like that?
For example I am looking for something like
**View 1**
class ResultsView(generic.DetailView):
model = Question
template_name = 'polls/results.html'
ordering = ['-choice__votes']
**View 2**
class DetailView(generic.DetailView):
model = Question
template_name = 'polls/detail.html'
ordering = ['-choice__choice_text']
/r/djangolearning
https://redd.it/7gj6xz
I'm trying to order the list the view returns based on a field in another model. I read the [documentation over here](https://docs.djangoproject.com/en/1.11/ref/models/querysets/#order-by) and it says I could do that by using the model's name, if the ordering is specified in the model's meta.
**View**
class ResultsView(generic.DetailView):
model = Question
template_name = 'polls/results.html'
ordering = ['choice']
**Model**
class Choice(models.Model):
question = models.ForeignKey(Question, on_delete=models.CASCADE)
choice_text = models.CharField(max_length=200)
votes = models.IntegerField(default=0)
def __str__(self):
return self.choice_text
class Meta:
ordering = ['-votes']
I did that, it works but I have different views which require the same model to be ordered in different ways, say one by it's name and another by votes. How can I achieve something like that?
For example I am looking for something like
**View 1**
class ResultsView(generic.DetailView):
model = Question
template_name = 'polls/results.html'
ordering = ['-choice__votes']
**View 2**
class DetailView(generic.DetailView):
model = Question
template_name = 'polls/detail.html'
ordering = ['-choice__choice_text']
/r/djangolearning
https://redd.it/7gj6xz
reddit
Double underscore method for ordering the list... • r/djangolearning
I'm trying to order the list the view returns based on a field in another model. I read the [documentation over...
TOROS N2 - lightweight approximate Nearest Neighbor library which runs faster even with large datasets
https://github.com/kakao/n2
/r/Python
https://redd.it/7gl1mf
https://github.com/kakao/n2
/r/Python
https://redd.it/7gl1mf
GitHub
GitHub - kakao/n2: TOROS N2 - lightweight approximate Nearest Neighbor library which runs fast even with large datasets
TOROS N2 - lightweight approximate Nearest Neighbor library which runs fast even with large datasets - kakao/n2
Share your Apps/Websites created using Django? We need motivation!
Please provide with information such as:
Website Link:
Active Users:
Monthly Revenue Generation:
Website details, and target Costumer:
Important things Learned while creating your website:
Packages/Libraries used:
Thank you for sharing.
/r/django
https://redd.it/7gldnw
Please provide with information such as:
Website Link:
Active Users:
Monthly Revenue Generation:
Website details, and target Costumer:
Important things Learned while creating your website:
Packages/Libraries used:
Thank you for sharing.
/r/django
https://redd.it/7gldnw
reddit
Share your Apps/Websites created using Django? We need... • r/django
Please provide with information such as: Website Link: Active Users: Monthly Revenue Generation: Website details, and target...
What is the first interesting program you made with python?
I created the bounce game (Python for kids) today. It's the game we played in our childhood where the ball used to move randomly and we had to save it from hitting the bottom. Not that big of a deal for some, but good enough for me. Have been working with Django for an year now, but this is way more fun than building scalable websites or analyzing data. What is your first exciting moment with python?
/r/Python
https://redd.it/7gm1ze
I created the bounce game (Python for kids) today. It's the game we played in our childhood where the ball used to move randomly and we had to save it from hitting the bottom. Not that big of a deal for some, but good enough for me. Have been working with Django for an year now, but this is way more fun than building scalable websites or analyzing data. What is your first exciting moment with python?
/r/Python
https://redd.it/7gm1ze
reddit
What is the first interesting program you made with python? • r/Python
I created the bounce game (Python for kids) today. It's the game we played in our childhood where the ball used to move randomly and we had to...
When I create a new Flask project, here are 15 libraries that are always in my requirements.txt file. What libraries do you use?
I find myself using these libraries in every new Flask project I set up:
* gunicorn
* flask-debugtoolbar
* pytest and pytest-cov
* flake8
* Flask-SQLAlchemy and psycopg2
* alembic
* celery and redis
* Flask-WTF and WTForms-Components
* Flask-Login
* Flask-Limiter
* Flask-Mail
If you want to know why I use all of these libraries, more details can be found at
https://nickjanetakis.com/blog/15-useful-flask-extensions-and-libraries-that-i-use-in-every-project.
What's your favorite extensions and libraries?
/r/flask
https://redd.it/7g4wzg
I find myself using these libraries in every new Flask project I set up:
* gunicorn
* flask-debugtoolbar
* pytest and pytest-cov
* flake8
* Flask-SQLAlchemy and psycopg2
* alembic
* celery and redis
* Flask-WTF and WTForms-Components
* Flask-Login
* Flask-Limiter
* Flask-Mail
If you want to know why I use all of these libraries, more details can be found at
https://nickjanetakis.com/blog/15-useful-flask-extensions-and-libraries-that-i-use-in-every-project.
What's your favorite extensions and libraries?
/r/flask
https://redd.it/7g4wzg
Nick Janetakis
15 Useful Flask Extensions and Libraries That I Use in Every Project — Nick Janetakis
Part of the benefit of using a popular web framework is the thriving community around it. Here's my favorite Flask extensions.
When I create a new Flask project, here are 15 libraries that are always in my requirements.txt file. What libraries do you use?
I find myself using these libraries in every new Flask project I set up:
* gunicorn
* flask-debugtoolbar
* pytest and pytest-cov
* flake8
* Flask-SQLAlchemy and psycopg2
* alembic
* celery and redis
* Flask-WTF and WTForms-Components
* Flask-Login
* Flask-Limiter
* Flask-Mail
If you want to know why I use all of these libraries, more details can be found at
https://nickjanetakis.com/blog/15-useful-flask-extensions-and-libraries-that-i-use-in-every-project.
What's your favorite extensions and libraries?
/r/flask
https://redd.it/7g4wzg
I find myself using these libraries in every new Flask project I set up:
* gunicorn
* flask-debugtoolbar
* pytest and pytest-cov
* flake8
* Flask-SQLAlchemy and psycopg2
* alembic
* celery and redis
* Flask-WTF and WTForms-Components
* Flask-Login
* Flask-Limiter
* Flask-Mail
If you want to know why I use all of these libraries, more details can be found at
https://nickjanetakis.com/blog/15-useful-flask-extensions-and-libraries-that-i-use-in-every-project.
What's your favorite extensions and libraries?
/r/flask
https://redd.it/7g4wzg
Nick Janetakis
15 Useful Flask Extensions and Libraries That I Use in Every Project — Nick Janetakis
Part of the benefit of using a popular web framework is the thriving community around it. Here's my favorite Flask extensions.
When I create a new Flask project, here are 15 libraries that are always in my requirements.txt file. What libraries do you use?
I find myself using these libraries in every new Flask project I set up:
* gunicorn
* flask-debugtoolbar
* pytest and pytest-cov
* flake8
* Flask-SQLAlchemy and psycopg2
* alembic
* celery and redis
* Flask-WTF and WTForms-Components
* Flask-Login
* Flask-Limiter
* Flask-Mail
If you want to know why I use all of these libraries, more details can be found at
https://nickjanetakis.com/blog/15-useful-flask-extensions-and-libraries-that-i-use-in-every-project.
What's your favorite extensions and libraries?
/r/flask
https://redd.it/7g4wzg
I find myself using these libraries in every new Flask project I set up:
* gunicorn
* flask-debugtoolbar
* pytest and pytest-cov
* flake8
* Flask-SQLAlchemy and psycopg2
* alembic
* celery and redis
* Flask-WTF and WTForms-Components
* Flask-Login
* Flask-Limiter
* Flask-Mail
If you want to know why I use all of these libraries, more details can be found at
https://nickjanetakis.com/blog/15-useful-flask-extensions-and-libraries-that-i-use-in-every-project.
What's your favorite extensions and libraries?
/r/flask
https://redd.it/7g4wzg
Nick Janetakis
15 Useful Flask Extensions and Libraries That I Use in Every Project — Nick Janetakis
Part of the benefit of using a popular web framework is the thriving community around it. Here's my favorite Flask extensions.
When I create a new Flask project, here are 15 libraries that are always in my requirements.txt file. What libraries do you use?
I find myself using these libraries in every new Flask project I set up:
* gunicorn
* flask-debugtoolbar
* pytest and pytest-cov
* flake8
* Flask-SQLAlchemy and psycopg2
* alembic
* celery and redis
* Flask-WTF and WTForms-Components
* Flask-Login
* Flask-Limiter
* Flask-Mail
If you want to know why I use all of these libraries, more details can be found at
https://nickjanetakis.com/blog/15-useful-flask-extensions-and-libraries-that-i-use-in-every-project.
What's your favorite extensions and libraries?
/r/flask
https://redd.it/7g4wzg
I find myself using these libraries in every new Flask project I set up:
* gunicorn
* flask-debugtoolbar
* pytest and pytest-cov
* flake8
* Flask-SQLAlchemy and psycopg2
* alembic
* celery and redis
* Flask-WTF and WTForms-Components
* Flask-Login
* Flask-Limiter
* Flask-Mail
If you want to know why I use all of these libraries, more details can be found at
https://nickjanetakis.com/blog/15-useful-flask-extensions-and-libraries-that-i-use-in-every-project.
What's your favorite extensions and libraries?
/r/flask
https://redd.it/7g4wzg
Nick Janetakis
15 Useful Flask Extensions and Libraries That I Use in Every Project — Nick Janetakis
Part of the benefit of using a popular web framework is the thriving community around it. Here's my favorite Flask extensions.
Sports statistic site
Hi,
I’m a newish full stack developer and I’m trying to build a sports statistic site in Django.
I’m struggling with working out how to structure my project with regards to both the models and the apps I use.
It is a basketball focused application so I’ve started with a player model. There are a ton of stats that each player has for each season so I’ve created a season model that has a player field as a foreignkey. So far so good, I’m struggling to get the data from the API in bulk but that’s another post.
So, we have player and career stats. Now, the next thing I need is team. Teams have all the location and historical stats but then they have players - I think players should reference team as a foreignkey with related name but then I’m not sure how I deal with players when they change team, should there be a former players field and a method to change team that would populate that?
Then we have schedule and match stats. Each game has two teams with a given roster and a given box score that’s not too bad. I need to be more confident in my data collection processes before I’d trust it live.
That’s the main functionality so far. Typing this has helped me clarify my thinking a bit - I’ll stick my work so far up on GitHub at some point if anyone is interested.
If you have initial thoughts, similar projects that might be inspiring and helpful I’d love to hear it.
Hope you’re all doing well!
/r/django
https://redd.it/7gohks
Hi,
I’m a newish full stack developer and I’m trying to build a sports statistic site in Django.
I’m struggling with working out how to structure my project with regards to both the models and the apps I use.
It is a basketball focused application so I’ve started with a player model. There are a ton of stats that each player has for each season so I’ve created a season model that has a player field as a foreignkey. So far so good, I’m struggling to get the data from the API in bulk but that’s another post.
So, we have player and career stats. Now, the next thing I need is team. Teams have all the location and historical stats but then they have players - I think players should reference team as a foreignkey with related name but then I’m not sure how I deal with players when they change team, should there be a former players field and a method to change team that would populate that?
Then we have schedule and match stats. Each game has two teams with a given roster and a given box score that’s not too bad. I need to be more confident in my data collection processes before I’d trust it live.
That’s the main functionality so far. Typing this has helped me clarify my thinking a bit - I’ll stick my work so far up on GitHub at some point if anyone is interested.
If you have initial thoughts, similar projects that might be inspiring and helpful I’d love to hear it.
Hope you’re all doing well!
/r/django
https://redd.it/7gohks
reddit
Sports statistic site • r/django
Hi, I’m a newish full stack developer and I’m trying to build a sports statistic site in Django. I’m struggling with working out how to...
PyConDE 2017 Talk are now available on YouTube
https://www.youtube.com/watch?v=3h-6GBBF4Hg&list=PLHd2BPBhxqRI_HtgmPJcm3LPAlhdX6J9v
/r/Python
https://redd.it/7glvwc
https://www.youtube.com/watch?v=3h-6GBBF4Hg&list=PLHd2BPBhxqRI_HtgmPJcm3LPAlhdX6J9v
/r/Python
https://redd.it/7glvwc
YouTube
PyCon.DE 2017 Keynote Prof. Dr. Susanne Mertens - Neutrinos: who are you and if yes how many?
Since 2008 Susanne Mertens is working on the experimental investigation of the elusive elementary particle, the Neutrino. With the two large-scale experiment...