User Authentication
Hi everyone. I am new to Django, but I have a question about user authentication. I understand that Django has a built-in authentication service, but I would like to implement another user authentication service. Are there any good resources for implementing third-party user authentication services. Also, do you guys have any recommendations?
/r/django
https://redd.it/7bfp4y
Hi everyone. I am new to Django, but I have a question about user authentication. I understand that Django has a built-in authentication service, but I would like to implement another user authentication service. Are there any good resources for implementing third-party user authentication services. Also, do you guys have any recommendations?
/r/django
https://redd.it/7bfp4y
reddit
User Authentication • r/django
Hi everyone. I am new to Django, but I have a question about user authentication. I understand that Django has a built-in authentication service,...
No error but css effects not taking place
I am loading two static files into my HTML code, "animate.css" and "home.css".
For some reason the animate.css effects do take place when I go to the page on my localhost, but the home.css effects do not.
I am not getting a specific error message though. My terminal says this: https://imgur.com/a/BPJZ1
I don't see a specific message that it is getting the home.css file, while I do see a specific message that it is getting the animate.css file.
my code looks like this: https://imgur.com/a/QBXVT
does anybody have an idea why the home.css effects aren't taking place when I go to the page linked to the home.html file ?
/r/django
https://redd.it/7bf9ix
I am loading two static files into my HTML code, "animate.css" and "home.css".
For some reason the animate.css effects do take place when I go to the page on my localhost, but the home.css effects do not.
I am not getting a specific error message though. My terminal says this: https://imgur.com/a/BPJZ1
I don't see a specific message that it is getting the home.css file, while I do see a specific message that it is getting the animate.css file.
my code looks like this: https://imgur.com/a/QBXVT
does anybody have an idea why the home.css effects aren't taking place when I go to the page linked to the home.html file ?
/r/django
https://redd.it/7bf9ix
Imgur
Imgur: The most awesome images on the Internet
Imgur: The most awesome images on the Internet.
Django and angular host
What’s a good host to put these combo?
I currently have django on heroku. Having trouble pushing angular to heroku so looking for alternatives.
/r/django
https://redd.it/7bj578
What’s a good host to put these combo?
I currently have django on heroku. Having trouble pushing angular to heroku so looking for alternatives.
/r/django
https://redd.it/7bj578
reddit
Django and angular host • r/django
What’s a good host to put these combo? I currently have django on heroku. Having trouble pushing angular to heroku so looking for alternatives.
User Flow of multi tenant app using django tenant schemas
So I am confused how to handle user schema in django tenant schemas, I want user to sign up and then create their tenant, so i put django.contrib.auth in shared_apps, but that gave the users access to other tenants, so can anyone recommend the ideal way to handle this.
/r/djangolearning
https://redd.it/7bj994
So I am confused how to handle user schema in django tenant schemas, I want user to sign up and then create their tenant, so i put django.contrib.auth in shared_apps, but that gave the users access to other tenants, so can anyone recommend the ideal way to handle this.
/r/djangolearning
https://redd.it/7bj994
reddit
User Flow of multi tenant app using django... • r/djangolearning
So I am confused how to handle user schema in django tenant schemas, I want user to sign up and then create their tenant, so i put...
Dynamic page - Views/Templates
A view:
> def index(request):
> url = request.get_full_path()
> url = url.split('/')
>
> ''' url = ['', index , ''] '''
>
> page = 1
>
> '' bla bla ''
>
> if request.full.path[-1] == 'up':
>
> page = page +1
> else == request.full.path[-1] == 'down' and page = page -1.. bla bla
>
>
And the template:
> <a href="whatever/*{{ page }}/up" class='next'> Up </a>
> <a = href="whatever/*{{ page }}/down" class='previous'> Down </a>
>
Now, yeah, it works, until up the point i have to switch the page back or forward, when i get a bug where the last page variable value is rendered before i can get the last section of the buttons's URL's especifying if it's either "down" and page = page -1 or "up" so we go page = page + 1 and to the next page...
What happens then is that the first time i press "Down" after pressing "Up", i still get a positive page count, only from the second time on it works properly in the right direction..
I know it sounds kinda of a no brainer but i'm seriously having trouble thinking of anything quick...
/r/django
https://redd.it/7bcbx7
A view:
> def index(request):
> url = request.get_full_path()
> url = url.split('/')
>
> ''' url = ['', index , ''] '''
>
> page = 1
>
> '' bla bla ''
>
> if request.full.path[-1] == 'up':
>
> page = page +1
> else == request.full.path[-1] == 'down' and page = page -1.. bla bla
>
>
And the template:
> <a href="whatever/*{{ page }}/up" class='next'> Up </a>
> <a = href="whatever/*{{ page }}/down" class='previous'> Down </a>
>
Now, yeah, it works, until up the point i have to switch the page back or forward, when i get a bug where the last page variable value is rendered before i can get the last section of the buttons's URL's especifying if it's either "down" and page = page -1 or "up" so we go page = page + 1 and to the next page...
What happens then is that the first time i press "Down" after pressing "Up", i still get a positive page count, only from the second time on it works properly in the right direction..
I know it sounds kinda of a no brainer but i'm seriously having trouble thinking of anything quick...
/r/django
https://redd.it/7bcbx7
reddit
Dynamic page - Views/Templates • r/django
A view: > def index(request): > url = request.get_full_path() > url = url.split('/') > > ''' url = ['', index , ''] ''' > > ...
Trouble with jQuery and flask
Hey guys, not sure if this is the best place for this question. I'm still fairly new at flask and have had a bit of trouble finding what I'm after with a bit of google-fu.
I have a multiple select list on a page within my flask app, using jQuery to dynamically filter the results based on what the user has typed so far [shamelessly pinched from this resource](http://www.lessanvaezi.com/filter-select-list-options/). When I load up the html file on its own, it works fine, but when I actually run the app in flask, it doesn't work! I can only think I've got some of the html in the wrong place, causing flask to not load my jQuery at the right time (or so I've gleaned by my searching). If anyone can help me out, it would be much appreciated. I won't bother pasting my flask code below, its your basic first app type of thing which just uses render_template to load the html.
https://pastebin.com/Dg0q8u14 <link to html
https://pastebin.com/FGeGqm7R <link to jQuery
/r/flask
https://redd.it/7bk33x
Hey guys, not sure if this is the best place for this question. I'm still fairly new at flask and have had a bit of trouble finding what I'm after with a bit of google-fu.
I have a multiple select list on a page within my flask app, using jQuery to dynamically filter the results based on what the user has typed so far [shamelessly pinched from this resource](http://www.lessanvaezi.com/filter-select-list-options/). When I load up the html file on its own, it works fine, but when I actually run the app in flask, it doesn't work! I can only think I've got some of the html in the wrong place, causing flask to not load my jQuery at the right time (or so I've gleaned by my searching). If anyone can help me out, it would be much appreciated. I won't bother pasting my flask code below, its your basic first app type of thing which just uses render_template to load the html.
https://pastebin.com/Dg0q8u14 <link to html
https://pastebin.com/FGeGqm7R <link to jQuery
/r/flask
https://redd.it/7bk33x
Lessan Vaezi
How to filter select list options - Lessan Vaezi
Here’s a jQuery extension method to filter the elements of a select list (option tags). It binds to a textbox, and as you type in the textbox the select list gets filtered to match what you are typing. Parameters: textbox This could be a jQuery selector,…
[R] Feature Visualization: How neural networks build up their understanding of images
https://distill.pub/2017/feature-visualization/
/r/MachineLearning
https://redd.it/7bfa99
https://distill.pub/2017/feature-visualization/
/r/MachineLearning
https://redd.it/7bfa99
Distill
Feature Visualization
How neural networks build up their understanding of images
TensorFlow Neural Network Tutorial
http://stackabuse.com/tensorflow-neural-network-tutorial/
/r/Python
https://redd.it/7bkui1
http://stackabuse.com/tensorflow-neural-network-tutorial/
/r/Python
https://redd.it/7bkui1
Stack Abuse
TensorFlow Neural Network Tutorial
TensorFlow is an open-source library for machine learning applications. It's the Google Brain's second generation system, after replacing the close-sourced Dist...
Coding text editor for remote server ?
Hi,
I am looking for a text editor to write python code on an amazon server that is not VI/VIM/Nano. I am currently using vim , but I find Komodo much easier to read from. To get to this server I must pass an intermediary server if that makes a diff. I want to be able to edit the scripts I have on the server using a text editor like Komodo Edit or something - without having to upload the changes to the server from my local machine each time.
Hope that makes sense.
Thanks
EDIT:
Didn't realise I could make VIM 'nicer' - Ill just use this : https://realpython.com/blog/python/vim-and-python-a-match-made-in-heaven/#vim-extensions
/r/Python
https://redd.it/7bkb5q
Hi,
I am looking for a text editor to write python code on an amazon server that is not VI/VIM/Nano. I am currently using vim , but I find Komodo much easier to read from. To get to this server I must pass an intermediary server if that makes a diff. I want to be able to edit the scripts I have on the server using a text editor like Komodo Edit or something - without having to upload the changes to the server from my local machine each time.
Hope that makes sense.
Thanks
EDIT:
Didn't realise I could make VIM 'nicer' - Ill just use this : https://realpython.com/blog/python/vim-and-python-a-match-made-in-heaven/#vim-extensions
/r/Python
https://redd.it/7bkb5q
Realpython
VIM and Python – A Match Made in Heaven – Real Python
This article details how to set up a powerful VIM environment for Python development.
[N] SpaCy 2.0 released (Natural Language Processing with Python)
https://github.com/explosion/spaCy/releases/tag/v2.0.0
/r/MachineLearning
https://redd.it/7bn8e8
https://github.com/explosion/spaCy/releases/tag/v2.0.0
/r/MachineLearning
https://redd.it/7bn8e8
GitHub
explosion/spaCy
💫 Industrial-strength Natural Language Processing (NLP) with Python and Cython - explosion/spaCy
Jinja 2.10 released with support for namespaces across scopes and rendering Python types
https://twitter.com/davidism/status/928359324904169473
/r/flask
https://redd.it/7boeun
https://twitter.com/davidism/status/928359324904169473
/r/flask
https://redd.it/7boeun
Twitter
David Lord
Just released Jinja 2.10! More info here: https://t.co/LeCqk4gxw3
JQuery/Ajax to call a server side function?
I am having some difficulty with the syntax to actually call a python(server side) function from a button on my html page.
I have an html table with a button on each row. I understand the concept of making a call back to the python application to run
def somefunction(someVarFromTable):
Which is located on my app.py file for now.
But the syntax of JS is throwing me off. Any resource recommendations? Thanks
EDIT:
Apprently I did NOT have a firm grasp of the concept. I was able to meet my needs by calling a {{ url_for(somefunction), someVarFromTable }} on button click and then redirecting back to my updated table.
/r/flask
https://redd.it/7bkmrr
I am having some difficulty with the syntax to actually call a python(server side) function from a button on my html page.
I have an html table with a button on each row. I understand the concept of making a call back to the python application to run
def somefunction(someVarFromTable):
Which is located on my app.py file for now.
But the syntax of JS is throwing me off. Any resource recommendations? Thanks
EDIT:
Apprently I did NOT have a firm grasp of the concept. I was able to meet my needs by calling a {{ url_for(somefunction), someVarFromTable }} on button click and then redirecting back to my updated table.
/r/flask
https://redd.it/7bkmrr
reddit
JQuery/Ajax to call a server side function? • r/flask
I am having some difficulty with the syntax to actually call a python(server side) function from a button on my html page. I have an html table...
When you confess something to your girlfriend & she keeps bringing it up
TypeError: input expected at most 1 arguments, got 4
/r/Python
https://redd.it/7bptca
TypeError: input expected at most 1 arguments, got 4
/r/Python
https://redd.it/7bptca
reddit
When you confess something to your girlfriend & she... • r/Python
TypeError: input expected at most 1 arguments, got 4
Advice to beginners - avoid generic class-based views when you are starting
When I started learning Django, I followed the Django and Mozilla tutorials. Both those tutorials recommended using generic class-based views.
Now it is cool that generic class-based views will save you coding time, but as a Django beginner, when you have very little knowledge of how views work at all, using generic class-based views will only serve to confuse you further.
For Django beginners I'd recommend to write only function-based views or your own class-based views, because they force you to write all the code yourself which will help you understand Django's MVT system much better.
The time you save in the beginning with generic class-based views will only confuse you and actually waste more time later on when you need to add much more detailed processing into your views.
My opinion only; I've been coding full time with Django for about 1.5 months.
/r/django
https://redd.it/7bnvmu
When I started learning Django, I followed the Django and Mozilla tutorials. Both those tutorials recommended using generic class-based views.
Now it is cool that generic class-based views will save you coding time, but as a Django beginner, when you have very little knowledge of how views work at all, using generic class-based views will only serve to confuse you further.
For Django beginners I'd recommend to write only function-based views or your own class-based views, because they force you to write all the code yourself which will help you understand Django's MVT system much better.
The time you save in the beginning with generic class-based views will only confuse you and actually waste more time later on when you need to add much more detailed processing into your views.
My opinion only; I've been coding full time with Django for about 1.5 months.
/r/django
https://redd.it/7bnvmu
reddit
Advice to beginners - avoid generic class-based views... • r/django
When I started learning Django, I followed the Django and Mozilla tutorials. Both those tutorials recommended using generic class-based...
How We Maintain High Levels of Code Quality
http://eldarion.com/blog/2017/10/17/how-we-maintain-high-levels-code-quality/
/r/Python
https://redd.it/7brkpn
http://eldarion.com/blog/2017/10/17/how-we-maintain-high-levels-code-quality/
/r/Python
https://redd.it/7brkpn
Eldarion
How We Maintain High Levels of Code Quality
For a long time, we used TravisCI and Coveralls for executing lint checkers and tests and tracking our code coverage. These are fine tools but we've recently switched to CircleCI and CodeCov. This is our default setup for projects.
I just finished up making a short series on the basics of NumPy and thought I would share it
https://www.youtube.com/watch?v=FxMS9I49HL8&list=PLmp4AHm0u1g3KQWb_z0b4CzSkyZpIqpe5
Hi everyone, I just finished putting together a quick tutorial series which will guide you along the basics of NumPy. I cover things like, creating an array from scratch, reading an array from a csv file, understanding array dimensions and indexing as well as many basic operations like addition, matrix multiplication and summing. If you follow the series to the end you should have the foundation to start learning to use NumPy for machine learning/ deep learning operations in under an hour.
/r/Python
https://redd.it/7bpzop
https://www.youtube.com/watch?v=FxMS9I49HL8&list=PLmp4AHm0u1g3KQWb_z0b4CzSkyZpIqpe5
Hi everyone, I just finished putting together a quick tutorial series which will guide you along the basics of NumPy. I cover things like, creating an array from scratch, reading an array from a csv file, understanding array dimensions and indexing as well as many basic operations like addition, matrix multiplication and summing. If you follow the series to the end you should have the foundation to start learning to use NumPy for machine learning/ deep learning operations in under an hour.
/r/Python
https://redd.it/7bpzop
YouTube
Intro to NumPy (Part 1)
In this video we cover the basic use cases of NumPy and why you would use it instead of standard python lists. Visit https://discord.gg/bevYwcG to join my di...
Plotnine 0.3.0 released
[Plotnine](https://github.com/has2k1/plotnine) is an implementation of a grammar of graphics in Python based on ggplot2. You can now animate similar plots. For more, see the
[documentation](http://plotnine.readthedocs.io/en/stable/)
and [changelog](https://plotnine.readthedocs.io/en/stable/changelog.html#v0.3.0).
/r/Python
https://redd.it/7boozx
[Plotnine](https://github.com/has2k1/plotnine) is an implementation of a grammar of graphics in Python based on ggplot2. You can now animate similar plots. For more, see the
[documentation](http://plotnine.readthedocs.io/en/stable/)
and [changelog](https://plotnine.readthedocs.io/en/stable/changelog.html#v0.3.0).
/r/Python
https://redd.it/7boozx
GitHub
GitHub - has2k1/plotnine: A Grammar of Graphics for Python
A Grammar of Graphics for Python. Contribute to has2k1/plotnine development by creating an account on GitHub.
[Question] Deserializing nested data with Django-Rest-Framework
https://www.reddit.com/r/django/comments/7bot9q/question_deserializing_nested_data_with/
/r/djangolearning
https://redd.it/7bpn0k
https://www.reddit.com/r/django/comments/7bot9q/question_deserializing_nested_data_with/
/r/djangolearning
https://redd.it/7bpn0k
reddit
[Question] Deserializing nested data with... • r/django
I am struggling with deserializing nested data using Django Rest Framework. I have events which may or may not have nested fee or venue data....