Django Saleor cms code explained
Django Saleor cms code explained
​
hello not sure if you anyone would be willing help but i have the python down and looking to dive down into the language more so i wondering if anyone could give me walk through of saleor code and help me learn of it all works togather.
example would be how saleor sends data from dashboard to database when i create a new product and what code is responsible for that?
more then willing to pay for this service
/r/django
https://redd.it/aur6cy
Django Saleor cms code explained
​
hello not sure if you anyone would be willing help but i have the python down and looking to dive down into the language more so i wondering if anyone could give me walk through of saleor code and help me learn of it all works togather.
example would be how saleor sends data from dashboard to database when i create a new product and what code is responsible for that?
more then willing to pay for this service
/r/django
https://redd.it/aur6cy
[D] Great idea, how to publish?
I'm an independent software developer. While working on my own image processing project I invented a "thing". There is no reason to keep it to myself, as idea it's not patentable. What I'd like is to make it public and add something to my resume. What is the right way of doing it?
As for the idea:
1. It gives great, clear benefits.
2. it's generic and applicable in other domains as well.
3. it's intuitive. If I tell most of you will say 'nice' even before looking at the results.
4. it's easy to implement. I did it in pytorch, it's as easy to do in tensorflow or any other similar tool.
It would be quite popular, but I've seen nothing like this. So, I think it's something really new and worth publishing.
/r/MachineLearning
https://redd.it/aul89k
I'm an independent software developer. While working on my own image processing project I invented a "thing". There is no reason to keep it to myself, as idea it's not patentable. What I'd like is to make it public and add something to my resume. What is the right way of doing it?
As for the idea:
1. It gives great, clear benefits.
2. it's generic and applicable in other domains as well.
3. it's intuitive. If I tell most of you will say 'nice' even before looking at the results.
4. it's easy to implement. I did it in pytorch, it's as easy to do in tensorflow or any other similar tool.
It would be quite popular, but I've seen nothing like this. So, I think it's something really new and worth publishing.
/r/MachineLearning
https://redd.it/aul89k
reddit
r/MachineLearning - [D] Great idea, how to publish?
81 votes and 39 comments so far on Reddit
This media is not supported in your browser
VIEW IN TELEGRAM
First Program / GUI EVER! (Follow Up Video) | This is a continuation from last week where I posted my flooring calculator CLI program that everyone was so supportive of. Just wanted to let everyone know I have made a GUI for it. Not quite finished but it works flawlessly! :D
/r/Python
https://redd.it/aup5bi
/r/Python
https://redd.it/aup5bi
Python 3.8.0a2 is out! Join the future, before it even happens!
https://www.python.org/downloads/release/python-380a2/
/r/Python
https://redd.it/aurchr
https://www.python.org/downloads/release/python-380a2/
/r/Python
https://redd.it/aurchr
Python.org
Python Release Python 3.8.0a2
The official home of the Python Programming Language
Simple Flask Apps (no db)
I'm teaching a Flask course at the moment, and the requirements are that students do *not* use a database (introduced next unit). There's no flexibility around this requirement.
​
What are some ideas for apps that students can create? Here are a couple I've come up with:
* Madlibs
* Coin toss
* Random numbers
* Random student from list
* Tax calculator
* Home loan repayment calculator
​
Some simple APIs that they've experimented with:
* Chuck Norris
* ISS
/r/flask
https://redd.it/aus1jh
I'm teaching a Flask course at the moment, and the requirements are that students do *not* use a database (introduced next unit). There's no flexibility around this requirement.
​
What are some ideas for apps that students can create? Here are a couple I've come up with:
* Madlibs
* Coin toss
* Random numbers
* Random student from list
* Tax calculator
* Home loan repayment calculator
​
Some simple APIs that they've experimented with:
* Chuck Norris
* ISS
/r/flask
https://redd.it/aus1jh
reddit
r/flask - Simple Flask Apps (no db)
8 votes and 4 comments so far on Reddit
Trouble rendering wtform validator error
With the below I have a simple form with a text input box. I have set the `InputRequired()` validator on `SignUpForm`; however when I run localhost I don't get the validator message "Wrong value" if no input is supplied when I push the submit button.
​
from flask import Flask, request, render_template, redirect, url_for
from . import forms
app = Flask(__name__)
app.secret_key = "Shhhhh!"
@app.route('/', methods=['GET', 'POST'])
def index():
form = forms.SignUpForm()
if form.validate_on_submit():
return redirect(url_for('forward'))
return render_template('index.html', form=form)
@app.route('/forward', methods=['POST'])
def forword():
if request.method == 'POST':
return render_template('forward.html')
​
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import InputRequired, Email
/r/flask
https://redd.it/auucc8
With the below I have a simple form with a text input box. I have set the `InputRequired()` validator on `SignUpForm`; however when I run localhost I don't get the validator message "Wrong value" if no input is supplied when I push the submit button.
​
from flask import Flask, request, render_template, redirect, url_for
from . import forms
app = Flask(__name__)
app.secret_key = "Shhhhh!"
@app.route('/', methods=['GET', 'POST'])
def index():
form = forms.SignUpForm()
if form.validate_on_submit():
return redirect(url_for('forward'))
return render_template('index.html', form=form)
@app.route('/forward', methods=['POST'])
def forword():
if request.method == 'POST':
return render_template('forward.html')
​
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import InputRequired, Email
/r/flask
https://redd.it/auucc8
reddit
r/flask - Trouble rendering wtform validator error
1 vote and 3 comments so far on Reddit
[R] AdaBound: An optimizer that trains as fast as Adam and as good as SGD (ICLR 2019), with A PyTorch Implementation
Hi! I am an undergrad doing research in the field of ML/DL/NLP. This is my first time to write a post on Reddit. :D
We developed a new optimizer called **AdaBound**, hoping to achieve a faster training speed as well as better performance on unseen data. Our paper, *Adaptive Gradient Methods with Dynamic Bound of Learning Rate*, has been accepted by ICLR 2019 and we just updated the camera ready version on open review.
I am very excited that a PyTorch implementation of AdaBound is publicly available now, and a PyPI package has been released as well. You may install and try AdaBound easily via `pip` or directly copying & pasting. I also wrote a post to introduce this lovely new optimizer.
​
Here's some quick links:
**Website:** [https://www.luolc.com/publications/adabound/](https://www.luolc.com/publications/adabound/)
**GitHub:** [https://github.com/Luolc/AdaBound](https://github.com/Luolc/AdaBound)
**Open Review:** [https://openreview.net/forum?id=Bkg3g2R9FX](https://openreview.net/forum?id=Bkg3g2R9FX)
**Abstract:**
Adaptive optimization methods such as AdaGrad, RMSprop and Adam have been proposed to achieve a rapid training process with an element-wise scaling term on learning rates. Though prevailing, they are observed to generalize poorly compared with SGD or even fail to converge due to unstable and extreme learning rates. Recent work has put forward some algorithms such as AMSGrad to tackle this issue but they failed to achieve considerable improvement over existing methods. In
/r/MachineLearning
https://redd.it/auvj3q
Hi! I am an undergrad doing research in the field of ML/DL/NLP. This is my first time to write a post on Reddit. :D
We developed a new optimizer called **AdaBound**, hoping to achieve a faster training speed as well as better performance on unseen data. Our paper, *Adaptive Gradient Methods with Dynamic Bound of Learning Rate*, has been accepted by ICLR 2019 and we just updated the camera ready version on open review.
I am very excited that a PyTorch implementation of AdaBound is publicly available now, and a PyPI package has been released as well. You may install and try AdaBound easily via `pip` or directly copying & pasting. I also wrote a post to introduce this lovely new optimizer.
​
Here's some quick links:
**Website:** [https://www.luolc.com/publications/adabound/](https://www.luolc.com/publications/adabound/)
**GitHub:** [https://github.com/Luolc/AdaBound](https://github.com/Luolc/AdaBound)
**Open Review:** [https://openreview.net/forum?id=Bkg3g2R9FX](https://openreview.net/forum?id=Bkg3g2R9FX)
**Abstract:**
Adaptive optimization methods such as AdaGrad, RMSprop and Adam have been proposed to achieve a rapid training process with an element-wise scaling term on learning rates. Though prevailing, they are observed to generalize poorly compared with SGD or even fail to converge due to unstable and extreme learning rates. Recent work has put forward some algorithms such as AMSGrad to tackle this issue but they failed to achieve considerable improvement over existing methods. In
/r/MachineLearning
https://redd.it/auvj3q
Luolc
Adaptive Gradient Methods with Dynamic Bound of Learning Rate
Abstract Adaptive optimization methods such as AdaGrad, RMSProp and Adam have been proposed to achieve a rapid training process with an element-wise scaling term on learning rates. Though prevailing, they are observed to generalize poorly compared with Sgd…
Just created my first web app using Flask and have a noob question
First off, Flask is really awesome. I’ve been programming for about 4 months now, and building this application was really cool, challenging, and sort of inspiring. The question I have is: is it possible to create the web server on say a Raspberry Pi, and then access it remotely from another machine? If so where would I look to learn how to do this?
/r/flask
https://redd.it/auipte
First off, Flask is really awesome. I’ve been programming for about 4 months now, and building this application was really cool, challenging, and sort of inspiring. The question I have is: is it possible to create the web server on say a Raspberry Pi, and then access it remotely from another machine? If so where would I look to learn how to do this?
/r/flask
https://redd.it/auipte
reddit
r/flask - Just created my first web app using Flask and have a noob question
14 votes and 12 comments so far on Reddit
Trouble with creating Dynamic forms
I am trying to create an application that displays a list of various questions.
Each question response in the list should be one of the following:
1. StringField()
2. SelectField()
The questions are dynamically generated from a database.
I am having trouble dynamically creating these form fields.
/r/flask
https://redd.it/auqmg5
I am trying to create an application that displays a list of various questions.
Each question response in the list should be one of the following:
1. StringField()
2. SelectField()
The questions are dynamically generated from a database.
I am having trouble dynamically creating these form fields.
/r/flask
https://redd.it/auqmg5
reddit
r/flask - Trouble with creating Dynamic forms
1 vote and 1 comment so far on Reddit
creating event model with recurring dates
hello.
im working on a project where users can list their events. In each event, it could either be a one-day event or a recurring event. How can I implement this application?
I've looked at other packages like django-scheduling, django-recurrence, and django-eventtools, but I don't know if they are compatible with Django 2.1.
It would be cool if anyone have any experience with these packages, and know if they are up to date with the current django version.
I am also willing to implement my own version of this system, but I do not know where to start.
thank you.
Edit: With this recurring events, is it possible to search for them based on date ranges
/r/djangolearning
https://redd.it/aujbg2
hello.
im working on a project where users can list their events. In each event, it could either be a one-day event or a recurring event. How can I implement this application?
I've looked at other packages like django-scheduling, django-recurrence, and django-eventtools, but I don't know if they are compatible with Django 2.1.
It would be cool if anyone have any experience with these packages, and know if they are up to date with the current django version.
I am also willing to implement my own version of this system, but I do not know where to start.
thank you.
Edit: With this recurring events, is it possible to search for them based on date ranges
/r/djangolearning
https://redd.it/aujbg2
reddit
r/djangolearning - creating event model with recurring dates
3 votes and 3 comments so far on Reddit
This media is not supported in your browser
VIEW IN TELEGRAM
Django Jet admin interface 2.0 is now compatible with any stack with SQL database
/r/django
https://redd.it/av0dlp
/r/django
https://redd.it/av0dlp
The Django Packages site needs a redesign ASAP
I hope i'm not the only one who really hate browsing it. Its really a bad showcase for the framework (let alone a web framework) when you can't even search packages on mobile. The comparison tables are also not responsive on mobile.
I'd really wish it had a better design. Take Laravel for example: [https://packalyst.com/](https://packalyst.com/)
​
Sorry, just had to get it out. lol.
​
​
​
/r/django
https://redd.it/auy8kl
I hope i'm not the only one who really hate browsing it. Its really a bad showcase for the framework (let alone a web framework) when you can't even search packages on mobile. The comparison tables are also not responsive on mobile.
I'd really wish it had a better design. Take Laravel for example: [https://packalyst.com/](https://packalyst.com/)
​
Sorry, just had to get it out. lol.
​
​
​
/r/django
https://redd.it/auy8kl
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/auzuns
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/auzuns
reddit
r/Python - What's everyone working on this week?
0 votes and 9 comments so far on Reddit
How to create choices based on file contents
I have a json object, where I would like each of the entries in the json file to be options choosable by the user, such that the user can select multiple options and those choices can be saved somewhere, can someone point me in the right direction?
Thanks
/r/django
https://redd.it/av2kjc
I have a json object, where I would like each of the entries in the json file to be options choosable by the user, such that the user can select multiple options and those choices can be saved somewhere, can someone point me in the right direction?
Thanks
/r/django
https://redd.it/av2kjc
reddit
r/django - How to create choices based on file contents
0 votes and 0 comments so far on Reddit
Build a Data Analysis Library from Scratch in Python
Hey All,
[Build a Data Analysis Library from Scratch in Python](https://www.youtube.com/playlist?list=PLVyhfExBT1XDTu-oocI3ttl_OPhulAJOp) is a course I've developed to help those looking for a long, comprehensive project that will teach advanced Python and basic software development. It seems that there is a lack of these types of projects for those who possess the fundamentals of Python, but haven't put together a complete project.
The end result is a library called Pandas Cub which is built to mimic the pandas library. There are 40 steps with nearly 100 pre-written unit tests that must be passed in order to complete the project. The project not only teaches advanced Python but environment setup, test-driven development, and developing code outside of a Jupyter Notebook. The project can also be [found on GitHub](https://github.com/tdpetrou/pandas_cub).
I hope its useful and if you have critical feedback please let me know.
/r/Python
https://redd.it/av0awc
Hey All,
[Build a Data Analysis Library from Scratch in Python](https://www.youtube.com/playlist?list=PLVyhfExBT1XDTu-oocI3ttl_OPhulAJOp) is a course I've developed to help those looking for a long, comprehensive project that will teach advanced Python and basic software development. It seems that there is a lack of these types of projects for those who possess the fundamentals of Python, but haven't put together a complete project.
The end result is a library called Pandas Cub which is built to mimic the pandas library. There are 40 steps with nearly 100 pre-written unit tests that must be passed in order to complete the project. The project not only teaches advanced Python but environment setup, test-driven development, and developing code outside of a Jupyter Notebook. The project can also be [found on GitHub](https://github.com/tdpetrou/pandas_cub).
I hope its useful and if you have critical feedback please let me know.
/r/Python
https://redd.it/av0awc
YouTube
Build a Data Analysis Library from Scratch in Python
Get course notes here - https://github.com/tdpetrou/pandas_cub
Hunting for Memory Leaks in Python applications
https://medium.com/zendesk-engineering/hunting-for-memory-leaks-in-python-applications-6824d0518774
/r/Python
https://redd.it/av4a2y
https://medium.com/zendesk-engineering/hunting-for-memory-leaks-in-python-applications-6824d0518774
/r/Python
https://redd.it/av4a2y
Medium
Hunting for Memory Leaks in Python applications
We use Python a fair bit at Zendesk for building machine learning (ML) products. One of the common performance issues we encountered with…
Geodjango OSMWidget coordinates are wrong.
I'm using an OSMWidget for my PointField(). I had already set my initial coordinates to 120, 14 but when I retrieve the values from my widget I get values around 13468873 and 1639089.
Also I am not saving any (spatial?) objects to my db because I want to stick to one db but I do need the coordinates as Decimal values to measure distances in the future.
Is there a way to convert widget values into standard coordinates?
/r/django
https://redd.it/av86my
I'm using an OSMWidget for my PointField(). I had already set my initial coordinates to 120, 14 but when I retrieve the values from my widget I get values around 13468873 and 1639089.
Also I am not saving any (spatial?) objects to my db because I want to stick to one db but I do need the coordinates as Decimal values to measure distances in the future.
Is there a way to convert widget values into standard coordinates?
/r/django
https://redd.it/av86my
reddit
r/django - Geodjango OSMWidget coordinates are wrong.
0 votes and 0 comments so far on Reddit
Python in Visual Studio Code - February 2019 Release
https://devblogs.microsoft.com/python/python-in-visual-studio-code-february-2019-release/
/r/Python
https://redd.it/avalbi
https://devblogs.microsoft.com/python/python-in-visual-studio-code-february-2019-release/
/r/Python
https://redd.it/avalbi
Python
Python in Visual Studio Code - February 2019 Release
We are pleased to announce that the February 2019 release of the Python Extension for Visual Studio Code is now available. You can download the Python extension from the Visual Studio Marketplace, or install it directly from the extension gallery in Visual…
[Django + javascript] Sending Post (submit) after given time
Hello r/django \- I am very new to django and javascript so I would appreciate any comments!
I am building a website where users can take math exams for free. The way my website works is very simple - a user writes down an answer (or chooses from a radio button) and clicks on the next button for the next question. Clicking on the next button also sends a POST request to my django views where I save the user's answer in my database.
Everything was working fine until I added a timer in javascript (when the exam time is over, the user is directed to the home page). Since the 'next' button was never clicked, the answer to the last question the user was working on is not saved. I would like to figure out a way to have my javascript code send a POST request to my django views when the timer is over.
​
I would appreciate any help. Thank you!
/r/django
https://redd.it/avb7r1
Hello r/django \- I am very new to django and javascript so I would appreciate any comments!
I am building a website where users can take math exams for free. The way my website works is very simple - a user writes down an answer (or chooses from a radio button) and clicks on the next button for the next question. Clicking on the next button also sends a POST request to my django views where I save the user's answer in my database.
Everything was working fine until I added a timer in javascript (when the exam time is over, the user is directed to the home page). Since the 'next' button was never clicked, the answer to the last question the user was working on is not saved. I would like to figure out a way to have my javascript code send a POST request to my django views when the timer is over.
​
I would appreciate any help. Thank you!
/r/django
https://redd.it/avb7r1
reddit
r/django - [Django + javascript] Sending Post (submit) after given time
0 votes and 0 comments so far on Reddit